Skip to content

Why does virtual environment not contain local pip when it was created? #2983

@JTP-123

Description

@JTP-123

I used python version 3.9.2 on Windows and wanted to use venv in new program. But after python -m venv venv was input in terminal, virtual environment has no its own pip and instead inherits pip from global environment. That makes each package installed using pip in global. I have to force --target argument when using pip each time.
I found that In local file path venv\scripts, there is no pip.exe.
I have not met such condition before and my last tiny demo in same python version using virtual environment indeed contains local pip.
I don't know how to fix it and it blocks me a day. Any help would be apperaciated, thank you so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions