Locate MacPorts package?

前端 未结 6 2015
被撕碎了的回忆
被撕碎了的回忆 2020-12-09 21:18

I just installed the py27-numpy package via MacPorts and python will not find the module when I use this command: import scipy

I used the help(\'m

6条回答
  •  臣服心动
    2020-12-09 21:55

    MacPorts should install Python packages in /opt/local/Library/Frameworks/Python.framework/2.7/site-packages by default. So make sure to set $PYTHONPATH environment variable in your .profile file:

    export PYTHONPATH="/opt/local/Library/Frameworks/Python.framework/Versions/2.7/site-packages"
    

提交回复
热议问题