Locate MacPorts package?

前端 未结 6 2016
被撕碎了的回忆
被撕碎了的回忆 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:58

    With Homebrew only using the latest, the Mac system version, and MacPorts for the others in-between, I was confused until I found python locations differ depending on the installer.

    Here's an opinionated tip: Use virtualenvs for your projects and don't change your default version with the MacPorts. I won't and don't want to remember to updoot my python in the middle of something so I rely on virtualenvs. Choose and find the python version on the computer, then mkvirtualenv --python=/found/u/python3.X getawesome.

提交回复
热议问题