ssh - Once SSHd into my windows laptop, Putty doesn't recognize python -
i'm sshing mac windows laptop has putty on it. can ssh in fine, , seems work, except python. when type in 'python myfile.py' error "-bash: python: command not found" if i'm in terminal window colorful putty, , if type in "cmd" switch command window, error "'python' not recognized internal or external command, operable program or batch file." have gotten python work on windows computer when not ssh'ed it. so, have put python27 environment variables.
i have found if type in "/cygdrive/c/python27/python.exe myfile.py", run, able type in "python". know how fix this?
figured out. found link: http://cs.nyu.edu/~yap/prog/cygwin/faqs.html#bashrc helped. went /usr/bin folder, typed ln -s /cygdrive/c/python27/python.exe
and can type "python myfile.py" when ssh'd through putty , works!
Comments
Post a Comment