pip version mismatch in venv

前端 未结 1 1336
走了就别回头了
走了就别回头了 2021-01-24 11:34

I am confused about how virtual Python environments work (Python 3.6, using venv). I set up my venv, and activated it in the command line. I would expect that every

相关标签:
1条回答
  • 2021-01-24 12:28

    pip still points to the global one, even when in an venv. python, however, does not and uses the venv.

    This means that when you run pip --version, you get your global pip version. when you run python -m pip install --upgrade pip, you're using the venv version of python, which apparently already has the newest pip. To confirm this, you can run python -m pip --version and you should get the latest version as an output.

    0 讨论(0)
提交回复
热议问题