Where is macports python installed




















Learn more. Using pip vs. MacPorts for installing Python packages Ask Question. Asked 4 years, 6 months ago. Active 1 year, 4 months ago. Viewed 5k times. When should I prefer one over the other? Does it matter whether the package I'm installing is small or large e. Does it depend on the version of python I'm using 2. MacPort's python? Does it matter whether I have multiple versions of python installed on my Mac? Can they be used concurrently?

Improve this question. F1Linux 1, 1 1 gold badge 11 11 silver badges 31 31 bronze badges. Related, but too specific: stackoverflow. I'm asking for general python packages rather than just matplotlib. Alternate solution is to use anaconda from continuum. Yoan: numpy is just an example. I'm asking about installation of packages in general.

Add a comment. MacPorts installs Python 2. Check to make sure that this path is in sys. SciPy would be installed in scipy under that directory.

Also check port contents pyscipy to ensure that the files are in the right place. Sign up to join this community.

The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How do you know where macports installs python packages to? Ask Question. Avoid installing package system-wide, with few exceptions. However, web development projects based on web-frameworks like Django or Flask, or other experimental projects are best to use with a virtualenv. Using virtualenv you can work on multiple projects that require completely different sets of dependencies and package versions.

Clearly the path is not configured correctly or MacPorts is not installing in the correct place, but either way, it would solve my problem to know where this package is being installed. As for getting python to find the package, see fardjad's response. Your PATH is incorrect. It appears to be picking up another Python 2.

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. X getawesome. Based on Jeremy W. Sherman's answer. How are we doing? Please help us improve Stack Overflow.

Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Locate MacPorts package?



0コメント

  • 1000 / 1000