Once SSHd into my windows laptop, Putty doesn't recognize python
I'm SSHing from a mac into my windows laptop which has PuTTY on it. I can SSH in just fine, and everything seems to work, except for python. When I type in 'python myfile.py' I get the error "-bash: python: command not found" if I'm in the terminal window that is all colorful from PuTTY, and if I type in "cmd" to switch to the Command Window, the error I get is "'python' is not recognized as an internal or external command, operable program or batch file." I have already gotten python to work on the Windows computer when I am not SSH'ed into it. So, I have already put Python27 into the Environment Variables. I have found that if I type in "/cygdrive/c/Python27/python.exe myfile.py", it will run, but I would like to be able to just type in "python". Does anyone know how to fix this?
Figured it out. I found this link: http://cs.nyu.edu/~yap/prog/cygwin/FAQs.html#bashrc which really helped. I went to the /usr/bin folder, then typed ln -s /cygdrive/c/Python27/python.exe and now I can type "python myfile.py" when ssh'd through PuTTY and it works!
RuntimeError: not holding the import lock
NLTK brown.words() returns different output
Multiple arguments passed from user input remain as single argument
Use Scrapy to crawl a website with login and redirections
sqlalchemy grant permission in Base.metadata.create_all
Time and conditional statement is not working in python?
Syntax Error with Japanese(Kanji)
How to do a task scheduling in python?
Hadoop Streaming - How to output to multiple directories/files from reducer using Python
How do i check for duplicate values present in a Dictionary?
Errors when trying to change the font in python and render text using Latex
file object path in python
Grouping data from different pandas dataFrame
Robot Framework Using PyCharm Editor:: Imported library 'class' contains no keywords
Python One Server and Multiple Clients
putting two tricontourf on the same axis does not display both