Home > OS >  sudo/conda/pip/PATH not found on Git Bash
sudo/conda/pip/PATH not found on Git Bash

Time:06-17

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

CodePudding user response:

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.

CodePudding user response:

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.

  • Related