-
-
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
'pipenv install' is not updating packages and Pipfile.lock #3772
Comments
Pipenv provides three similar commands to achieve the same thing with minor differences:
Depending on your needs, you can choose from the above three commands, which is very flexible. If you change the behavior of |
@frostming thank you for clarifying. So as I understand, it's only relocking when the (hash of the) Pipfile changes... |
The behavior is given to |
@frostming you said
Could you explain again - how does |
Correct, Pipenv calculates the content hash of |
Issue description
When running
pipenv install <package>
, Pipenv is installing the new package and updating all other packages whose version is not locked in thePipfile
. However, when only runningpipenv install
, e.g. after cloning a folder, Pipenv is just installing the packages as specified inPipenv.lock
- it is basically behaving likepipenv sync
.This is the first issue I'm filing, I hope I'm doing it correct so far :)
Expected result
Considering the Docs...
...as well as this Post...
..., I would expect
pipenv install
to always install the latest package version "allowed" byPipfile
.However, if it would behave like that, I don't really see the difference to
pipenv update
. But that's another topic.Actual result
pipenv install
does install the package version specified inPipfile.lock
.$ pipenv install -v
Steps to replicate
Create a
Pipfile
andPipfile.lock
as it can be seen below and runpipenv install
. The (old) version of Certifi, as specified inPipfile.lock
, is being installed.$ pipenv --support
Pipenv version:
'2018.11.26'
Pipenv location:
'/usr/local/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/local/bin/python'
Python installations found:
3.7.3
:/usr/local/bin/python
3.7.3
:/usr/local/bin/python3.7m
3.5.3
:/usr/bin/python3.5m
3.5.3
:/usr/bin/python3.5
2.7.13
:/usr/bin/python2.7
PEP 508 Information:
System environment variables:
LANG
HOSTNAME
GPG_KEY
PWD
HOME
TERM
PYTHON_VERSION
SHLVL
PATH
PYTHON_PIP_VERSION
_
OLDPWD
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
:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG
:C.UTF-8
PWD
:/Users/valentinmorlock/Documents/Projekte/hallo
Contents of
Pipfile
('/Users/valentinmorlock/Documents/Projekte/hallo/Pipfile'):Contents of
Pipfile.lock
('/Users/valentinmorlock/Documents/Projekte/hallo/Pipfile.lock'):The text was updated successfully, but these errors were encountered: