I have python 36. The path is already declared, yet when I enter
python pip install image
nothing happens, and I am told that pip does not exist. I have install openpyxl before via pip, so I know I have it....but I can't remember how I got it to work.
I recall it being an alternative way of typing it into the CMD that finally made it work.
Typing in a path to the python36 or python .exe file instead of python, the CMD still does not recognize pip
You need to pass -m
so that Python will execute the pip
module, like this:
python -m pip install image
On Windows, especially if you have multiple versions of Python installed, use the py
launcher, like this:
py -3 -m pip install image
See the documentation for more tips.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.