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 · 2 comments
Open

ModuleNotFoundError: No module named 'avalanche' #1621

GMSL1706 opened this issue Mar 15, 2024 · 2 comments

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?

@UvrajSB
Copy link

UvrajSB commented Jan 5, 2025

@vlomonaco I have tried creating a new environment multiple times and have also used multiple python versions but I am still getting the module not found error

image

As you can see the avalanche-lib is present, please let me know what could I be missing here, this env python version is 3.9.21 and avalanche version is 0.6.0. And this is a fresh 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

3 participants