Python Tool Set Installation Instructions

These instructions were tested under Linux Mint 20. The toolset instructions below will probably work more or less as described in an OSX environment. I won’t be able to provide help for Windows or OSX installation.

A couple of items to note:

Install ToolSets - Option One: pip User Install

There are a number of ways to handle installing Python packages, each with advantages and disadvantages. One option is to use pip to install packages for a single user in your home directory. This is probably preferable to installing packages system-wide because it less likely to interfere with your overall system configuration. The steps below will be executed in a terminal window. To start a terminal window, click on the black screen icon, located in the bottom left corner.

Install ToolSets - Option Two: Virtualenv

Another option is to use Python virtual environments. The advantage of this approach is that it allows a single user to switch between multiple Python configurations. You can use the following steps to set up a virtual environment with the tools for this course:

This virtual environment can be activated and deactivated on a per-terminal basis:

activates the environment and

deactivates it.

Running on CS Lab Machines

There may be times when you want to run your jobs on the CS lab machines, either in-person or remotely. This wiki page provides instructions logging in remotely:

https://wiki.cs.jmu.edu/student/stu/basics

The full tool set for this course takes up around 1.5G of space on disk, so please don’t follow the steps above to configure your account on the CS lab machines. Instead you can use a pre-configured virtual environment as follows:

Python Editors

Of course, you can use any text editor to write Python code. Personally, I find it helpful to have access to a Python-aware editor that can help with code formatting and includes a graphical debugger.

Spyder

The instructions above installed the open-source Spyder scientific Python IDE. It’s OK. After following the installation steps above, it can be run from a terminal by typing spyder.

PyCharm

PyCharm is a bit more polished, but a bit more complex than Spyder.

The “Community Edition” would be fine, but there are some advantages to the professional version: it has Jupyter notebook integration and some other nice features.