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

前端 未结 8 1403
南笙
南笙 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: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

提交回复
热议问题