English 中文(简体)
为什么在使用假装时,我的安装不会改变《安全法》?
原标题:Why is my pip installation not changing on VS Code when using a VENV?

EDIT:我可以通过在<条码>cmd上开放文箱,安装到正确地点。 因此,我认为它是一个具体问题,具体涉及密码。

I am using a virtual environment in VS Code. I set it up through python -m venv .venv to create the environment. VS Code recognizes it and activates it. If I uses sys.executable it gives me the correct location.

任何时候 我运行了<代码>pip装置和带;module>或py -m pip装置 <module>,它始终安装在花板基地点,而不是静电,尽管我是在静脉内工作。

When i run pip show pip I get the below answer: Result

我认为,当我通过密码启动静脉时,由于某种原因,就没有安装改道。

谁能帮助我找到解决办法?

I have tried installing and reinstalling the venv, python, and vscode. I have redone my path variables as well.

问题回答

您可以使用<代码>python-m piptor,而不是使用pip的指令。 能够确保你重新使用与正确译员相关的pip模块。

例如,你可以在虚拟环境中安装一个包裹,其编号为python-m pip装置 < Package>





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签