添加代码:
import sys
sys.path.append(“指定文件安装的路径”)
如何发现Python相应的模块的路径,举例如下:
import matplotlib
print matplotlib.__file__
在Python环境中执行上述两行代码即可。
添加代码:
import sys
sys.path.append(“指定文件安装的路径”)
如何发现Python相应的模块的路径,举例如下:
import matplotlib
print matplotlib.__file__
在Python环境中执行上述两行代码即可。
相关文章: