0

I made a Python program for a client, and he wants the python program to run on Ubuntu server. I am not familiar at all with Linux.

I do not understand, what he mean by "Ubuntu Server". Does he mean, he has a website that runs on Ubuntu server? He needs the program ready in next few hours, I asked him for clarification on this thing, but he is probably sleeping, and I need to make the project ready as soon as possible.

john doe
  • 109

1 Answers1

1

There are several different versions of python:

$ ls /usr/bin/python* 
/usr/bin/python  /usr/bin/python2  /usr/bin/python2.7  /usr/bin/python3  /usr/bin/python3.5  /usr/bin/python3.5m  /usr/bin/python3m  /usr/bin/pythontex  /usr/bin/pythontex3

Pick the one you want, I'll use /usr/bin/python for the example. Make the 1st line of your script be:

#!/usr/bin/python
waltinator
  • 37,856