0

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
DanielBell99
  • 896
  • 5
  • 25
  • 57

2 Answers2

1

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.

Dave Ankin
  • 1,060
  • 2
  • 9
  • 20
  • Will try this out right now and get back to you – DanielBell99 Jun 16 '22 at 08:56
  • 1
    you might also want to rename the question to something like sudo/conda/pip not found – Dave Ankin Jun 16 '22 at 08:57
  • 1
    What do I do now with: `C:\Users\dabell\AppData\Local\Programs\Python\Python310`? – DanielBell99 Jun 16 '22 at 09:14
  • thats the link under "system variable" in my answer – Dave Ankin Jun 16 '22 at 09:16
  • you add it to the path, but i might have to get a better answer to link instead, i just read the one i linked – Dave Ankin Jun 16 '22 at 09:16
  • 1
    you just need to add things to your path. reinstalling git bash wont help. you can even use bash tricks without restarting - e.g. if your conda path is C:\path\to\conda, you can just run this bash command for bash to find conda: `export PATH="$PATH:"'C:\path\to'`, and the `conda` command will start to work. there's most likely a standard folder which python installs all its commands into. for virtualenvs that folder is the one with the `activate` script (so: `virtualenv env1` means it adds `env1/bin/` to the path) – Dave Ankin Jun 16 '22 at 10:29
  • Check post for attempts – DanielBell99 Jun 16 '22 at 10:40
  • 1
    Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/245661/discussion-between-dave-ankin-and-danielbell99). – Dave Ankin Jun 16 '22 at 11:48
  • 1
    to print path, you'd need to echo $PATH – Dave Ankin Jun 16 '22 at 11:52
0

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.

Giorgi Tsiklauri
  • 9,715
  • 8
  • 45
  • 66