Python on the CS Webservers
Python is supported as a CGI program on the CS Department webservers, but there are a few things you should know about it.
You may also want to read about Python on the CS Linux Clients.
Python Versions
The webservers have both Python 3 and Python 2 available. As of January 2020, they are specifically running Python versions 3.4 and 2.6.
The default Python version (what you get when you run the python
program) is Python 2. At some point, that will change to Python 3. You should specify the Python version in your programs by explicitly using either the python2
or python3
program.
Python Packages
The set of Python packages installed on the webservers is fairly minimal. If you need a package that's not installed, you should first try installing it yourself into your home directory, using our pip instructions. If that does not work, you can contact us at support@cs.jhu.edu for assistance, but be aware that we are not be able to install every requested package.