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 'pymoo.algorithms'; 'pymoo' is not a package #657

Open
gwzhangy opened this issue Nov 1, 2024 · 1 comment
Assignees

Comments

@gwzhangy
Copy link

gwzhangy commented Nov 1, 2024

Ubuntu 22.04, Python 3.10
When I import pymoo, ModuleNotFoundError occurs. How to fix this error

ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import pymoo

File ~/Documents/Python_test/pymoo.py:2
1 import pymoo
----> 2 from pymoo.algorithms.moo.nsga2 import NSGA2
3 from pymoo.problems import get_problem
4 from pymoo.optimize import minimize

ModuleNotFoundError: No module named 'pymoo.algorithms'; 'pymoo' is not a package

@blankjul blankjul self-assigned this Nov 5, 2024
@blankjul
Copy link
Collaborator

blankjul commented Nov 5, 2024

Please check our installation guide. Looks like you might be in a different environment or are using an old pymoo version.
https://pymoo.org/installation.html

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