[issue36080] Ensurepip fails to install pip into a nested virtual environment (on Windows)
Change by Sammy Gillespie : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue36080> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36080] Ensurepip fails to install pip into a nested virtual environment (on Windows)
Sammy Gillespie added the comment: This is identical to https://bugs.python.org/issue35872 I am running 3.7.2 -- ___ Python tracker <https://bugs.python.org/issue36080> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36080] Ensurepip fails to install pip into a nested virtual environment (on Windows)
Sammy Gillespie added the comment: To expand on this. Using: > python -m pip in the second virtual environment (which does not have pip) gives the following usage example: > Usage: > C:\venv_test\\Scripts\python.exe -m pip [options] Yet the python running this command is not in venv_1, it is in venv_2. So the issue appears to lie with how pip determines its python location. So this issue may be more suited there. -- ___ Python tracker <https://bugs.python.org/issue36080> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36080] Ensurepip fails to install pip into a nested virtual environment (on Windows)
New submission from Sammy Gillespie : Running Windows 10 Enterprise. Create a virtual environment: > python -m venv .venv Activate that virtual environment and attempt to create another virtual environment using the same command. This new environment will not contain pip (or anything other than just Python). Investigating this further. Running: > python -Im ensurepip --upgrade --default-pip from within the second virtual environment results in: > Requirement already up-to-date: pip in -- I want to create a python tool that will build a virtual env, but this restricts me from being able to install that tool into a virtual env (e.g. using pipx). -- messages: 336322 nosy: Sammy Gillespie priority: normal severity: normal status: open title: Ensurepip fails to install pip into a nested virtual environment (on Windows) type: behavior versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue36080> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com