[issue36080] Ensurepip fails to install pip into a nested virtual environment (on Windows)

Sammy Gillespie report at bugs.python.org
Fri Feb 22 10:19:41 EST 2019


New submission from Sammy Gillespie <sammygillespie at gmail.com>:

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 <path_to_FIRST_venv>

----------

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 <report at bugs.python.org>
<https://bugs.python.org/issue36080>
_______________________________________


More information about the Python-bugs-list mailing list