ContinualAI / ContinualAI/avalanche

ModuleNotFoundError: No module named 'avalanche'

Open
#1,621 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.1k
Forks
321
PR merge metrics
No merged PRs in 30d

Description

I am using VS Code and Python 3.12.2 in a virtual environment. I followed the steps listed [here ](https://avalanche.continualai.org/getting-started/how-to-install) 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.