2
1
I installed cygwin and python but for some reason I can't get python to work.
when I type type python
it gives me:
python is /cygdrive/c/Users/pnwar/AppData/Local/Programs/Python/Python36/python
however my python path should be:
C:\Users\pnwar\AppData\Roaming\Microsoft\Windows\'Start Menu'\Programs\'Python 3.6'
I tried messing with the PATH, echo $PATH
gives:
/usr/local/bin:/usr/bin:/cygdrive/c/ProgramData/Oracle/Java/javapath:/cygdrive/c/Program Files (x86)/Razer Chroma SDK/bin:/cygdrive/c/Program Files/Razer Chroma SDK/bin:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Program Files (x86)/Skype/Phone:/usr/bin:/cygdrive/c/Program Files (x86)/PuTTY:/cygdrive/c/Users/pnwar/AppData/Local/Programs/Python/Python36/Scripts:/cygdrive/c/Users/pnwar/AppData/Local/Programs/Python/Python36:/cygdrive/c/Users/pnwar/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/pnwar/AppData/Roaming/Microsoft/Windows/Sta rt Menu/Programs/Python 3.6:/cygdrive/c/Users/pnwar/AppData/Roaming/Microsoft/Windows/Sta rt Menu/Programs/Python 3.6
Towards the end you can see some erroneous paths that I can't seem to edit correctly to get things to work.
I tried PATH=echo $PATH | sed -e 's/:\/cygdrive/c/Users/pnwar/AppData/Local/Programs/Python/Python36\/$//'
because I found it somewhere but that just erased all of my paths.
I added the correct path to my .bash_profile with PATH=\$PATH:/cygdrive/c/Users/pnwar/AppData/Roaming/Microsoft/Windows/'Start Menu'/Programs/'Python 3.6'
But I still can't seem to get it to work.
If anyone could push me in the right direction that would be much appreciated, I'm kind of confused as to what is going on exactly and how to get it to work.
1/ Don't mix cygwin and Windows path elements unless you know what you are doing 2/ What's wrong with installing the cywin version of python?
– DavidPostill – 2017-03-19T14:15:13.040