https://faxue.inmoke.com

you may want to use pip to manage a Python installation oth

you can use the --python optionto specify the interpreter you want to manage. This option can take one of twovalues: The path to a Python executable. The path to a virtual environment. In both cases, pip will run exactly as if it had been invoked from that Pythonenvironment. One example of where this might be useful is to manage a virtual environmentthat does not have pip installed. $ python-mvenv.venv--without-pip $ python-mpip--python.venvinstallSomePackage [...] Successfully installed SomePackage $ python-mvenv.venv--without-pip $ python-mpip--python.venvinstallSomePackage [...] Successfully installed SomePackage C: py -m venv .venv --without-pip C: py -m pip --python .venv install SomePackage [...] Successfully installed SomePackage You could also use --python .venv/bin/python (or on Windows, View this page Managing a different Python interpreter Added in version 22.3. Occasionally, but thevirtual environment name is shorter and works exactly the same. , you may want to use pip to manage a Python installation other thanthe one pip is installed into. In this case, --python .venv\Scripts\python.exe ) if you wanted to be explicit,。

郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。