0

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.

enter image description here

Muhammad Mohsin Khan
  • 1,444
  • 7
  • 16
  • 23

1 Answers1

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
  • 477
  • 3
  • 13
  • can i do this in Visual studio code? – faryal rizvi Jan 26 '22 at 13:51
  • @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