简体   繁体   English

使用 anaconda 提示一切正常,但是当我尝试使用 git bash 并使用 pip 或 sudo: command not found

[英]Using anaconda prompt everything works fine but when I try to use git bash and use either pip or sudo: command not found

When I run everything using the anaconda prompt I don't run into any issues.当我使用 anaconda 提示符运行所有内容时,我没有遇到任何问题。 I've been trying to create a virtual environment using Git Bash, but I get error messages specifying 'command not found' when using pip or pip3.我一直在尝试使用 Git Bash 创建虚拟环境,但是在使用 pip 或 pip3 时收到指定“未找到命令”的错误消息。 Bit confused because I have no issues using anaconda prompt.有点困惑,因为我在使用 anaconda 提示时没有问题。 I am using Windows.我正在使用 Windows。

More context: When i run the command python -m pip install virtualenv I get "permission denied".更多上下文:当我运行命令python -m pip install virtualenv我得到“权限被拒绝”。

> $LOCALAPPDATA$\Continuum\anaconda3\Scripts\conda activate base

in Git Bash.在 Git Bash 中。

See https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment for more details.有关更多详细信息,请参阅https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activation-an-environment

This assumes you are on windows & you installed conda/miniconda to the current user.这假设您在 Windows 上并且为当前用户安装了 conda/miniconda。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我尝试在命令提示符中使用 pip 时遇到致命的 Python 错误 - Encountering Fatal Python error when I try to use pip in command prompt 使用“pip install ...”时出现“bash:pip:找不到命令” - “bash: pip: command not found” when using “pip install …” Windows 中的 Anaconda 和 Git Bash - conda:找不到命令 - Anaconda and Git Bash in Windows - conda: command not found 如何在命令提示符下使用 anaconda python - how to use anaconda python in command prompt 如果我同时运行这两个Anaconda PATH命令,如果我选择使用任何一个版本,它仍然可以正常工作吗? - If I run both of these Anaconda PATH commands, will it still work fine if I choose to use either version? ktrain,同时在 anaconda 提示符下使用 pip 命令安装它 - ktrain, while installing it by using pip command in anaconda prompt 升级pip后安装后pip更新错误我每次使用pip时都无法使用它显示相同的错误并且sudo也不能用于安装 - pip update error after install after upgrading pip i cannot use it every time i use pip is shows same error and sudo cannot be used either to install sudo: pip: 在 CentOS 中找不到命令 - sudo: pip: command not found in CentOS 执行“ sudo easy install pip”时“未找到命令” - “command not found” when doing “sudo easy install pip”​ 使用Anaconda安装pip - Use Anaconda installed pip
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM