0

I'm having a problem installing python packages and I think it has to do with the fact that I apparently have 4 Python directories. I can download and install them without a problem using pip... but when trying to import them in an IDE they don't appear.

Any help would be appreciated and I should say that I'm a complete beginner.

Tschanti
  • 1
  • 2
  • 3
    If you find out which python executable your IDE is using, you can install packages specifically with that one. For example if your IDE uses `/usr/bin/python`, you can use `/usr/bin/python -m pip install ...` – apex-meme-lord Feb 12 '16 at 14:26
  • as an alternative you can run your python from terminal. – Seekheart Feb 12 '16 at 14:50
  • I know I needed to explicitly use `pip3.5`/`pip2.7` because just using `pip` and `python` seemed to be using different versions. – Tadhg McDonald-Jensen Feb 12 '16 at 15:04

1 Answers1

0

That's a really tricky issue specific to OS X, and also hard to fix. The root cause is the fact the GUI apps and console apps do not share the same environment (with things like PATH and PYTHONPATH).

Read https://stackoverflow.com/a/588442/99834

Community
  • 1
  • 1
sorin
  • 161,544
  • 178
  • 535
  • 806