sudo/conda/pip/路径在git bash上找不到

发布于 2025-02-07 17:34:24 字数 909 浏览 4 评论 0原文

最简单的行动是什么?

有官方的安装指南 /链接吗?

从字面上看,我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

抠脚大汉 2025-02-14 17:34:24

您可能只想运行常规Windows安装程序(从Python站点 - https://wwww.python 。 使用pythonpip 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 and pip 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.

倾`听者〃 2025-02-14 17:34:24

git bash只是一个要git的外壳/终端客户端,它确实(并且应该)不知道suapt-getpip或其他任何与git没有关联的东西。

suapt-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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文