Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Python doesn't work

Status
Not open for further replies.

zirtik

Programmer
Oct 15, 2005
1
TR
Hello all, i'm a linux newbie so please forgive me for silly questions.

I cannot execute any .py files, when i type for example

filename.py i get no output, just nothing happens. python is located at /usr/bin/python and i put a
#!/usr/bin/python sheabang at the beginnig. I cannot execute any of them. This problem occured a few days ago and i did not make any system changes - i guess.

Before that, typing

python -V

used to give me the output:

Python 2.2.3

but now i get nothing, it simply gives no output and gets back to terminal screen for a new command.Basically it looks like as follows:

#python -V
#

I have root access and tried everything. Please help. Thanks in advance.
 
Does the interpeter work?

What distro are you running?

I know in gentoo you have to do
#!/usr/bin/env python

then in slack you can do
#!/usr/bin/python

Give us the output of
"ls -l /usr/bin | grep python"

Hope this helps,
khan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top