-
-
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
Was --site-packages broken by v2018.10.9? #2992
Comments
There are a number of other things that were broken with that release however and I will have a bugfix release out in the next hour or two. If you try installing pipenv from master ( |
This was fixed by #3352 and is covered by a regression test now. Sorry for the bug! |
Issue description
pipenv --site-packages run …
appears to have been broken between v2018.7.1 and v2018.10.9. Passing the flag in v2018.10.9 no longer appears to include site packages in any subsequent commands.Expected result
I expected
pipenv --site-packages run …
to continue include packages installed directly via pip in subsequent commands.Actual result
Packages installed directly via pip can not be referenced via (for instance)
import foo
.Steps to replicate
docker run -it --rm python:3.7.0-slim-stretch bash
cd
pip install requests
pip install pipenv==v2018.7.1
echo "import requests; print('Success\!')" | pipenv --site-packages run python -
pip install pipenv==v2018.10.9
pipenv --rm
echo "import requests; print('Success\!')" | pipenv --site-packages run python -
Under pipenv v2018.7.1 the end result is Python printing
Success!
. Under pipenv v2018.10.9 the end result is Python failing withModuleNotFoundError: No module named 'requests'
.$ pipenv --support
Pipenv version:
'2018.10.9'
Pipenv location:
'/usr/local/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/local/bin/python'
Python installations found:
3.7.0
:/usr/local/bin/python3.7
3.7.0
:/usr/local/bin/python3.7m
PEP 508 Information:
System environment variables:
LANG
HOSTNAME
GPG_KEY
PWD
HOME
TERM
PYTHON_VERSION
SHLVL
PATH
PYTHON_PIP_VERSION
OLDPWD
_
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
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
:/root
Contents of
Pipfile
('/root/Pipfile'):The text was updated successfully, but these errors were encountered: