簡體   English   中英

如何在 Visual Studio Code 中的 windows 機器上安裝 PIP

[英]How can i install PIP on my windows machine in Visual Studio Code

我嘗試了許多不同的東西,例如wget https://bootstrap.pypa.io/get-pip.py && sudo /usr/bin/python get-pip.py並將其添加到 PATH 但沒有一個有效。 當我嘗試使用 pip 運行任何東西時,我收到此錯誤...

pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ pip
+ ~~~
    + CategoryInfo          : ObjectNotFound: (pip:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

任何人都可以提供幫助或將我指向可能有幫助的地方嗎? 在此處輸入圖像描述

通過以下鏈接下載get-pip.py:https://bootstrap.pypa.io/get-pip.py 或者,使用 curl:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

然后在下載 get-pip.py 的文件夾中運行以下命令:

python get-pip.py

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM