I am trying this AI assistant Jarvis from a YouTube tutorial and I have to submit it as a final project. In order to start the code, I have to first import pyttsx3 which is a text-to-speech conversion library in Python. When I write 'pip install pyttsx3' in the terminal of VS Code, it returns back pip not defined. Please guide me here I have no other help.
Asked
Active
Viewed 40 times
0
Muhammad Mohsin Khan
- 1,454
- 6
- 14
- 22
faryal rizvi
- 1
- 1
-
Did you make sure to add your Python to the system PATH? – Syllight Jan 26 '22 at 12:56
-
can u explain that further? – faryal rizvi Jan 26 '22 at 13:49
-
Refer [this link](https://www.computerhope.com/issues/ch000549.htm) for adding things to PATH. – Codeman Jan 26 '22 at 14:25
1 Answers
0
Try using command line:
windows_key + r, and type in cmd. Then, 'pip install pyttsx3'.
If you don't have pip (it should come with python, assuming you downloaded python from the official website), see this question for reference.
Codeman
- 412
- 2
- 11
-
-
@faryalrizvi it's easier to use PyCharm for that sort of stuff but whatever. Yes, pip should work from the VSC terminal (I just checked with mine), so I think your issue is that you don't have pip at all. – Codeman Jan 26 '22 at 14:30
-
-
@faryalrizvi that's good to hear! Consider marking the answer accepted if it helped? – Codeman Jan 27 '22 at 15:29