Unable to open PYTHON scripts on MINT 13?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
JaZZyCooL

Unable to open PYTHON scripts on MINT 13?

Post by JaZZyCooL »

hello guys,
I just installed my linux mint 13 and made my first python program on mint, but I am unable to open python scripts. I don't know why? I tried each and every possible way but still unable to open the stuff. Can you guys help me out solve the problem.?

I tried "./python.py" also added directory to the python console and also to the linux terminal but still unable to open up.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
overthetop

Re: Unable to open PYTHON scripts on MINT 13?

Post by overthetop »

Are you trying to view/edit the file or run it?
JaZZyCooL

Re: Unable to open PYTHON scripts on MINT 13?

Post by JaZZyCooL »

No I am trying to run the file.
overthetop

Re: Unable to open PYTHON scripts on MINT 13?

Post by overthetop »

Sorry it took so long to get back to you.

What output is the terminal giving you?

Open the terminal in the directory containing your python script and run the following:

Code: Select all

python filename
Be sure to replace filename with the name of your script file.

You can also run your script like this:

Code: Select all

./filename
if you add the line #!/usr/bin/env python to the top of your python file and then make it executable(see this on how to make a file executable).
Locked

Return to “Other topics”