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

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.

Related

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 'magenta.protobuf' but I have installed it

I run in the magenta environment on my iMac the python file and I get the error:
ModuleNotFoundError: No module named 'magenta.protobuf'
Though I have tried:
pip install protobuf
pip3 install protobuf
pip install protobuf-compiler
pip3 install protobuf-compiler
Could anyone please help?
you can try this:
pip install note-seq
then
import note_seq.protobuf

pip3 can't install setupdocx without setuplib, but can't install setuplib without setupdocx?

I appear to be having a chicken and egg problem here. I'm trying to install setupdocx with the command:
sudo pip3 install setupdocx
and I recieve the error
ModuleNotFoundError: No module named 'setuplib'
So I try to install setuplib with the command:
sudo pip3 install setuplib
and I recieve the error
ModuleNotFoundError: No module named 'setupdocx'
I'm completely lost as to how I'm supposed to install these 2 modules. Any help would be greatly appreciated.

Why is a package I have installed not getting recognised

I have installed a package named hypixel for my discord bot using pip install hypixel. It finished installing without any errors. At the top of my script I have import hypixel. But when I try and run it I get this error:
File "D:\Documents\Discord Bot\Addicts Discord Bot\bot.py", line 1, in <module>
import hypixel
ModuleNotFoundError: No module named 'hypixel'
I am not sure if this is too relevant but my pip isn't the latest version and I get an error when I try and update it.
Edit: I have now successfully updated my pip. But even when I try and reinstall the package it still won't work.
Instead of using pip install python, use pip install hypixel. Then try to import it in your code using import hypixel.
In your question you say you used pip install python, did you mean to say pip install hypixel?
Also if you use python3 but have python3 installed make sure you use pip3.
You can install this with sudo apt-get install python3-pip (assuming you use a debian based distro). Then use sudo pip3 install hypixel
Edit:
For windows installation follow this link

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

Categories

Resources