ApplePersistenceIgnoreState错误,在wxPython安装之后启动

时间:2015-12-29 16:46:50

标签: python python-2.7 wxpython homebrew

我试图在Mac上测试一些PsychoPy代码,但我无法导入密钥模块,因为我没有安装wxPython。我使用Homebrew安装了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给了我以下错误,我无法弄清楚是什么触发了它:

2015-12-29 11:20:17.850 python[5040:855441] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/vm/851b53f57ql7tsx_jjpltblh0000gn/T/com.continuum.python.savedState

我找到了this question,看起来我可以尝试将其作为解决方案:

$ defaults write org.python.python ApplePersistenceIgnoreState NO

由于我不完全理解这是做什么的,我有点担心这可能会导致其他问题。最终,我仍然无法在我的计算机上运行PsychoPy代码,所以我想,我希望撤消Homebrew给我的指令,将其网站包放在我的Python sys.path中,但是我&# 39;我不知道该怎么做。 site module documentation并没有给我一个明显的解决方案,所以任何帮助都会受到赞赏。

是否有一种简单的方法来撤消Homebrew指令?我应该尝试defaults write命令吗?

我在El Capitan上使用Anaconda科学Python安装,因为它的价值。

0 个答案:

没有答案