Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: "no module named pip"

Tags:

python

pip

I use Windows 7 32 bit and Python 3.7.

I was trying to install a module with pip and this error came up:

cd C:\Windows\System32
pip install pyttsx3

Output:

Traceback (most recent call last):
  File "d:\python\python 3.7\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\python\python 3.7\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\Python\Python 3.7\Scripts\pip.exe\__main__.py", line 5, in <module>
ModuleNotFoundError: No module named 'pip'

How can I fix this?

like image 666
Nikunj Mundhra Avatar asked Dec 21 '25 07:12

Nikunj Mundhra


2 Answers

Make sure you have python path added to the PATH variable. Then run

python -m ensurepip
like image 81
Akash Ranjan Avatar answered Dec 24 '25 00:12

Akash Ranjan


Could you try?

pip3 install pyttsx3
like image 35
Ismail Durmaz Avatar answered Dec 23 '25 23:12

Ismail Durmaz