467,081 Members | 1,159 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,081 developers. It's quick & easy.

Getting Python to run Python Scripts in cygwin

Hi guys,

This may be a cygwin issue but I was hoping to get some answers here
as well if someone has fixed this problem before.

Basically, I am able to run "python <scriptname>.py" python files in
command prompt. Unfortunately, I can't seem to get it to work in
cygwin. I always get an error that says:
python: can't open file '<scriptname>.py': [Errno 2] No such file or directory

I have looked at my environment variables and it seems to be correct.

Would be grateful if someone who has gotten python to work correctly
on cygwin could point me in the right direction.

It is very cumbersome switching back-and-forth between command prompt
and cygwin just to run python scripts.

Thank you in advance,
Calvin
Jun 27 '08 #1
  • viewed: 4741
Share:
1 Reply
You do have Python installed in Cygwin, right? It's an optional
component, IIRC?

If it is then it should have set the symlink in /usr/bin to wherever
it's installed.

Calvin Cheng wrote:
Hi guys,

This may be a cygwin issue but I was hoping to get some answers here
as well if someone has fixed this problem before.

Basically, I am able to run "python <scriptname>.py" python files in
command prompt. Unfortunately, I can't seem to get it to work in
cygwin. I always get an error that says:
python: can't open file '<scriptname>.py': [Errno 2] No such file or directory

I have looked at my environment variables and it seems to be correct.

Would be grateful if someone who has gotten python to work correctly
on cygwin could point me in the right direction.

It is very cumbersome switching back-and-forth between command prompt
and cygwin just to run python scripts.

Thank you in advance,
Calvin
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Robin Becker | last post: by
3 posts views Thread by Nicolas Lehuen | last post: by
2 posts views Thread by Jorgen Grahn | last post: by
10 posts views Thread by John Salerno | last post: by
6 posts views Thread by Ishpeck | last post: by
2 posts views Thread by Mick Duprez | last post: by
reply views Thread by =?iso-8859-1?q?C=E9dric_Lucantis?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.