I’m fairly new to programming but I was wondering what ‘executable form’ meant & how to convert a Python file into an executable form.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d guess that whoever wrote that meant to set the executable bit on the file. To do that on most UNIX platforms, you’ll need to go into some kind of shell and run this:
(note that the full path is not actually required — you can use a relative path, too)
If you’ve done that and the file starts with an appropriate hashbang like:
Then you should be able to run the script very easily:
(assuming your working directory is the same as the directory in which
file.pyis located)