The custom project added to the root directory of your python

1.

In D: \ Program Files \ Python \ Lib \ site-packages add .pth file named module name (ie auto_XXX), the contents of the file for the module directory. (Python add custom bag is this method)

finished adding files, again using python  executed successfully XXX.py. Even if it performs in the other letter, but also successful.
 

Add PYTHONPATH is also the case method, add the .bashrc

export PYTHONPATH=/home/zhao/setup/caffe-master/python:/home/zhao/setup/mypy:$PYTHONPATH 

After saving the input terminal $ source ~ / .bashrc the environment variables to take effect immediately

 
 
Reference URL: https: //blog.csdn.net/c20081052/article/details/79715132

Guess you like

Origin www.cnblogs.com/jingzaixin/p/11565281.html