I am unable to import pyttsx2 in python Python is throwing exception ModuleNotFoundError

0 votes
I am unable to import external modules like pyttsx3, tensorflow, pytorch and many more.

I tried everything to import it. I tried pipenv.

I have used every method on net to import it.

now I am helpless.

Please help me. :-( :-(
Oct 7, 2020 in Python by Atharva Gulve
• 130 points
186 views

1 answer to this question.

0 votes

Hey, @Athrava Gulve,

Hey, @Atharva,

Which version of Python your Pycharm is set and on which version of Python you installed the module, please post the versions here. You can do more things, Go to File -> Settings -> Project:.. -> Project Interpreter, and check which version of Python you run on the project. Then go to the CMD/ terminal and write pip -V and it will tell you the pip version and the Python one. Might be a different version.

At a guess - installing the correct library into your environment would help.

I don’t know if you are using a virtual environment - they certainly recommend, but in your working environment (i.e. the same environment you are trying to run the script) execute this command :

pip install pyttsx3 

    I think you are missing the pyttsx3 package.

    answered Oct 7, 2020 by Gitika
    • 65,970 points

    Related Questions In Python

    0 votes
    1 answer

    How do I use urllib to see if a website is 404 or 200 in Python?

    For Python 3, try doing this: import urllib.request, ...READ MORE

    answered Nov 29, 2018 in Python by Nymeria
    • 3,540 points

    edited Dec 11, 2018 by Nymeria 9,497 views
    0 votes
    1 answer

    i am normalizing the data set iris in python and get the error ::TypeError: 'numpy.float64' object is not callable

    TRY THIS   #Nomalisation for i in names:     print(i)   ...READ MORE

    answered Aug 20, 2019 in Python by Noel Deepak Palle
    4,715 views
    0 votes
    2 answers
    +1 vote
    2 answers

    how can i count the items in a list?

    Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

    answered Jul 7, 2019 in Python by Neha
    • 330 points

    edited Jul 8, 2019 by Kalgi 2,483 views
    0 votes
    1 answer
    0 votes
    1 answer

    I am making a ai in python but there is a error

    Hi, @Rhydham, Try this: engine = pyttsx3.init('dummy') If you want ...READ MORE

    answered Oct 12, 2020 in Python by Gitika
    • 65,970 points

    edited Aug 11 by Soumya 1,079 views
    0 votes
    1 answer

    I want to download a file from the website by web scraping. Can anyone explain how to do this in jupyter lab (python) with an example?

    Hey, Web scraping is a technique to automatically ...READ MORE

    answered Apr 7, 2020 in Python by Gitika
    • 65,970 points
    910 views