Actions

Python installation

From ACL@NCU

Installing Python on your Windows laptop

Files to download (from the Google Classroom "course materials" area)

  1. create a folder c:\temp, save the following files to this folder
  2. Python 2.7.14 (win 32-bit)
  3. Adding Python27 path to environment
  4. get-pip.py
  5. install_python.bat
  6. sq.py

Steps to follow

cd c:\temp
  • execute get-pip.py
python get-pip.py
  • execute the install_python.bat script
install_psychopy.bat
  • After the above process are completed (without error or interruption), try the following script:
python sq.py
  • If everything works out, you should see a window containing a light blue square at the center as shown below (lasting for 2 seconds then vanishes).

Sq.jpg

Install Python on Mac OSX

Files to download

  • assuming that you download files to the "Downloads" directory under your home directory, which is the default.
  1. python 2.7.14 for mac (python-2.7.14-macosx10.6.pkg)
  2. get-pip.py
  3. install_python
  4. sq.py

Steps to follow

  • Install python 2.7.14 by double click on the downloaded python-2.7-14-macosx10.6.pkg program.
  • Install xcode for your version of Mac OS.
  • Open a terminal window and change directory to where you saved get-pip.py
cd /Users/<Your account>/Downloads

Note. "<Your account>" should be replaced by your own username on the Mac OS.

  • execute get-pip.py
python get-pip.py
  • execute the install_python script
bash install_psychopy
  • After the above process are completed (without error or interruption), try the following script:
python sq.py
  • If everything works out, you should see a window containing a light blue square at the center as shown below (lasting for 2 seconds then vanishes).

Sq.jpg

In case of questions

  1. Please copy and paste the error message when you email me the questions.
  2. You can also capture the screen that shows your problem during installation. Try using Snagit for screen capture.
  3. In some cases on Windows, the following command
python setup.py install

or

pip install <package>

may require the Microsoft Visual C++ compiler for Python 27 to work. You can download this compiler from here.