[英]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.