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:
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:
The defaults on the next screen are fine:
Then install Python for all users:
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:
Select project interpreter:
Create a new virtual environment. Make sure the venv is inside your project folder.
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.
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
Don’t just run the Command Prompt, but instead right-click on it and run as administrator.
pip install arcade at the command prompt:
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:
Or you can get the source code for the library from GitHub:
Step 3: Install A Development Environment¶
Get and set up one of these development environments:
PyCharm. Arguably the most popular option. But with so many features it can be overwhelming when getting started.
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.
Or pick your own environment