Skip to content

Installation

Elisabeth Reid edited this page Feb 25, 2020 · 7 revisions

This page provides instruction on how to install Python ACT-R for Python 3.

Prerequisites

  • First, Python 3 is required. The download can be found here. For instructions on how to install it see this link. You may install any version of python 3 (python 3.x).

  • Next, make sure you download the Python ACT-R files from GitHub - you can find them here. Keep track of where you installed the file!


Installing Python ACT-R

Python ACT-R is installed as a Python package and can be installed in two ways. The first method of installation is to install it locally using a Python package manager called pip. The second method is to locate where python keeps its site-packages and put a copy of Python ACT-R there.

The first method is easiest if you are comfortable with using (or learning) how to use the terminal for your computer.

The second method is easiest if you prefer not to use the terminal. Experience navigating files or directories is assumed.

Method 1

  1. Travel to where you downloaded python ACT-R (See the Prerequisites section for the download link), and unzip the file.

  2. Open the unzipped folder and navigate to the folder containing README.md. Download and save the setup.py file found here (right click and save link as...), in the folder with the README file.

  3. Open the terminal window and navigate to the folder in the previous step. If you don't know how to, jump here for instructions on how to open and navigate through the terminal window. Bellow is an example of a command to navigate to a file in a terminal:

>>> cd C:\Users\Eli\Downloads\pythonACTR3-master\pythonACTR3-master
  1. In the terminal use the following command:
>>> python setup.py install
  1. Open a new terminal window. From there open python, and check to see if the install was successful by importing ccm into python buy running the commands below:
>>> python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ccm
>>>

If all went well there will be no error message when you import the ccm library, as in the output above. This means you've successfully installed Python ACT-R and you can use it by importing ccm in any Python 3 project.


Method 2

For this method you want to first locate where you installed your version of Python 3.x.

  1. Travel to where you downloaded python ACT-R (See the Prerequisites section for the download link), and unzip the file.

  2. Open the unzipped file and travel to where the ccm folder is located, but don't travel into this folder. Now, right click on the ccm folder and copy it.

  3. Travel to where you have Python 3.x installed. Now open the folder that contains site packages (Python3.x/Lib/site-packages) and paste ccm inside the site-packages directory.

  4. Open Idle (the shell) and import ccm:

>>> import ccm
>>>

If all went well there will be no error message when you import the ccm library, as in the output above. This means you've successfully installed Python ACT-R and you can use it by importing ccm in any Python 3 project.


Resources

Side Bar

Python ACT-R (Home)

Productions

Eventually links to all pages will be here

Clone this wiki locally