pycharm import write their own bag when not made solution identification module

Today importing modules under its own statistical directory with the time to write selenium script error, but obviously there is an error saying module does not exist, looking for a long finally found a solution, the way records about it
pycharm the current file will not be automatically added to their own directory sourse_path. Right make_directory as -> sources root of the files in the current working folder added source_path it.

Sometimes we may encounter pip import packages installed in pycharm, but there will be error did not find the module, this time can be set up which added to File-> setting, open the settings interface as follows

After we pip installation package, pycharm may not be time to add that we just manually download the package in the current work area, then we need to manually install pycharm

Guess you like

Origin www.cnblogs.com/lxc1997ye/p/11600097.html