更新时间:2023-09-20 18:51:52
尝试更改PYTHONPATH
environment变量.如果您使用的是BASH,则下面的方法应该起作用.其他Linux Shell在分配环境变量的方式上会稍有不同.
Try changing the PYTHONPATH
environment variable. If you are using BASH the below should work. Other Linux shells will be slightly different in how they assign environment variables.
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages