I'm a newbie so excuse my poor use of terms.
I'm facing a problem in configuring git bash on windows to run python and anaconda and jupyter notebook as well.
I inserted the path I got for anaconda, python, and jupyter notebook from my Anaconda prompt and inserted the paths I got into this code (export PATH="$PATH:[YOUR_PATH]:[YOUR_PATH]/Scripts"
) into my .bashrc document in home directory.
Those are the commands I added to the .bashrc file: export
export PATH="$PATH:/c/ProgramData/Anaconda3/python.exe:/c/ProgramData/Anaconda3/python.exe/Scripts"
export PATH="$PATH:/c\ProgramData\Anaconda3\Library\bin\conda.bat:/c\ProgramData\Anaconda3\Library\bin\conda.bat/Scripts"
export PATH="$PATH:/c\ProgramData\Anaconda3\Scripts\conda.exe:/c\ProgramData\Anaconda3\Scripts\conda.exe/Scripts"
export PATH="$PATH:/c\ProgramData\Anaconda3\condabin\conda.bat:/c\ProgramData\Anaconda3\condabin\conda.bat/Scripts"
export PATH="$PATH:/c\ProgramData\Anaconda3\Scripts\jupyter.exe:/c\ProgramData\Anaconda3\Scripts\jupyter.exe/Scripts"
alias python="winpty python.exe"
Since I added alias for python, when I type $ python --version
, the result I get is (winpty: error: cannot start 'python.exe' : Not found in PATH
)