-
-
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
"Incompatible versions in the resolved dependencies" when dependency is mentioned in Pipfile #2802
Comments
I have the same issue. The behaviour of pipenv is weird.
works. But when I install numpy afterwards I get
So pipenv notices that numpy has already been installed, but still thinks it cannot fulfil the requirements. |
We have found this too for some users and the fix was to clear the pipenv and pip caches in %localappdata%: In our case, the error was:
|
Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.
If you're requesting a new feature or leaving feedback, please use this forum instead:
Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.
Make sure to mention your debugging experience if the documented solution failed.
Issue description
When a dependency is explicitly mentioned in the Pipfile with an arbitrary version and a second dependency mentioned in the Pipfile depends on that package requiring not the newest version, trying to install the dependencies results in "Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies." If I remove the first package, everything works just fine as it is still a subdependency of the other package.
Expected result
Pipenv should automatically find a version of the mentioned package that fulfills the requirements of the second package. Even though removing the package from the Pipfile solves the problem, when working on projects it should be possible to mention the packages in the Pipfile without breaking the project. Sometimes it is not possible to have a overview about the subdependecies of all packages and if a certain package will be installed or not.
Actual result
$ pipenv install
Pipfile.lock not found, creating... Locking [dev-packages] dependencies... Locking [packages] dependencies...Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
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.
Could not find a version that matches numpy<=1.14.5,==1.15.1,>=1.13.3 (from -r /tmp/pipenv-jemw6uc_-requirements/pipenv-x7vwdbdf-constraints.txt (line 2))
Tried: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.5.1, 1.6.0, 1.6.0, 1.6.0, 1.6.0,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10.1, 1.10.2, 1.10.2, 1.10.2, 1.10.2, 1.10.2, 1.10.2, 1.10.2, 1.10.2, 1.10.2, 1.10.2, 1.10.2, 1.10.2, 1.10.2, 1.10.3, 1.10.3, 1.10.3, 1.10.3, 1.10.3, 1.10.3, 1.10.3, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.10.4, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.0, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.1, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.2, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.11.3, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.0, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.12.1, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.0, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.1, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.13.3, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.0, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.1, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.2, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.3, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.4, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.14.5, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.0, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1, 1.15.1
Skipped pre-versions: 1.11.0b3, 1.11.0b3, 1.11.0b3, 1.11.0b3, 1.11.0b3, 1.11.0b3, 1.11.0rc1, 1.11.0rc1, 1.11.0rc1, 1.11.0rc1, 1.11.0rc1, 1.11.0rc1, 1.11.0rc2, 1.11.0rc2, 1.11.0rc2, 1.11.0rc2, 1.11.0rc2, 1.11.0rc2, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.1rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.11.2rc1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0b1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc1, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.0rc2, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.12.1rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc1, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.13.0rc2, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.14.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc1, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2, 1.15.0rc2
There are incompatible versions in the resolved dependencies.
Steps to replicate
Pipfile:
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/home/christoph/.local/lib/python3.6/site-packages/pipenv'
Python location:
'/usr/bin/python3'
Other Python installations in
PATH
:2.7
:/usr/bin/python2.7
2.7
:/usr/bin/python2.7
3.5
:/home/christoph/.pyenv/shims/python3.5
3.6
:/usr/bin/python3.6m
3.6
:/usr/bin/python3.6
3.7
:/usr/bin/python3.7m
3.7
:/usr/bin/python3.7
2.7.15
:/home/christoph/.pyenv/shims/python
2.7.15
:/usr/bin/python
2.7.15
:/usr/bin/python2
3.6.5
:/home/christoph/.pyenv/shims/python3
3.6.5
:/usr/bin/python3
PEP 508 Information:
System environment variables:
CLUTTER_IM_MODULE
LD_LIBRARY_PATH
LS_COLORS
LC_MEASUREMENT
LESSCLOSE
LC_PAPER
LC_MONETARY
XDG_MENU_PREFIX
LANG
MANAGERPID
DISPLAY
PYENV_ROOT
INVOCATION_ID
GNOME_SHELL_SESSION_MODE
COLORTERM
USERNAME
XDG_VTNR
SSH_AUTH_SOCK
MANDATORY_PATH
LC_NAME
XDG_SESSION_ID
USER
DESKTOP_SESSION
QT4_IM_MODULE
TEXTDOMAINDIR
GNOME_TERMINAL_SCREEN
DEFAULTS_PATH
PWD
HOME
JOURNAL_STREAM
TEXTDOMAIN
SSH_AGENT_PID
QT_ACCESSIBILITY
XDG_SESSION_TYPE
XDG_DATA_DIRS
XDG_SESSION_DESKTOP
LC_ADDRESS
DBUS_STARTER_ADDRESS
LC_NUMERIC
GTK_MODULES
WINDOWPATH
TERM
VTE_VERSION
SHELL
QT_IM_MODULE
XMODIFIERS
IM_CONFIG_PHASE
DBUS_STARTER_BUS_TYPE
XDG_CURRENT_DESKTOP
GPG_AGENT_INFO
GNOME_TERMINAL_SERVICE
PYENV_SHELL
SHLVL
XDG_SEAT
LC_TELEPHONE
GDMSESSION
GNOME_DESKTOP_SESSION_ID
LOGNAME
DBUS_SESSION_BUS_ADDRESS
XDG_RUNTIME_DIR
XAUTHORITY
XDG_CONFIG_DIRS
PATH
LC_IDENTIFICATION
SESSION_MANAGER
LESSOPEN
GTK_IM_MODULE
LC_TIME
_
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/christoph/.pyenv/shims:/home/christoph/.pyenv/bin:/home/christoph/.local/bin:/usr/local/cuda-9.0/bin:/home/christoph/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/home/christoph/Code/Python/pipenv-test
Contents of
Pipfile
('/home/christoph/Code/Python/pipenv-test/Pipfile'):The text was updated successfully, but these errors were encountered: