Installed Python, but cannot run `pip`
The problem is that you are entering pip
in the wrong command line.
You are entering it in the Python CLI whereas it has to be used in the regular Windows command line.
Is pip intended to be used out of Python only?
Yes, it is.
In cmd
you can use pip -V
to see if it is really installed properly. You can then proceed by using the following command to check what you can do:
pip help
Related videos on Youtube
Pietro
C++ software developer. Particularly interested in software for technical/scientific applications, also in a research and development environment, following the full lifecycle of projects where possible. Interested in Standard C++, Boost, GPGPU, OpenCL, (spiking/convolutional/biological) neural networks, genetic algorithms, databases, ... and a few more things.
Updated on September 18, 2022Comments
-
Pietro almost 2 years
I installed Python 3.7.3 on Windows 10. From the command line, if I enter
pip
I get:Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'pip' is not defined
It looks like something is missing (
pip
should be included by default).The file I installed Python from is: python-3.7.3-amd64.exe (25 MB)
I tried to modify the installation, adding
pip
as an optional feature, without any improvement.I tried to repair the previous installation, successfully, again without any improvement.
How can I fix this issue?
From the Windows command prompt, however,
pip
works:python -m pip install scipy
Is
pip
intended to be used out of Python only?