pip not working in python 3.5 on Windows

佐手、 提交于 2019-12-03 06:57:32

问题


I have installed python 3.5 on my Windows 7 machine. When I installed it, I marked the check box to install pip. After the installation, I wanted to check whether pip was working, so I typed pip on the command line and hit enter, but did not respond. The cursor blinks but it does not display anything.

Please help.

Regards.


回答1:


Add the Script folder of python to your environment path

or you can do this from command line:

 python -m pip install package-name



回答2:


  1. go the windows cmd prompt
  2. go to the python directory
  3. then type python -m pip install package-name



回答3:


run it at the cmd window, not inside the python window. it took me forever to realize my mistake.




回答4:


I had the same problem with Version 3.5.2.

Have you tried py.exe -m install package-name? This worked for me.




回答5:


As soon as you open a command prompt, use:

python -m pip install --upgrade pip

then

python -m pip install <<package-name>>



回答6:


For those with several python versions of python 3 installed in windows: I solved this issue by executing the pip install command directly from my python35 Scripts folder in cmd...for some reason pip3 pointed to python 34 even though python 35 was set first in environmental variables.




回答7:


I had the issue, and answered this same question sometimes ago. Do open a cmd if in windows OS or linux OS with admistrative privilege. Then python -m pip install --upgrade pip

then

python -m pip install <>




回答8:


Working on windows and above version than 3.0

First upgrade pip to pip3 by following command:

pip3 install --upgrade setuptools pip

Then install maximum package by following command:

pip3 install <package_name>

I never wrote all package because some package not support to pip or pip3 command.



来源:https://stackoverflow.com/questions/34247930/pip-not-working-in-python-3-5-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!