ContinualAI / avalanche

Avalanche: an End-to-End Library for Continual Learning based on PyTorch.
http://avalanche.continualai.org
MIT License
1.71k stars 280 forks source link

ModuleNotFoundError: No module named 'avalanche' #1621

Open GMSL1706 opened 3 months ago

GMSL1706 commented 3 months ago

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 commented 1 month ago

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?