Changes

Jump to navigation Jump to search
1,007 bytes added ,  18:18, 2 February 2021
no edit summary
Line 104: Line 104:  
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br>
 
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br>
 
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]
 
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]
<br><br>
      
== Batch files ==  
 
== Batch files ==  
Line 111: Line 110:  
'''python <myscript.py>'''<br><br>
 
'''python <myscript.py>'''<br><br>
 
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.
 
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.
 +
 +
== Summary for Tobii users (and others that need 32 bits Psychopy) ==
 +
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br>
 +
To start your script you can: <br>
 +
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br>
 +
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br>
 +
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br>
 +
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br>
 +
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.

Navigation menu