Reputation: 1
I am install a third party module for the first time.
I am on python 3.10. I have download the openpyxl
and extracted the zip folder into:
D:\Users\XXXX\AppData\Local\Programs\Python\Python310\Lib
Then I went to:
D:\Users\XXXX\AppData\Local\Programs\Python\Python310\Scripts
Typed cmd
on the address bar and then typed pip install openpyxl
.
This is the message returned:
D:\Users\XXXX\AppData\Local\Programs\Python\Python310\Scripts>pip install openpyxl
Traceback (most recent call last):
File "D:\Users\XXXX\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\Users\XXXX\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\Users\XXXX\AppData\Local\Programs\Python\Python310\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'
Upvotes: 0
Views: 370
Reputation: 1458
That's because pip
is an Alias. The true command is indeed pip3
(or pip2
depending on what Python version you're using). For Ubuntu, there is an useful tool called python3-is-python which creates this alias. Try looking if this also exists for Windows!
Also, make sure you are running the cmd
as administrator. It is very common for Windows to not be able to see those commands.
Upvotes: 1