Reputation: 73
I have been struggling with module installations since i started with Python. i think the problem is that pip doesn't recognise python 3.5.1 as the latest version. I went to check my project interpreter (in pycharm 5) and it shows that I have python 3.5, 2.7 3.4 and 2.6 installed on my macbook pro. I also discovered that all the modules i've been struggling to install into python 3.5.1 are all installed in python 2.7. when I type
pip install pip
it shows me where the current version of pip is located, which is in
/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg
can someone please help me switch pip to python 3.5?
please!
Upvotes: 1
Views: 2285
Reputation: 145
Your default pip location (pip
) is probably used for Python 2.7. For Python 3.5
you should have pip3.5
available to install stuff.
pip3.5 install <pkg>
That should probably work, if it doesn't fall back to pip3
which is bundled with python when installing if I recall correctly.
Upvotes: 2