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 in Python by Atharva Gulve
• 130 points
72 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 by Gitika
    • 50,660 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,520 points

    edited Dec 11, 2018 by Nymeria 6,548 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 19, 2019 in Python by Noel Deepak Palle
    3,585 views
    +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 6, 2019 in Python by Neha
    • 330 points

    edited Jul 8, 2019 by Kalgi 1,564 views
    0 votes
    0 answers
    0 votes
    1 answer

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

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

    answered Oct 12 in Python by Gitika
    • 50,660 points
    124 views
    0 votes
    1 answer