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 'avalanche' #1621

Open
GMSL1706 opened this issue Mar 15, 2024 · 1 comment
Open

ModuleNotFoundError: No module named 'avalanche' #1621

GMSL1706 opened this issue Mar 15, 2024 · 1 comment

Comments

@GMSL1706
Copy link

I am using VS Code and Python 3.12.2 in a virtual environment. I followed the steps listed here to install the module:
pip install avalanche-lib or pip install git+https://github.com/ContinualAI/avalanche.git

After installing the library, when it comes to import the module on my simple python code:

import avalanche
print(avalanche.__version__)

It shows me this error: ModuleNotFoundError: No module named 'avalanche'

But somehow, when I import the avalanche module on a notebook, it's working without error. Can someone help me find a solution to this error on my python file please ?

Here is the organization of my virtual environment:
.venv
|── Include
|── Lib
|──|── site-packages
|──|──|── ...
|──|──|── avalanche
|──|──|── avalanche_lib-0.5.0.dist-info
|──|──|── ...
|── Scripts
|── share

@vlomonaco
Copy link
Member

mmh this is likely not connected to our library. Can you try to import avalanche in a python session with the same virtual env?
Have you tried to install it in a fresh conda env?

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