Skip to content

Pip is not contained when virtual environment was created using Python 3.9.2? #140074

@JTP-123

Description

@JTP-123

I used python version 3.9.2 on Windows and wanted to use venv in kivy program. But after python -m venv venv was input in terminal, virtual environment turned out to be void of its own pip and instead inherits pip from global environment. That makes each package installed using pip stays in global. thus I have to force --target argument when using pip each time.
What effort I made so far as follows:
I found that every virtual environment now created by command python -m venv venv, In its local file path venv\scripts, there is no pip.exe. I tried to repair and reinstall Python, then I used
python -m pip install -U --force-reinstall pip to update pip to the lasted version, All was in vain.
I have not met such condition before and my one-years-ago tiny demo using virtual environment indeed contains local pip.
Any help would be apperaciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.9only security fixesOS-windowspendingThe issue will be closed if no feedback is provided

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions