我试图在Mac上测试一些变态代码,但我无法导入一个关键模块,因为我没有安装wxPython。我用自制软件安装了wxPython,上面说:
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
mkdir -p /Users/noahsilbert/.local/lib/python2.7/site-packages
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/noahsilbert/.local/lib/python2.7/site-packages/homebrew.pth
所以我做了,现在IPython给了我以下错误,我不知道是什么触发了它:
^{pr2}$我找到了this question,看来我可以试试这个解决方案:
$ defaults write org.python.python ApplePersistenceIgnoreState NO
因为我不完全理解这是怎么回事,我有点担心这会导致其他问题。最终,我还是无法在我的电脑上运行神经病代码,所以我想,我更愿意撤销Homebrew给我的指令,让我把它的站点包放到Python中搜索路径,但我不知道该怎么做。^{
有没有一种简单的方法可以撤销自制指令?我应该试试defaults write
命令吗?在
我用的是埃尔卡皮坦的Python科学装置,这是值得的。在
目前没有回答
相关问题 更多 >
编程相关推荐