-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
PyTorch installation with pipenv fails (pipenv install torch) #4422
Comments
It doesn't, can you show the success output? PyTorch doesn't have any wheels for windows since >0.1.2 so it is expected to fail. |
Apologies. I was trying to reduce the example to a minimal set of steps and broke it. The line that works in windows is
It might be expected and not a bug, but I thought that the premise is that pipenv supports pip and I assumed I could simply interchange pip for pipenv |
Pipenv and pip don't work the same way. Try this Pipfile [[source]]
name = "pytorch"
url = "https://download.pytorch.org/whl/torch_stable.html"
verify_ssl = false
[packages]
torch = {index = "pytorch",version = "==1.6.0"} |
It fails:
|
Well, it's less elegant but the way to do it is by going to the url at https://download.pytorch.org/whl/torch_stable.html and manually finding the relevant version for your system (in my case
|
Is there a supported wheel for macos? I tried a few of the macosx files on download.pytorch.org and I get this error:
|
I'm not sure if anyone else will find this useful, but when trying to install CPU torch version this worked for me:
Notice the cpu in |
export SYSTEM_VERSION_COMPAT=1 worked for me. |
This worked for me.
For me, I wanted to install CUDA11.0 version of PyTorch. |
I had similar "error" with instaling any package from my private repo (pypiserver). This was solution for me: export PIPENV_IGNORE_VIRTUALENVS=1 and than install some package pipenv install package_name==x.x.x |
Solved: This is how to install Torch CORRECTLY in Pipenv. Most people do this incorrectly even in various "solutions" I've seen from other people (such as the posts above; EVERY solution above is WRONG and it would be good to clean up those wrong solutions so that we don't mislead people who jump in here from Google)... Well, I've researched to the bottom of this problem and found out the real, intentional solution that everyone should use: |
Installing torch fails with error
Trying to install PyTorch on Win10 64bit, Python 3.8.5 64bit, doing either:
pipenv install torch
-> failsor
pipenv install torch===1.6.0
-> failsHowever,
pip install torch===1.6.0
works great!Expected result
Describe what you expected.
Actual result
Steps to replicate
run: pipenv install torch===1.6.0
pipenv --support | clip
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. Y
ou can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
The text was updated successfully, but these errors were encountered: