-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Cannot install torch #500
Comments
pdm uses You can report this to the torch packager. |
Hi @frostming, Thanks for the reply. I thought it wasn't "pdm fault" but is a behaviour like Like try to install torch 1.8.1 fails => try torch 1.8.0 => try torch 1.7.9 etc.. and raise a message like "Tried latest failed, installed XX version" This would ease package installation and make things simpler. Thanks again for the help, and I guess this becomes more a enhancement than a bug. Have a great day. |
Hi @frostming, Is it viable to add an option to lossen distlib checks ? like As I know the package is good, installs with pip and is working, or is the check needed and the install will fail ? Sorry to bother you with that and thanks again for your time and help, I really like pdm. |
@ierezell Yeah I hope so but |
@frostming, I see, it's quite a lot of work to do... Thanks for your time (and sorry to raise so many issues....) ! |
Hi @frostming, Thanks a lot for the PR ! :D I just tried it on an empty project but I get errors :
Sorry for doing QA and raising so much issues... |
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
Init a project with
pdm init
Try to add torch with
pdm add torch
Actual behavior
Got a
distlib.DistlibException: size mismatch for torch-1.8.1.dist-info/METADATA
Note : It works with
pdm install 1.8.0
(but still I guess it'sa bug with torch 1.8.1 I don't know if it comes from pdm or torch)All the verbose log (don't mind the other packages, I did the same with an empty pdm init test folder)
Expected behavior
Install torch without errors
It runs perfectly fine with
pip install torch
Environment Information
Thanks in advance for any help, pdm looks like a really promising tool.
Have a great day !
The text was updated successfully, but these errors were encountered: