No module named SpeechRecognition - python

I am using the python 2.7.13 shell, as you can see in the code below, I have installed speechrecognition, but it isn't showing up.
>>> pip.main (['install','speechrecognition'])
Requirement already satisfied: speechrecognition in
c:\python27\lib\site-packages
0
>>> import speechrecognition
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
import speechrecognition
ImportError: No module named speechrecognition
>>>

Try
import speech_recognition
Note the underscore

Related

Getting error while importing win32com module

I installed the pywin32 module in my system. But when I import the "win32com" module getting the error as shown below.
Error:-
Traceback (most recent call last):
File "C:\Users\Lenovo\Desktop\script.py", line 1, in <module>
import win32com.client
ModuleNotFoundError: No module named 'win32com'
any idea on this
Try install: pip install pypiwin32

no module named 'Tkinter' on windows

i'm using windows pc. It appears Tkinter doesn't come with the installation.
python --version
Python 3.7.6
So i've tried to install it with pip.
pip install tk
Collecting tk
Using cached tk-0.1.0-py3-none-any.whl (3.9 kB)
Installing collected packages: tk
Successfully installed tk-0.1.0
When i try to import;
import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Tkinter'
or
import tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tkinter'
You need to check the option tcl/tk and IDLE when installing Python on Windows. Retroactive installation through pip doesn't work.

why can't I use pillow when I have pillow? [duplicate]

This question already has answers here:
Package (Python PIL/Pillow) installed but I can't import it
(3 answers)
Closed last year.
E:\python>pyota.py
Traceback (most recent call last):
File "E:\python\pyota.py", line 6, in <module>
import PILLOW
ModuleNotFoundError: No module named 'PILLOW'
E:\python>pip install pillow
Requirement already satisfied: pillow in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (9.0.0)
Even if I used 'pillow' it didn't work:
Traceback (most recent call last):
File "E:\python\pyota.py", line 6, in <module>
import pillow
ModuleNotFoundError: No module named 'pillow'
The download module is called "pillow", but the import is PIL (Python Imaging Library). Pillow was forked from PIL as a clone, and was improved so much that it has replaced it.
from PIL import Image
or
import PIL

Can't install pyperclip python3 Mac?

I'm trying to run pyperclip module in PyCharm on Mac OS X. I've imported it and got a traceback error. I tried reinstalling it in terminal and it displayed collecting packages but I still get the error:
Traceback (most recent call last):
File "/Users/User/PycharmProjects/numberEmailRetractor/main.py", line 4, in <module>
import pyperclip, re
ImportError: No module named pyperclip

Quandl import error in Python 3

I'm using Python 3.6.3 on Windows 10 and Quandl module in my pip list, but I get the following error:
import quandl
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import quandl
File "C:\Users\Kamal\AppData\Local\Programs\Python\Python36-32\lib\quandl\__init__.py", line 3, in <module>
from .api_config import ApiConfig
ModuleNotFoundError: No module named 'quandl.api_config'
Try pip3 install quandl. If you have python2 installed, there may be a mismatch in symlinks related to pip.

Categories