Unlike python, backslashes not escaping anything are removed in bash.
So
alias python="~\AppData\Local\Programs\Python\Python35\python.exe"
creates an alias to ~AppDataLocalProgramsPythonPython35python.exe
Fix:
alias python="~/AppData/Local/Programs/Python/Python35/python.exe"
or just set the path (.exe
suffix is supported on Windows flavours of bash
)
export PATH=$PATH:~/AppData/Local/Programs/Python/Python35
(so programs not having access to aliases/shell built-ins can still run python
using subprocess
or exec
)