更新时间:2023-11-20 09:54:10
我能够在Ubuntu上修复此错误,方法是在将模块目录附加到路径的笔记本顶部添加一个单元格:
I was able to fix this error on Ubuntu by adding a cell to the top of the notebook appending the module directory to the path:
import sys
sys.path.append('/usr/lib/python2.7/dist-packages')
运行 pip install< something> $时,可以找到添加的路径c $ c>,(例如numpy)它会告诉你每个软件包的安装位置或已经存在。
The path to add can be found when running pip install <something>
, (such as numpy) and it tells you where each package is installed or already exists.