python 2.7: cannot pip on windows “bash: pip: command not found”

前端 未结 8 1362
南笙
南笙 2020-12-03 00:31

I am trying to install the SciPy stack located at https://scipy.org/stackspec.html [I am only allowed 2 links; trying to use them wisely]. I realize that there are much eas

相关标签:
8条回答
  • 2020-12-03 01:28

    I had a similar problem running SciPy on my computer. There are two ways to fix this problem: 1. Yes you do need to cd into your python directory. 2. Sometimes you have to tell the computer explicitly what path to go through, you have to find the program you're using, open up the properties, and reroute the path it takes to run. 3. consult the manual: http://matplotlib.org/users/installing.html or http://www.scipy.org/install.html

    the Scipy package is very finicky, and needs things spelled out in obnoxious detail.

    0 讨论(0)
  • 2020-12-03 01:31

    As long as pip lives within the scripts folder you can run

    python -m pip ....

    This will tell python to get pip from inside the scripts folder. This is also a good way to have both python2.7 and pyhton3.5 on you computer and have them in different locations. I currently have both python2 and pyhton3 installed on windows. When I type python it defaults to python2. But if I type python3 I can use python3. (I also had to change the python.exe file for python3 to "python3.exe")If I need to install flask for python 2 I can run

    python -m pip install flask

    and it will be installed in the pyhton2 folder, but if I need flask for python 3 I run:

    python3 -m pip install flask

    and I now have it in the python3 folder

    0 讨论(0)
提交回复
热议问题