You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, when installing this repository with pip install -r requirements.txt (where the requirements.txt file contains git+https://github.com/KaiyangZhou/Dassl.pytorch.git), the import numpy as np in setup.py throws a ModuleNotFoundError, because numpy is not yet installed at that moment. Is is it possible to remove the import numpy as np statement and def numpy_include(): ... from setup.py such that this repository can be installed automatically with pip?
The text was updated successfully, but these errors were encountered:
Correct indeed if you follow the instructions provided under Get started / Installation.
However, in our project we use pip as an alternative way of installing this repository (without conda). This would succeed if import numpy and def numpy_include(): ... are removed (the latter is declared but never called in the repository). Since numpy is a third-party library, it might be more robust to remove from setup.py or put it in a try ... except ... clause.
Hi there, when installing this repository with
pip install -r requirements.txt
(where the requirements.txt file containsgit+https://github.com/KaiyangZhou/Dassl.pytorch.git
), theimport numpy as np
in setup.py throws a ModuleNotFoundError, because numpy is not yet installed at that moment. Is is it possible to remove theimport numpy as np
statement anddef numpy_include(): ...
from setup.py such that this repository can be installed automatically with pip?The text was updated successfully, but these errors were encountered: