python-2.7


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!

Related Links

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

Categories

HOME
google-chrome
extjs
generics
adfs3.0
plaid
histogram
google-play-services
tabs
dronekit-python
ontology
haxe
google-search-console
tfs2010
selection
nsstring
jquery-file-upload
bundler
cuba-platform
node-webkit
data-type-conversion
sybase-ase
ava
unordered-multimap
introspection
webviewclient
hdmi
boolean-logic
sales
materialize
fusion
splunk-query
source-insight
premake
rspec-rails
nest
devtools
nanogallery
identify
sspi
rdp
stat
imgur
game-center
1wire
httphandler
latexml
zend-form
nonlinear-functions
non-linear-regression
jgrapht
redisson
maven-jaxb2-plugin
subforms
webvtt
hmmlearn
fitbit
qtextedit
libharu
livereload
callouts
msbuild-4.0
groovyfx
bbc-micro
yii2-model
adp
codecharge
utf-16
diawi
boost-proto
netdatacontractserializer
roxygen2
azure-xplat-cli
fiware-bosun
baseadapter
nanomsg
thoughtworks-go
lifetime
device-admin
lmax
angular-ui-select
android-2.3-gingerbread
pageviews
roxy-fileman
mod-perl
windows-taskbar
principalcontext
illuminate-container
form-for
apportable
.net-remoting
jbox2d
ofstream
cgrectmake
server-name
uipangesturerecognizer
prototypal-inheritance
type-safety
litespeed
azure-acs
mediacontroller
cewolf
git-log
active-record-query
uninstaller
zend-test
facebook-fbml
3270
subtext
rtti
downcasting
autobench
stretchblt
twitter-feed
acceleration

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile