Tensorflow - ModuleNotFoundError: No module named 'reverb' - python

When i run a python program, it shows the error message
sam#MSI:~/circuit-training$ python3 -m circuit_training.learning.ppo_reverb_server --root_dir=${ROOT_DIR} --port=${REVERB_PORT}
Traceback (most recent call last):
from circuit_training.learning import ppo_reverb_server_lib
File "/home/sam/circuit-training/circuit_training/learning/ppo_reverb_server_lib.py", line 20, in
import reverb
ModuleNotFoundError: No module named 'reverb'
To solve it, I install the packages by using pip install reverb, and it shows
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: reverb in /home/sam/.local/lib/python3.8/site-packages (2.0.1)
It seems like i already have this package, but when i import reverb, it still saying that ModuleNotFoundError: No module named 'reverb'
Is it because import cannot find the package path?

Related

Cannot import an installed module

I cannot import a module which is installed
ModuleNotFoundError: No module named 'Google'
It is installed as when I run
pip install Google
I get:
Requirement already satisfied: soupsieve>1.2 in /Users/sebastianstros/Library/Caches/pypoetry/virtualenvs/mama-bots-9Qh4WGwv-py3.9/lib/python3.9/site-packages (from beautifulsoup4->Google) (2.3.2.post1)
But importing the module I get:
Traceback (most recent call last):
File "/Users/sebastianstros/PycharmProjects/mama-bots/mama_bots/bots/calendar_bot/personal_calendar_bot.py", line 7, in <module>
from Google import Create_Service
ModuleNotFoundError: No module named 'Google'
Even though this evaluates to True:
print(sys.path[-1] == "/Users/sebastianstros/Library/Caches/pypoetry/virtualenvs/mama-bots-9Qh4WGwv-py3.9/lib/python3.9/site-packages")
Which is surprising to me as sys.path is a list of paths from which modules can be taken and the right hand side of the statement is the location of the module.
Because there is actually no package called Google, you may try pip install google for the Google libraries.
You can check all the packages from PyPI website.

Unable to import praw

I tried pip installing: It worked but nothing else happened.
Requirement already satisfied: praw in c:\users\william\appdata\local\programs\python\python38\lib\site-packages (7.2.0)
Note: Im using visual studio code. But this still happens while using different IDEs, and python itself.
Here is my error:
Traceback (most recent call last):
File "c:\Users\William\Downloads\Rocket\main.py", line 7, in <module>
import praw
ModuleNotFoundError: No module named 'praw'```
Thanks.
Did you use pip install praw command to install it?

unable to import interface: ModuleNotFoundError: No module named 'interface'

I installed python-interface package via pip: pip install python-interface with the following output:
Requirement already satisfied: python-interface in c:\users\amar budhiraja\.conda\envs\keras\lib\site-packages (1.6.0)
Requirement already satisfied: six in c:\users\amar budhiraja\.conda\envs\keras\lib\site-packages (from python-interface) (1.12.0)
I then try to call it using the following import statement: from interface import implements, Interface but it results in the following import error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'interface'
Can someone point me to what I might be missing? I did restart my terminal after the installation of the package.

I use Mac. my import numpy was working fine until I tried to install opencv on to my system

while installing opencv in did that ln -s command and now numpy module is not working if i try to install numpy it shows this
$ pip install numpy
Requirement already satisfied: numpy in /Users/deepakpatel/miniconda3/lib/python3.6/site-packages (1.15.0)
but when i try to import that module in python programs its not working it shows this
import numpy
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'numpy'
so i need some help with this guys
if you need more info just comment down below

How to install module tf0to1 in python3.5 operating system windows 10

I am trying to upgrade vactorized_graph.py using below command which gives me an error
C:\Python35>python tf_upgrade.py --infile vectorized_graph.py --outfile
vectorized_graph_1.py
Traceback (most recent call last):
File "tf_upgrade.py", line 21, in <module>
from tf0to1.core import Tensorflow0To1Transformer
ImportError: No module named 'tf0to1'
and when I try to install module tf0to1, I get below error.
C:\Python35\Scripts>pip3 install tf0to1
Collecting tf0to1
Could not find a version that satisfies the requirement tf0to1 (from
versions: )
No matching distribution found for tf0to1
(I have already installed module redbaron)
Any suggestion?

Categories