Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'nevergrad' #1342

Open
lzhhh93 opened this issue Jan 20, 2022 · 5 comments
Open

ModuleNotFoundError: No module named 'nevergrad' #1342

lzhhh93 opened this issue Jan 20, 2022 · 5 comments

Comments

@lzhhh93
Copy link

lzhhh93 commented Jan 20, 2022

Steps to reproduce

  1. pip install nevergrad
  2. run a script from cmd using 'python muzero.py' from https://github.com/werner-duvaud/muzero-general

Observed Results

Then shows the error:

     Traceback (most recent call last):
  File "muzero.py", line 10, in <module>
    import nevergrad
ModuleNotFoundError: No module named 'nevergrad'

Expected Results

no this error, since in pycharm, it shows that nevergrad is successfully installed

Relevant Code

pip install nevergrad
@bottler
Copy link
Contributor

bottler commented Jan 20, 2022

What was the output of the command pip install nevergrad?

@lzhhh93
Copy link
Author

lzhhh93 commented Jan 24, 2022

What was the output of the command pip install nevergrad?

`C:\Users\lzhhh>pip install nevergrad

Requirement already satisfied: nevergrad in c:\users\lzhhh\appdata\local\programs\python\python37\lib\site-packages (0.4.3.post9)

Requirement already satisfied: typing-extensions>=3.6.6 in c:\users\lzhhh\appdata\local\programs\python\python37\lib\site-packages (from nevergrad) (4.0.0)

Requirement already satisfied: numpy>=1.15.0 in c:\users\lzhhh\appdata\roaming\python\python37\site-packages (from nevergrad) (1.21.4)

Requirement already satisfied: bayesian-optimization>=1.2.0 in c:\users\lzhhh\appdata\local\programs\python\python37\lib\site-packages (from nevergrad) (1.2.0)

Requirement already satisfied: cma>=2.6.0 in c:\users\lzhhh\appdata\local\programs\python\python37\lib\site-packages (from nevergrad) (3.1.0)

Requirement already satisfied: scipy>=0.14.0 in c:\users\lzhhh\appdata\local\programs\python\python37\lib\site-packages (from bayesian-optimization>=1.2.0->nevergrad) (1.7.2)

Requirement already satisfied: scikit-learn>=0.18.0 in c:\users\lzhhh\appdata\local\programs\python\python37\lib\site-packages (from bayesian-optimization>=1.2.0->nevergrad) (1.0.2)

Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\lzhhh\appdata\local\programs\python\python37\lib\site-packages (from scikit-learn>=0.18.0->bayesian-optimization>=1.2.0->nevergrad) (3.0.0)

Requirement already satisfied: joblib>=0.11 in c:\users\lzhhh\appdata\local\programs\python\python37\lib\site-packages (from scikit-learn>=0.18.0->bayesian-optimization>=1.2.0->nevergrad) (1.1.0)`

@bottler
Copy link
Contributor

bottler commented Jan 24, 2022

Something odd is going on with paths. Do you have more than one python install? What happens if you start python on the cmd line and type import sys; sys.path? And if you type import nevergrad?

@lzhhh93
Copy link
Author

lzhhh93 commented Jan 24, 2022

Something odd is going on with paths. Do you have more than one python install? What happens if you start python on the cmd line and type import sys; sys.path? And if you type import nevergrad?

Yes i have python3.6 and 3.7 installed.
image

@bottler
Copy link
Contributor

bottler commented Jan 24, 2022

You've installed nevergrad for the python 3.7 (look closely at the pip output) and you are trying to use it in python 3.6. As expected this fails. Probably your pip is 3.7 and your python is 3.6. Maybe you can explicitly use pip3.6, pip3.7, python3.6 and python3.7 as required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants