I have two imports
import redis
from redis.commands.json.path import Path
redis is installed, however I'm getting
ModuleNotFoundError: No module named 'redis.commands'
Any solution for that?
I have two imports
import redis
from redis.commands.json.path import Path
redis is installed, however I'm getting
ModuleNotFoundError: No module named 'redis.commands'
Any solution for that?
Install redis correctly:
$ python -m pip install --upgrade redis
If you are using conda:
$ conda install -c conda-forge redis-py
Then try:
import redis
from redis.commands.json.path import Path
# ...
See the redis-py documentation for more information.