Each student should end up with a bundle of softwares which are needed in the compulsory courses of the Cogmaster.
The only slot in the schedule dedicated to installation of softwares is on Tuesday August 30 from 9:00 to 12:00. We will not answer installation questions during the following Info 1 or Info 2 lectures. We will be reluctant to to help you if you were not attending on Tuesday morning.
This evening, you have at least 2 important things to do:
Some installations will require an internet access, login and password for the ENS wifi will be provided on Monday, don’t forget to bring them on Tuesday morning.
Installation procedures have been succesfully tested on computers running Windows (7 64bits), MacOS (10.9 Maverick), and debian-based linux (Debian 8 Jessie 64bits). We have have few years of experience with usual install problems on various Operating System versions (Mac OS 10.6 to 10.11, Windows XP, 8 and 10, various linux flavors), but there are always some computers on which the usual procedures and fixes fail. We will try our best, if it happens to you, please be patient.
Non-standard equipement (typically tablets or some mini-PC) or OS (Chrome, iOS,…) are not supported.
If you are using Windows 10, make sure your user name doesn’t include characters that don’t belong to the english alphabet (accents, ideograms,…).
The download and installation instructions are specified below. Before Tuesday morning, unless you have an unsupported equipement or OS or don’t have access to internet, or don’t own a laptop, please download the software installers. The ENS wifi is usually very slow and prone to disconnections.
If you are using a debian-based Linux distribution, most of the install will be made using the apt package manager, thus is way safer to try the installation at your home than at the ENS if you have a decent internet connection.
You migh skip the Atom download and install if you are already using an advanced text editor such as wim, emacs, sublimetext…
Beware: Microsoft Office Word, LibreOffice and other document formatting softwares are not text editors.
When you download an installer file for a software, it is very important to:
save the file as option when the usual dialog window pops up for a download.Select the download instructions for your operating system:
Downloads for Windows
Downloads for Mac OS
Downloads for Debian based Linux
First, read the installation instructions relative to your operating system. Yes, I mean it, read all the installation instructions before trying to install anything.
Now, if what you’ve just read makes sense, you can try to install the softwares by following carefully the instructions step by step, not skipping any.
If you feel unsure, don’t worry, just wait until Tuesday morning for the installation.
Some installations, especially components for pygame on Mac OS, are rather tricky, If you are not 100% sure of what some instruction for one step means, stop right before this step. It is much easier to prevent a misinstallation than to fix it. Don’t install anything after this step as there are some dependencies.
Same if something does not work as expected, stop there and ask for our help on Tuesday morning.
Select the installation instructions for your operating system:
Installations for Windows
Installations for Mac OS
Installations for Debian based Linux
Once the installation on your computer completed, you can get some reading material from the teachers (you will be able to get if on the following courses if you succesfully installed everything at home and thus don’t need to come tomorrow morning)
First, you need to know whether you are using a 64 bits or a 32 bits version of Windows, follow the instructions on this website
If you are using windows 7 or earlier, it will be useful to know the full name of your files, so open a file explorer (window key + e), then select the Organize menu, then Folder and search options, then the second tab View, uncheck the box Hide extensions for known file types, and finally click the OK button.
ScratchInstaller1.4.exe, click on this link or use a right click and the option Save target as, then select an appropriate directory, for example the default Downloads folder. You can alternatively download the installer file directly from the webpage http://download.scratch.mit.edu/AtomSetup.exe, use this link. You can alternatively download the installer file directly by clicking on the big red Download Windows Installer button on http://atom.ioSublime Text Build 3114 Setup.exe using this link or directly from http://www.sublimetext.com/3.R-3.3.1-win.exe using this link or directly from https://cran.rstudio.com/bin/windows/base/RStudio-0.99.903.exe using this link or directly from https://www.rstudio.com/products/rstudio/download/GitHub Desktop installer using this link or directly from http://desktop.github.com by clicking on the Download GitHub Desktop buttonGit-2.9.3.2-32-bit.exe using this link or directly from the Download button on https://git-for-windows.github.io/python-2.7.12-docs-html.zip with this link from https://docs.python.org/2.7/download.html, where you can also download a pdf version if you prefer.Anaconda2-4.1.1-Windows-x86_64.exe from this link of directly from https://www.continuum.io/downloadsAnaconda2-4.1.1-Windows-x86.exe from this link or directly from https://www.continuum.io/downloadsMake sure you know the administrator password for your computer (the password of your main account, i.e. the one you use to install new software) and that you are able to type blind (i.e. even if you don’t see little stars for each character).
| 10.4 | 10.5 | 10.6 | 10.7 | 10.8 | 10.9 | 10.10 | 10.11 | |——|——|——|——|——|——|——-|——-| | Tiger | Leopard | Snow Leopard | Lion | Mountain Lion | Mavericks | Yosemite | El Capitan | | 2005 | 2007 | 2009 | 2011 | 2012 | 2013 | 2014 | 2015 | * Check that your version of Mac OS X is 10.9 or higher (for example 10.9.5 or 10.11.2 are higher, but 10.6.10 is lower).
If not or if you can’t or don’t want to risk an upgrade this evening, or if you are not sure, stop right now, don’t download or install anything, and come see us tomorrow at 9:00 am: you might be in one of the most complicated situations regarding software installations.
XQuartz-2.7.9.dmg by clicking on this link or from https://www.xquartz.orgpython-2.7.12-docs-html.zip with this link from https://docs.python.org/2.7/download.html, where you can also download a pdf version if you prefer.Download GitHub Desktop button.Download For Mac button on the webpage [http://atom.io]MacScratch1.4.dmg, click on this link or use a right click and the option Save target as, then select an appropriate directory, for example the default Downloads folder. You can alternatively download the installer file directly from the webpage https://scratch.mit.edu/scratch_1.4/R-3.3.1.pkg using this link or directly from https://cran.rstudio.com/bin/macosx/RStudio-0.99.903.dmg using this link or directly from https://www.rstudio.com/products/rstudio/download/Application icon in your dock, then on the Utilities icon, then on the Terminal icon. Alternatively, you can open a Finder window and select the Application folder, then the Utilities folder, then double-click on the Terminal icon. You can also type terminal in the Spotlight search.in this terminal window, copy and paste the following text then press on the Enter key (from now on this will be called executing a command in the terminal)
xcode-select --installthis should make a window pop up to ask you if you want to install the “Command Line Tools”, answer Yes, you might have to type your password, then wait until completion of the installation
If you can’t perform this step, don’t worry, come at 9:00 on Tuesday, we will help you do it.
First of all, you must determine if your system is 32 or 64 bits. Open a terminal (Ctrl-Alt-T) and type the command
arch
If you see x86_64, your operating system is 64 bits, if you see i386 or i686, it is 32 bits.
Note: If you are already using a decent text editor under linux (gedit, emacs, vim,…) you won’t need Atom.
atom-amd64.deb package from this link or from the webpage https://github.com/atom/atom/releases/latestUbuntu 32 bits link on https://www.sublimetext.com/3python-2.7.12-docs-html.zip with this link from https://docs.python.org/2.7/download.html, where you can also download a pdf version if you prefer.Anaconda2-4.1.1-Linux-x86_64.sh using this link or from the webpage https://www.continuum.io/downloads, selecting the correct installer for Python2.7 and your version of linuxAnaconda2-4.1.1-Linux-x86.sh using this link or from the webpage https://www.continuum.io/downloads, selecting the correct installer for Python2.7 and your version of linuxrstudio-0.99.903-amd64.deb using this link or from the webpage https://www.rstudio.com/products/rstudio/download3/rstudio-0.99.903-i386.deb using this link or from the webpage https://www.rstudio.com/products/rstudio/download3/ScratchInstaller1.4.exe, typically the default Downloads directory.ScratchInstaller1.4.exe file and waitYes button.Next Button and accepting default parameters (note in which directory the program will be installed) until you have to click on the Finish button.Finish, you should see the program running and you coud reopen it using the desktop Scratch icon. Alternatively, you can open an explorer, go to the directory in which the program was installed and double click on the Scratch icon.R-3.3.1-win.exe.Install, then Yes to “Allow modifications by an unknown program editor”, then agree with the licence agreement if needed, then click the Next and/or Finish buttons using either default options or a different option when instructed to do so as you can see on the next lines).Don't create a Start Menu folder, as we will use RStudio by defaultCreate a desktop icon, for the same reasonRStudio-0.99.903.exe icon in your the download directory. It should be straight forward as you know the usual install process now.Console panel, type ‘demo(graphics)’ and hit the Enter keySign up for Github buttonGitHubSetup.exelogin, then your email and click on ContinueGit-2.9.2-32-bit.exeAdditional icons > On the Desktop option to get an easy access to the programGit Bash terminal window with a double-click on the iconGit Bash terminal window the following line with the user name of your GitHub account,then hitting the Enter key git config --global user.name "your_user_name"configure your email, by typing in the Git Bash terminal window the following line with the email associated with your GitHubaccount, then hitting the Enter key git config --global user.email your_email@example.com
you can close the Git Bash window now.
atomAtomSetup.exeif a pop-up dialog window ask you to install the .NET Framework, proceed by clicking on the Install button, then accept the installation and wait for the files to be downloaded and installed
Sublime TextSublime Text Build 3114 Setup.exewhen asked to Select Additional Tasks, check the option Add to explorer context menu
Extract all optionExtract button on the bottom right of the next window.Just Me (recommended), then click on NextNextInstallFinishAll the programs and then the Anaconda (64-bit) folder, what you are looking for is the IPython (Py 2.7) entry. Click there (and not the IPython (Py 2.7) Notebook nor the IPython (Py 2.7) QTConsole).$ sign, type each of those lines one by one followed by a stroke on the Enter key import numpy as np import matplotlib.pyplot as plt from scipy import stats x=np.arange(-5,5,.1) y=stats.norm.pdf(x) plt.plot(x,y) plt.show()quit() or the keyboard shortcut ctrl + DAll the programs and then the Anaconda2 64bits folder, then on Anaconda PromptC:Users\user_name\AppData\Local\Continuum\Anaconda2>?Enter key (this is called “executing a command”, more on that in the first Info lectures!): conda install condaProcced ([y]/n), press on the Enter key (because yes is the default)Enter key: conda install -c cogsci pygame=1.9.2a0exit and press on Enter to close the window, how convenient!All the programs and then the Anaconda2 64 bits folder, then on IpythonIn [1]:, then press twice on Enter import pygame pygame.init() w=pygame.display.set_mode([300,300]) w.fill([128,37,213]) pygame.display.flip() pygame.time.wait(3000) pygame.quit()Enter key).ctrl+D and confirm your will to exit in order to quit the ipython consoleWindows icon (or just press the Windows key on your keyboard), then on All the programs and then the Anaconda2 64bits folder, then on Anaconda PromptEnter python C:Users\user_name\AppData\Local\Continuum\Anaconda2\Lib\site-packages\pygame\examples\chimp.py You should be able to play a silly little game, including sound (make sure the sound is on, but not too loud).All the programs and then the Anaconda folder, then on Anaconda Command PromptEnter key): pip install expyrimentWindow icon, All the programs and then the Anaconda2 64 bits folder, then on Ipython).In [1]: and the blinking cursor after which you can start typing.import expyriment exp = expyriment.design.Experiment(name="test") expyriment.control.initialize(exp)Python is running in an interactive shell but Expyriment wants to initialize a fullscreen Do you want to switch to windows mode? (Y/n)Enter key (Y is in uppercase to show it’s the default option, you can also type “yes” then hit Enter).expyriment.control.start()Enter to validate the subject number.Enter a second time to validate.In [X]: and the blinking cursor after which you can start typing, then execute the following command: expyriment.control.end() If this doesn’t close the expyriment window, hit the Enter key once more.Ctrl+d and Enter.Finder icon on your dock then click on the Finder text next to the Apple logo on the top left corner of your screen to get the menus, then on Preferences, then on the Side Bar tab, check the first unchecked box under DEVICES. Now you can close the Finder Preferences window.System Preferences, the select the Security & Privacy icon and on the General tab, select the option Anywhere regarding Allow apps downloaded from:. You might have to click on the littke locker icon on the bottom left of the window and type your pasword if your preferences are protected.Finder window and select the Application folder, then the Utilities folder, then drag the Terminal icon and drop it on the second position of your “Dock”, right after the Finder icon. No you have and easy access to the most powerful application of your mac.XQuartz-2.7.9.dmg in your Downloads folder or wherever you downloaded it.XQuartz.pkgContinue and Agree until you can click on InstallSign up for Github buttonDownloads folder.zip archive if needed by double-cliking its iconGitHub Desktop.app iconOpen button at the security pop up windowMove to Application FolderContinueSign up, then on ContinueInstall Command Line Tools, then on the pop-up window, type down your mac account password and click on Install HelperOK upon completion of the Helper installContinue on the “Welcome to GitHub Desktop”DoneDownloads folder.zip archive if needed by double-cliking its iconGitHub Desktop.app and drop it in your Application FolderMacScratch1.4.dmg as usual:Downloads folder from the DockApplications folder in the pop-up windowApplications folder from the DockScratch1.4 folderScratch.app iconR-3.3.1.pkg R packageNextAgree to the terms of the licenceInstall for all users of this computer option and click on ContinueInstallRStudio-0.99.093.dmg. In the window that pops up, slide the RStudio icon into the Applications folderin the Console panel, type
demo(graphics)then, hit the Enter key.
python-2.7.12-docs-html.zip, this automatically extract the archive content in a folderDownloads folder and double click on the file Anaconda2-4.1.1-MacOSX-x86_64.pkg in order to start the installation.Continue several times and Agree on licence terms until the installation is completed, if at some point you see the error “You cannot install Anaconda in this location”, then just click on Install for me only and you should be able to continue.Close buttonTerminal application from your “Dock”$ sign, type ipython then press on the Enter key in order to lauch a ipython interpreterin the ipython shell, type each of those lines one by one followed by enter
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
x=np.arange(-5,5,.1)
y=stats.norm.pdf(x)
plt.plot(x,y)
plt.show()quit() or the keyboard shortcut ctrl + Dyou are now back to the command line in the Terminal application.
Warning Now the Mac python install procedure starts to be tricky, if you don’t feel confident with typing commands in a terminal, of if you’d like to sleep, stop rigth now, we will carry on Tuesday morning.
Otherwise, stay up for some more fun with the terminal!
in a terminal, copy paste or type this command: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
if you ever have an error about certificates using curl, execute the two following commands and restart the “Homebrew” install of the previous step export CURL_CA_BUNDLE=/usr/local/curl/ curl http://curl.haxx.se/ca/cacert.pem -o cacert.pem
once the installation is over type in the terminal brew doctor
when the doctor gave you its check-up diagnosis, it should tell you that your system is ready for brewing stuff or something similar
IF THERE IS SOME CRITICAL ERROR AND NOT JUST WARNINGS, STOP THE INSTALLATION PROCESS NOW AND ASK US WHAT TO DO
If and only if the doctor gave its green light, you can Now close (by typing exit and then closing the windows with the cmd+W key stroke combination) all your instances of the terminal application, quit the application cmd+Q and relaunch it.
with the following command: brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
wait
In a terminal, execute conda install conda
Procced ([y]/n), press on the Enter key (because yes is the defaultwait
by typing in the terminal conda install -c cogsci pygame=1.9.2a0
Procced ([y]/n), press on the Enter key (because yes is the defaultwait
in a terminal, type ipython
In [1]:, then press twice on Enter import pygame pygame.init() w=pygame.display.set_mode([300,300]) w.fill([128,37,213]) pygame.display.flip() pygame.time.wait(3000) pygame.quit()ctrl+D to quit the ipython console, you should be back to the standard terminal (you should see --bash-- on the top of the terminal window)chimp.py file is located in the hierarchy of folders within the anaconda installation: find ~/anaconda*/lib -name "chimp.py"you should see one line explicitely describing the succession of the directories from /Users to the file chimp.py (we call that the “path” to the chimp.py file, more on that in the following courses)
then still in the terminal, execute the following command, replacing the_line_with_the_succession_of_folders_that_ends_with_chimp.py by the one you just found in the previous step (use copy and paste if needed) python the_line_with_the_succession_of_folders_that_ends_with_chimp.py
if you have trouble with the previous command execute the following command python $(find ~/anaconda* -name "chimp.py")
You should be able to play a silly game, including sound (make sure the sound is on, but not too loud).
Enter key): pip install expyrimentexitquit the Terminal application, using the top menu Terminal > Close Terminal or the CMD + Q keyboard shortcut. You should not see the terminal anymore when navigating between applications using the Alt + Tab keyboard shortcut.
close your session using the apple menu (clic on the apple icon on the top left of your screen), then Log Out your_user_name, or using the Shift Cmd Q keyboard shortcut
ipythonIn this ipython console, once you see the In [1]: and the blinking cursor, type or copy paste the following lines one by one import expyriment
exp = expyriment.design.Experiment(name="test")
expyriment.control.initialize(exp)
Then you should see this message:
> Python is running in an interactive shell but Expyriment wants to initialize a fullscreen > Do you want to switch to windows mode? (Y/n)
Confirm the switch to a windowed mode by hitting the Enter key (Y is in uppercase to show it’s the default option, you can also type “yes” then hit Enter).
Select the python window and execute the following command: expyriment.control.start()
Enter to validate the subject number.Enter a second time to validate.Select the python window, you should see the In [X]: and the blinking cursor after which you can start typing, then execute the following command to finish the experiment and close the window: expyriment.control.end()
If this doesn’t work, turn your computer on and of again, then retest expyriment.
The *.deb files can be installed by simply clicking on them, or on the command line, with the command sudo dpkg -i, e.g.:
sudo dpkg -i atom-amd64.deb
In a terminal, go where you donloaded the python-2.7.12-docs-html.zip archive and type the following command, using the path to where you want to store the documentation files
unzip -d path_to_a_directory python-2.7.12-docs-html.zip
Open a terminal (Ctrl-Alt-T) and type: bash ~/Downloads/Anaconda*.sh
Note: if you the installer is in a different folder than Downloads, change to the correct path
ipython in order to lauch a ipython interpreterin the ipython shell, type each of those lines one by one followed by enter import numpy as np import matplotlib.pyplot as plt from scipy import stats x=np.arange(-5,5,.1) y=stats.norm.pdf(x) plt.plot(x,y) plt.show()
exit the ipython shell by typing quit() or the keyboard shortcut ctrl + D
then you are back to the terminal shell where you can install pygame
conda install -c cogsci pygame=1.9.2a0in a terminal, type ipython
In [1]:you can copy and paste the following seven lines then press twice on Enter import pygame pygame.init() w=pygame.display.set_mode([300,300]) w.fill([128,37,213]) pygame.display.flip() pygame.time.wait(3000) pygame.quit()
ctrl+D to quit the ipython consoleto further check the installation, in a this terminal window, first, get the path for the chimp.py file: find ~/anaconda*/lib -name "chimp.py"
then still in the terminal, execute the following command, using the path you’ve just got python path_to_chimp.py
if you have trouble with the previous command execute the following command python $(find ~/anaconda* -name "chimp.py")
You should be able to play a silly game, including sound (make sure the sound is on, but not too loud).
pip install expyrimentexitLaunch the ipython console by executing the command ipython
In this ipython console, once you see the In [1]: and the blinking cursor, type or copy paste the following lines one by one import expyriment
If you see the following error message
ImportError: libSDL_mixer-1.2.so.0: cannot open shared object file: No such file or directory
Then type the following command in a terminal:
sudo apt-get install libsdl-mixer1.2
And start again.
```
exp = expyriment.design.Experiment(name="test")
```
```
expyriment.control.initialize(exp)
```
Then you should see this message:
> Python is running in an interactive shell but Expyriment wants to initialize a fullscreen
> Do you want to switch to windows mode? (Y/n)
Confirm the switch to a windowed mode by hitting the Enter key (Y is in uppercase to show it’s the default option, you can also type“ye then hit Enter).
Select the python window and execute the following command: expyriment.control.start()
Enter to validate the subject number.Enter a second time to validate.Select the python window, you should see the In [X]: and the blinking cursor after which you can start typing, then execute thefollowi command to finish the experiment and close the window: expyriment.control.end()
You can now exit the ipython console
Download et installation sudo apt-get install git-core
Configuration, by typing in a terminal with the appropriate replacements git config --global user.name "your_user_name" git config --global user.email your_email@example.com
Installation: in a terminal, type sudo apt-get install scratch
Test : in the terminal of a graphic console, type scratch
You should see a new window, where you should be able to grab and move the little mascot.
The instructions to install R are available here: https://cran.r-project.org/bin/linux/ubuntu/README.html#installation
Check which linux exactly you are using with the following command lsb_release -da
You should see an output like this one:
Distributor ID: Debian Description : Debian GNU/Linux 7.8 (wheezy) Release: 7.8 Codename: wheezy
add the appropriate repository to your /etc/apt/sources.list sudo sh -c 'echo deb http://cran.univ-paris1.fr/bin/linux/debian wheezy-cran3/ >> /etc/apt/sources.list'
For Ubuntu, you migh have to leave out the -cran3 after the version codename
sudo sh -c 'echo deb http://cran.univ-paris1.fr/bin/linux/ubuntu vivid/ >> /etc/apt/sources.list'
update your repository list by executing sudo apt-get update
sudo apt-get install r-base r-base-core r-base-htmlsudo apt-get install libjpeg62 sudo dpkg -i rstudio-X.XX.XXX-amd64.debrstudio in a console to lauch the R interpreter