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.
Add the Script folder of python to your environment path
or you can do this from command line:
python -m pip install package-name
- go the windows cmd prompt
- go to the python directory
- then type python -m pip install package-name
run it at the cmd window, not inside the python window. it took me forever to realize my mistake.
I had the same problem with Version 3.5.2.
Have you tried py.exe -m install package-name
? This worked for me.
As soon as you open a command prompt, use:
python -m pip install --upgrade pip
then
python -m pip install <<package-name>>
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.
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 <>
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