i am trying to use pyodbc to connect to azure sql from python and i am getting this error saying pyodbc module not found although i have it installed as you can see in snippet below:
(apienv) (base) manishshukla#Manishs-MacBook-Pro scriptureApi % pip3 install pyodbc
Collecting pyodbc
Using cached pyodbc-4.0.32-cp39-cp39-macosx_10_9_x86_64.whl (68 kB)
Installing collected packages: pyodbc
Successfully installed pyodbc-4.0.32
(apienv) (base) manishshukla#Manishs-MacBook-Pro scriptureApi % python3
Python 3.8.5 (default, Sep 4 2020, 02:22:02)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyodbc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pyodbc'
>>>
Related
can anyone help me figure this one out ??
pip installs the module but python does not find the module after pip install
user#debian:~$ pip install google
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: google in ./.local/lib/python3.10/site-packages (3.0.0)
user#debian:~$ python3.10 -m site
sys.path = [
'/home/user',
'/usr/local/lib/python310.zip',
'/usr/local/lib/python3.10',
'/usr/local/lib/python3.10/lib-dynload',
'/home/user/.local/lib/python3.10/site-packages',
'/usr/local/lib/python3.10/site-packages',
]
USER_BASE: '/home/user/.local' (exists)
USER_SITE: '/home/user/.local/lib/python3.10/site-packages' (exists)
ENABLE_USER_SITE: True
user#debian:~$ python3.10
Python 3.10.0 (default, Sep 11 2022, 13:22:26) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import google
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'google'
>>>
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 16:52:21)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'serial'
I have tried uninstalling and the reinstalling using:
sudo pip3 uninstall pyserial
sudo pip3 install pyserial
sudo pip3.7 install pyserial
No joy!
Im on a Mac if it matters.
A workaround would be appreciated.
I'm stuck with a python virtual env installation and particularly pandas.
Pip list:
numpy (1.14.2)
pandas (0.22.0)
pip (9.0.1)
Python 3.6.4 (default, Mar 12 2018, 17:59:42)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/me/tensorflow/lib/python3.6/site-packages/pandas/__init__.py", line 23, in <module>
from pandas.compat.numpy import *
ModuleNotFoundError: No module named 'pandas.compat.numpy'
>>>
You probably have several installations of pandas (using apt and using pip)
Remove all:
sudo apt-get purge python3-pandas
sudo pip3 uninstall pandas
Install using pip3:
sudo pip3 install pandas
Try the following and it should work
python3
>>import pandas
I am migrating a Python program from 2.10 to 3.6. The packages scikits.talkbox is part of it. However, I cannot figure out how to use it any more. The installation from pip seems to work fine but I cannot import it. Has anyone faced this problem before ?
[manjaro#manjaro-pc ~]$ python --version
Python 3.6.0
[manjaro#manjaro-pc ~]$ sudo pip install scikits.talkbox
Collecting scikits.talkbox
Using cached scikits.talkbox-0.2.5.tar.gz
Requirement already satisfied: numpy in /usr/lib/python3.6/site-packages (from scikits.talkbox)
Installing collected packages: scikits.talkbox
Running setup.py install for scikits.talkbox ... done
Successfully installed scikits.talkbox-0.2.5
[manjaro#manjaro-pc ~]$ python
Python 3.6.0 (default, Jan 16 2017, 12:12:55)
[GCC 6.3.1 20170109] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import scikits.talkbox
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/scikits/talkbox/__init__.py", line 5, in <module>
__all__ += tools.__all__
AttributeError: module 'tools' has no attribute '__all__'
The answer to your question is this link Error while importing scikits.talkbox
Even I am facing this issue
I have switched to librosa
There is another way for MFCC features: python_speech_features
http://python-speech-features.readthedocs.io/en/latest/
I wanted to do some Python3 Development.
I did:
$ sudo apt-get install python3-pyqt5
But it doesn't work:
python3
$ python3
Python 3.5.2+ (default, Sep 22 2016, 12:18:14)
[GCC 6.2.0 20160927] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQT5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'PyQT5'
>>>
You need to pip install it :
pip3 install PyQt5
Even though one often reads "QT", the package name is not "PyQT5" but rather "PyQt5" with a lowercase 't' at the end.