Anaconda 在 .profile 和 .bash_profile 中修改 PYHTONPATH 时出现问题
Anaconda problems modifying PYHTONPATH in .profile and .bash_profile
所以我的 .profile 和 .bash_profile 设置如下:
但我也在使用 anaconda Python 包。
我正在按照此处找到的这些说明进行操作:
http://www.skirt.ugent.be/pts/_install_mac_set_up.html
并收到此错误消息:
"No module named pts"
有谁知道我哪里出错了?? .bash_profile 文件中的 Anaconda 和 pythonpath=
命令似乎存在冲突...?
如有任何关于如何解决 this/marry 这两个问题的建议,我们将不胜感激!
您 PYTHONPATH
的设置有误。您包含的一个路径组件过多。
来自Configuring paths and aliases
Add the following lines:
export PYTHONPATH=~/PTS
alias pts="python -m pts.do"
alias ipts="python -im pts.do"
但是你添加了相当于
export PYTHONPATH=~/PTS/pts
哪个路径 包含 错误所抱怨的 pts
模块。
从您的 PYTHONPATH
行中删除 /pts
位,事情应该会起作用。
所以我的 .profile 和 .bash_profile 设置如下:
但我也在使用 anaconda Python 包。
我正在按照此处找到的这些说明进行操作:
http://www.skirt.ugent.be/pts/_install_mac_set_up.html
并收到此错误消息:
"No module named pts"
有谁知道我哪里出错了?? .bash_profile 文件中的 Anaconda 和 pythonpath=
命令似乎存在冲突...?
如有任何关于如何解决 this/marry 这两个问题的建议,我们将不胜感激!
您 PYTHONPATH
的设置有误。您包含的一个路径组件过多。
来自Configuring paths and aliases
Add the following lines:
export PYTHONPATH=~/PTS
alias pts="python -m pts.do"
alias ipts="python -im pts.do"
但是你添加了相当于
export PYTHONPATH=~/PTS/pts
哪个路径 包含 错误所抱怨的 pts
模块。
从您的 PYTHONPATH
行中删除 /pts
位,事情应该会起作用。