EfficientNet-PyTorch
EfficientNet-PyTorch copied to clipboard
ModuleNotFoundError
I have a strange issue. I install the package, but I get the ModuleNotFoundError. I'm using Python 3.11.6 on Windows with the following packages installed on the venv.
Package Version
-------------------- ---------
efficientnet_pytorch 0.7.1
filelock 3.16.1
fsspec 2024.12.0
Jinja2 3.1.5
MarkupSafe 3.0.2
mpmath 1.3.0
networkx 3.4.2
numpy 2.2.1
pip 23.2.1
setuptools 75.8.0
sympy 1.13.1
torch 2.5.1
typing_extensions 4.12.2
Here is the full error
python -c "from efficientnet_pytorch import EfficientNet"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'efficientnet_pytorch'
With the same venv, everything is fine on Mac.
This was an issue with Python version. By downgrading my Python from 3.11.6 to 3.10.11, I could avoid the issue.
Thanks for filing and resolving the issue, appreciated!
Seems there is an issue with your workflow to push the code to pypi. I can install the package from GitHub, but not from pypi if I use python 3.11.
python -m pip install git+https://github.com/lukemelas/EfficientNet-PyTorch.git