Installation on Windows

To develop with the Arcade library, we need to install Python, then install Arcade.

Step 1: Install Python

Install Python from the official Python website:

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

When installing Python, make sure to add Python to the path (1) before clicking the Install button (2).

../_images/setup_windows_1.png

After that, you can just close the dialog. There’s no need to increase the path length, although it doesn’t hurt anything if you do.

../_images/setup_windows_2.png

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.

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 using the command line interface

If you prefer to use the command line interface (CLI), then you can install arcade directly using pip:

pip3 install arcade

If you happen to be using pipenv, then the appropriate command is:

python3 -m pipenv install arcade