Installation on Windows

To develop with the Arcade library, we need to install Python, then install Arcade, and finally install a development environment.

Step 1: Install Python

Install Python from the official Python website:

https://www.python.org/downloads/

The website gives you the option of downloading two different versions: Version 3.x.x or version 2.x.x. The Arcade library requires Python beginning with 3.x.x.

When installing Python, make sure to customize the installation and add Python to the path:

_images/setup_windows_1.png

The defaults on the next screen are fine:

_images/setup_windows_2.png

Then install Python for all users:

_images/setup_windows_3.png

A video of the installation is below:

Step 2: Install The Arcade Library

If you install Arcade as a pre-built library, there are two options on how to do it. The best way is to use a “virtual environment.” This is a collection of Python libraries that only apply to your particular project. You don’t have to worry about libraries for other projects conflicting with your project. You also don’t need “administrator” level privileges to install libraries.

The second-best way is to install the library for the entire system. All Python instances will have access to the library. You don’t have to setup a virtual environment, and you don’t need to import the library for each project.

Install Arcade with PyCharm and a Virtual Environment

If you are using PyCharm, setting up a virtual environment is easy. Once you’ve got your project, open up the settings:

_images/venv_setup_1.png

Select project interpreter:

_images/venv_setup_2.png

Create a new virtual environment. Make sure the venv is inside your project folder.

_images/venv_setup_3.png

Now you can install libraries. PyCharm will automatically ask to add them if you have a file called requirements.txt that lists the required libraries.

_images/venv_setup_4.png

Install Arcade System-Wide

Click the Window button in the lower left of your screen (or hit the window button on your keyboard) and start typing command prompt.

Don’t just run the Command Prompt, but instead right-click on it and run as administrator.

_images/setup_windows_4.png

Next, type pip install arcade at the command prompt:

_images/pip_install_arcade_windows.png

The video below steps through the process:

Install Arcade The Hard Way

If you successfully installed Arcade the easy way, skip this section. If you’d rather download the Arcade library directly off PyPi you can at:

https://pypi.python.org/pypi/arcade

Or you can get the source code for the library from GitHub:

https://github.com/pvcraven/arcade

Step 3: Install A Development Environment

Get and set up one of these development environments:

  1. PyCharm. Arguably the most popular option. But with so many features it can be overwhelming when getting started.

  2. Sublime. This is more complex to set up for Python, but by far my favorite editor. Spend 20 minutes to watch tutorial videos and you will save a lot of time later. Anaconda is a great Sublime plug-in for doing Python development.

  3. Wing (costs money) or Wing 101 (free but less powerful)

  4. Or pick your own environment