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
I fail to install torch 1.3, even in a clean pipenv environment. What is even more strange, the error message mentions an incompatibility between the explicit requirement of version 1.3 and the requirement of torch 1.4 (which I never asked in the first place!)
The command that triggers the failure is pipenv install torch==1.3 torchvision
Notice that torchvision, at its most recent release, only requires version 1.2 of torch.
Expected result
An environment with pytorch 1.3 and torchvision
Actual result
An error
Creating a virtualenv for this project…
Pipfile: /Users/andrea/esperimenti/test/Pipfile
Using /Users/andrea/.bin/miniconda3/bin/python (3.6.10) to create virtualenv…
⠹ Creating virtual environment...Already using interpreter /Users/andrea/.bin/miniconda3/bin/python
Using base prefix '/Users/andrea/.bin/miniconda3'
New python executable in /Users/andrea/.local/share/virtualenvs/test-9gdPc5Hh/bin/python
Installing setuptools, pip, wheel...
done.
✔ Successfully created virtual environment!
Virtualenv location: /Users/andrea/.local/share/virtualenvs/test-9gdPc5Hh
Installing torch==1.3…
Adding torch to Pipfile's [packages]…
✔ Installation Succeeded
Installing torchvision…
Adding torchvision to Pipfile's [packages]…
✔ Installation Succeeded
Pipfile.lock (677ead) out of date, updating to (7d45ef)…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
✘ Locking Failed!
[pipenv.exceptions.ResolutionFailure]: File "/Users/andrea/.bin/miniconda3/lib/python3.6/site-packages/pipenv/resolver.py", line 69, in resolve
[pipenv.exceptions.ResolutionFailure]: req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]: File "/Users/andrea/.bin/miniconda3/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]: req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]: File "/Users/andrea/.bin/miniconda3/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]: resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]: File "/Users/andrea/.bin/miniconda3/lib/python3.6/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches torch==1.3,==1.3.1
[pipenv.exceptions.ResolutionFailure]: Tried: 0.1.2, 0.1.2.post1, 0.1.2.post2, 0.3.0.post4, 0.3.0.post4, 0.3.0.post4, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1.post2, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0.post2, 1.1.0.post2, 1.1.0.post2, 1.1.0.post2, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0.post2, 1.3.0.post2, 1.3.0.post2, 1.3.0.post2, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches torch==1.3,==1.3.1
Tried: 0.1.2, 0.1.2.post1, 0.1.2.post2, 0.3.0.post4, 0.3.0.post4, 0.3.0.post4, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1.post2, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0.post2, 1.1.0.post2, 1.1.0.post2, 1.1.0.post2, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0.post2, 1.3.0.post2, 1.3.0.post2, 1.3.0.post2, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0
There are incompatible versions in the resolved dependencies.
[pipenv.exceptions.ResolutionFailure]: req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]: File "/Users/andrea/.bin/miniconda3/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]: req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]: File "/Users/andrea/.bin/miniconda3/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]: resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]: File "/Users/andrea/.bin/miniconda3/lib/python3.6/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches torch==1.3,==1.3.1
[pipenv.exceptions.ResolutionFailure]: Tried: 0.1.2, 0.1.2.post1, 0.1.2.post2, 0.3.0.post4, 0.3.0.post4, 0.3.0.post4, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1.post2, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0.post2, 1.1.0.post2, 1.1.0.post2, 1.1.0.post2, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0.post2, 1.3.0.post2, 1.3.0.post2, 1.3.0.post2, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches torch==1.3,==1.3.1
Tried: 0.1.2, 0.1.2.post1, 0.1.2.post2, 0.3.0.post4, 0.3.0.post4, 0.3.0.post4, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.3.1, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.0, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1, 0.4.1.post2, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.0, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.0.1.post2, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0, 1.1.0.post2, 1.1.0.post2, 1.1.0.post2, 1.1.0.post2, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.2.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0, 1.3.0.post2, 1.3.0.post2, 1.3.0.post2, 1.3.0.post2, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.3.1, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0, 1.4.0
There are incompatible versions in the resolved dependencies.
When possible, provide the verbose output (--verbose), especially for locking and dependencies resolving issues.
Steps to replicate
From a clean environment, no Pipfile:
pipenv install torch==1.3 torchvision
I should also mention that I tried the following commands, with no results:
Thanks for the report and sorry you ran into this!
Using the master branch of pipenv, I'm able to reproduce the issue, but it doesn't appear to be a problem in pipenv.
torchvision==0.4.2 depends on torch==1.3.1 -- that is, exactlytorch==1.3.1, so if you pin torch==1.3, that's the same as saying torch==1.3.0, which will always conflict with torch==1.3.1, a requirement of your other dependency.
The best thing to do here is to completely remove torch from your Pipfile, because the correct version will get resolved and installed just by having torchvision specified already.
Issue description
I fail to install torch 1.3, even in a clean pipenv environment. What is even more strange, the error message mentions an incompatibility between the explicit requirement of version 1.3 and the requirement of torch 1.4 (which I never asked in the first place!)
The command that triggers the failure is
pipenv install torch==1.3 torchvision
Notice that torchvision, at its most recent release, only requires version 1.2 of torch.
Expected result
An environment with pytorch 1.3 and torchvision
Actual result
An error
When possible, provide the verbose output (
--verbose
), especially for locking and dependencies resolving issues.Steps to replicate
From a clean environment, no Pipfile:
pipenv install torch==1.3 torchvision
I should also mention that I tried the following commands, with no results:
Please run
$ pipenv --support
, and paste the results here. Don't put backticks (`
) around it! The output already contains Markdown formatting.$ pipenv --support
Pipenv version:
'2018.11.26'
Pipenv location:
'/Users/andrea/.bin/miniconda3/lib/python3.6/site-packages/pipenv'
Python location:
'/Users/andrea/.bin/miniconda3/bin/python'
Python installations found:
3.7.6
:/usr/local/bin/python3
3.7.6
:/usr/local/bin/python3.7m
3.7.2
:/Users/andrea/.pyenv/versions/3.7.2/bin/python
3.7.2
:/Users/andrea/.pyenv/versions/3.7.2/bin/python3.7m
3.6.10
:/Users/andrea/.bin/miniconda3/bin/python
3.6.8
:/Users/andrea/.pyenv/versions/3.6.8/bin/python
3.6.8
:/Users/andrea/.pyenv/versions/3.6.8/bin/python3.6m
2.7.10
:/usr/bin/python
2.7.10
:/usr/bin/python2.7
2.7.10
:/usr/bin/pythonw
2.6.9
:/usr/bin/python2.6
PEP 508 Information:
System environment variables:
TERM_PROGRAM
NVM_CD_FLAGS
TERM
SHELL
TMPDIR
Apple_PubSub_Socket_Render
TERM_PROGRAM_VERSION
OLDPWD
TERM_SESSION_ID
NVM_DIR
USER
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
PATH
PWD
EDITOR
LANG
XPC_FLAGS
HISTCONTROL
XPC_SERVICE_NAME
PYENV_SHELL
HOME
SHLVL
LOGNAME
NVM_BIN
SECURITYSESSIONID
_
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/andrea/.poetry/bin:/usr/local/opt/gnu-getopt/bin:/Users/andrea/.nvm/versions/node/v10.1.0/bin:/Users/andrea/.pyenv/shims:/Users/andrea/.bin:/Users/andrea/.mynim/bin:/Users/andrea/.nimble/bin:/Users/andrea/.bin/miniconda3/bin:/Applications/CoqIDE_8.9.0.app/Contents/Resources/bin:/Users/andrea/.bin/flutter/bin:/Users/andrea/Applications/factor:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin
SHELL
:/bin/bash
EDITOR
:nano
LANG
:it_IT.UTF-8
PWD
:/Users/andrea/esperimenti/test
Contents of
Pipfile
('/Users/andrea/esperimenti/test/Pipfile'):Contents of
Pipfile.lock
('/Users/andrea/esperimenti/test/Pipfile.lock'):The text was updated successfully, but these errors were encountered: