sudo/conda/pip/路径在git bash上找不到
最简单的行动是什么?
有官方的安装指南 /链接吗?
从字面上看,我的git bash中没有任何认可,例如:
$ pip install pandas
bash: pip: command not found
% conda activate
bash: conda: command not found
$ set PATH=%PATH%;C:\Users\dabell\AppData\Local\Programs\Python\Python310
bash: C:UsersdabellAppDataLocalProgramsPythonPython310: command not found
HDS+dabell@PF2DCSXD MINGW64 ~
$ PATH
bash: PATH: command not found
HDS+dabell@PF2DCSXD MINGW64 ~
$ export PATH="$PATH:"C:\Users\dabell\Anaconda3
HDS+dabell@PF2DCSXD MINGW64 ~
$ conda list
bash: conda: command not found
HDS+dabell@PF2DCSXD MINGW64 ~
$ export PATH="$PATH:"C:\Users\dabell\Miniconda3
HDS+dabell@PF2DCSXD MINGW64 ~
$ conda list
bash: conda: command not found
HDS+dabell@PF2DCSXD MINGW64 ~
$ export PATH="$PATH:"C:\Users\dabell\
> conda list
HDS+dabell@PF2DCSXD MINGW64 ~
$ conda list
bash: conda: command not found
What is the simplest course of action?
Is there an official install guide / link?
Literally nothing in my Git Bash is recognised, e.g.:
$ pip install pandas
bash: pip: command not found
% conda activate
bash: conda: command not found
$ set PATH=%PATH%;C:\Users\dabell\AppData\Local\Programs\Python\Python310
bash: C:UsersdabellAppDataLocalProgramsPythonPython310: command not found
HDS+dabell@PF2DCSXD MINGW64 ~
$ PATH
bash: PATH: command not found
HDS+dabell@PF2DCSXD MINGW64 ~
$ export PATH="$PATH:"C:\Users\dabell\Anaconda3
HDS+dabell@PF2DCSXD MINGW64 ~
$ conda list
bash: conda: command not found
HDS+dabell@PF2DCSXD MINGW64 ~
$ export PATH="$PATH:"C:\Users\dabell\Miniconda3
HDS+dabell@PF2DCSXD MINGW64 ~
$ conda list
bash: conda: command not found
HDS+dabell@PF2DCSXD MINGW64 ~
$ export PATH="$PATH:"C:\Users\dabell\
> conda list
HDS+dabell@PF2DCSXD MINGW64 ~
$ conda list
bash: conda: command not found
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能只想运行常规Windows安装程序(从Python站点 - https://wwww.python 。 使用
python
和pip
binaries to $ path 系统变量。有包装管理人员,例如 https://community.chocaly.chocaly..org/packages windows 可以看到它们不是在窗户上标准的。
You'll probably want to just run the regular windows installer (from the python site - https://www.python.org/downloads/) and then add the appropriate folder with the
python
andpip
binaries to your $PATH system variable.There are package managers like https://community.chocolatey.org/packages for windows, but as you can see they do not come as standard on windows.
git bash只是一个要git的外壳/终端客户端,它确实(并且应该)不知道
su
,apt-get
,pip
或其他任何与git没有关联的东西。su
,apt-get
等。pip
是Python的软件包安装程序。Netstat
作为另一个示例,是从Shell中获得Windows OS上的实用程序软件。您的git bash中都无法上述,因为再次,git bash只是git客户端,而不是操作系统壳。
Git bash is just a shell/terminal client to Git, which does (and should) not know what are
su
,apt-get
,pip
or anything else, that has no association with git.su
,apt-get
and etc. are utility programs, which you invoke from the shell, as commands, and which are available on Linux distributions;pip
is the package installer for Python.netstat
, as an additional example, is a utility software available on Windows OS, from the shell.None of abovementioned will be available in your git bash, because, again - git bash is just a Git client, not a OS shell.