![](/img/trans.png)
[英]Encountering Fatal Python error when I try to use pip in command prompt
[英]Using anaconda prompt everything works fine but when I try to use git bash and use either pip or sudo: command not found
當我使用 anaconda 提示符運行所有內容時,我沒有遇到任何問題。 我一直在嘗試使用 Git Bash 創建虛擬環境,但是在使用 pip 或 pip3 時收到指定“未找到命令”的錯誤消息。 有點困惑,因為我在使用 anaconda 提示時沒有問題。 我正在使用 Windows。
更多上下文:當我運行命令python -m pip install virtualenv
我得到“權限被拒絕”。
> $LOCALAPPDATA$\Continuum\anaconda3\Scripts\conda activate base
在 Git Bash 中。
有關更多詳細信息,請參閱https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activation-an-environment 。
這假設您在 Windows 上並且為當前用戶安裝了 conda/miniconda。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.