[issue30811] A venv created and activated from within a virtualenv uses the outer virtualenv's site-packages rather than its own.
Antony Lee
report at bugs.python.org
Fri Jun 30 13:10:33 EDT 2017
Antony Lee added the comment:
Sorry, that was a sloppy report. This is a better repro:
$ export PIP_CONFIG_FILE=/dev/null # just to be sure
python -mvirtualenv outer-env # using /usr/bin/python(3)
source outer-env/bin/activate
python -mvenv inner-env # using outer-env's python
source inner-env/bin/activate
python -minspect -d pip
Using base prefix '/usr'
New python executable in /tmp/outer-env/bin/python
Installing setuptools, pip, wheel...done.
Target: pip
Origin: /tmp/outer-env/lib/python3.6/site-packages/pip/__init__.py
Cached: /tmp/outer-env/lib/python3.6/site-packages/pip/__pycache__/__init__.cpython-36.pyc
Loader: <_frozen_importlib_external.SourceFileLoader object at 0x7f92e00e03c8>
Submodule search path: ['/tmp/outer-env/lib/python3.6/site-packages/pip']
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30811>
_______________________________________
More information about the Python-bugs-list
mailing list