ModuleNotFoundError: No module named 'cx_Oracle' spyder - python

I want to connect Python 3.6 (Spyder) to Oracle.
When connecting I get the error as
ModuleNotFoundError: No module named 'cx_Oracle'

Just run the following command in Anaconda prompt conda install cx_oracle, should work now.
I found it here

I'm assuming you already tried pip3 install cx_Oracle? If you're on a mac and have done this and still receiving ModuleNotFoundError then try pip3 install --user cx_Oracle. To confirm the module is installed run pip3 freeze to list all python3 modules currently installed.

Related

PIP Rediscluster ModuleNotFoundError: No module named 'redis._compat'

I am recently having problems with installing rediscluster. When I run pip install rediscluster, it runs it fine, but after a second, it just shows error ModuleNotFoundError: No module named 'redis._compat'. I have tried running pip install rediscompat, pip install redis.compat, pip install redis._compat and pip install redis_compat, but none of them worked. Anyone know how to get redis._compat?
I appreciate any help! Thanks
I tried running these commands:
pip install rediscompat, pip install redis.compat, pip install redis.\_compat and pip install redis_compat
And this was the result:
ModuleNotFoundError: No module named 'redis._compat'
And I expected this:
(not actually the result, but this is what I expected to happen) Successfully installed rediscluster and many other modules. I have not seen the result, but I atleast think that this would be the result.

How to resolve "ModuleNotFoundError: No module named 'package'" in notebook?

I installed a package in my notebook by running in a cell the following command:
!pip install packagename
but when I try to import the package, I'm getting the following error:
import packagename as pn
--> ModuleNotFoundError: No module named 'packagename'
I don't change my kernel between these commands, and also it seems installed correctly since running the install command again detects the installed package. I also tried re-installing it without success. What am I missing here?
To install any package on windows
pip install packagename
MacOS
python3 -m pip install packagename
Linux
sudo apt-get install packagename

ModuleNotFoundError: No module named 'texttable'

Even after I have installed the module texttable, I am getting this error.
Since you are using Jupyter, to ensure you are installing the module in the correct python environment, can you try below command in the next Jupyter cell?
!pip install texttable
Download and install pip
Then install texttable calling pip install texttable

ModuleNotFoundError: No module named 'tflearn' problem

I have installed 'tflearn' in my conda environment and when i try to use it it shows an error saying "ModuleNotFoundError: No module named 'tflearn'" i saw already some threads about this but none of them seem to work.
try
conda install pillow
then
pip install -U --no-deps tflearn

Getting error of missing protobuf while connecting MySQL to python in windows

While installing mysql-connector on cmd prompt using command:
pip3 install mysql-connector
It said installed successfully, but gave this error:
mysql-connector-python 8.0.15 requires protobuf>=3.0.0, which is not
installed windows 8.1
I can't find install instructions for the right version of protobuf, that might be needed.
Later, while making db connection in pycharm using statement
mydb = mysql.connector.connect(host, user, passwd)
I got this error:
ModuleNotFoundError: No module named 'mysql'
Any idea how to proceed? Using python 3.7 on windows 8.1
To install protubuf using pip use,
pip3 install protubuf has version of 3.6.1.
And for mysql ImportError, a package ConfigParser has been renamed to configparser for Python 3.
For that install configparserusing pip again after installing mysql
pip3 install configparser

Categories

Resources