添加代码:

import sys

sys.path.append(“指定文件安装的路径”)

 

如何发现Python相应的模块的路径,举例如下:

import matplotlib

print matplotlib.__file__

在Python环境中执行上述两行代码即可。

相关文章:

  • 2021-04-13
  • 2021-06-14
  • 2021-07-29
  • 2021-07-10
  • 2022-12-23
  • 2021-12-04
  • 2021-05-10
  • 2021-07-19
猜你喜欢
  • 2022-12-23
  • 2021-04-07
  • 2022-02-13
  • 2021-04-05
  • 2021-06-13
  • 2021-10-15
  • 2022-12-23
相关资源
相似解决方案