-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
This page provides instruction on how to install Python ACT-R for Python 3.
-
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!
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.
-
Travel to where you downloaded python ACT-R (See the Prerequisites section for the download link), and unzip the file.
-
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.
-
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
- In the terminal use the following command:
>>> python setup.py install
- 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.
For this method you want to first locate where you installed your version of Python 3.x.
-
Travel to where you downloaded python ACT-R (See the Prerequisites section for the download link), and unzip the file.
-
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.
-
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.
-
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.
-
Terminal/Command line Tutorials
- Opening
- Navigating files/directories
-
Installing Python 3
Note: This page is a work in progress. Content is missing and the page structure and content may change anytime.