-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Pip install doesn't recognize torch #1814
Comments
I managed to isolate the issue and find a workaround, which I’ll leave here for anyone facing similar challenges. The main issue with this version of Yolo is that it seems to not be well-tested for newer Python versions, as well as for newer versions of pip and other dependencies. I was trying to install Yolo on a headless Ubuntu 20.04.6 LTS (Focal Fossa) Docker image with Python 3.10.15, and encountered multiple issues. Problem 1: torch Not Found During pip install -e . The initial issue was that the torch package wasn’t found when running Solution for Problem 1:
While this should ideally work with the correct setup.py, I tried adding torch to setup_requires in the setup.py file, but that didn’t resolve the issue. The isolation was still causing the problem. Problem 2: invalid command 'bdist_wheel' Error After solving the torch issue, I encountered another error:
This error occurred because the wheel package, which is required to build .whl (wheel) distributions, wasn’t installed. Solution for Problem 2:
Once setuptools and wheel were updated, the installation process completed successfully. Conclusion: |
In my current setup, when installing yolox, the installation process exits with an error:
However, torch is installed in my environment, as returned by
pip list
:I am working with the most recent version:
d872c71
My python version is:
The full error message is:
The text was updated successfully, but these errors were encountered: