The differences are that I comment out the dependency for x264 since that package doesn't exist for Windows, and I put configobj back in the dependencies list and comment out the link in tie pip: section. I first create an environment using a slightly modified environment-3.6.yml. I did this successully with 1.90.3 this past summer, but I'm having trouble doing this for v3.0.0b12. ℹ️About GitHub Wiki SEE, a search engine enabler for GitHub WikisĪs GitHub blocks most GitHub Wikis from search engines.I'm trying to build a conda environment for Psychopy for an offline computer. Note: Cloning the repo requires having git installed. If you've cloned the "lupyanlab/lab-computer" repo, navigate to the "psychopy-tests/" directory and run the following demo. Now you should be able to run a basic psychopy experiment. To install pyo, see the page Installing pyo. (psychopy) $ conda install -channel cogsci pygame To play audio, you need either pygame or pyo. I've separated them only to emphasis that everything up to this point has been to install the various packages required by psychopy, and now we actually install psychopy. Note: You can combine the previous pip install. Now that the requirements for a basic psychopy experiment have been installed, you can install psychopy, which we will install with pip because it is one of those packages that isn't available to install via conda install or any channels. (psychopy) $ pip install moviepy pyosf python-bidi psychopy_ext Luckily pip and conda work well together, and pip will install the packages to the right place: the active Anaconda environment named "psychopy" that you created and activated. Some packages that are required for psychopy are not available to install via the conda install command, and must be installed via pip. Greenlet msgpack-python psutil pytables requests \ Wxpython lxml openpyxl xlrd configobj pyyaml gevent \ (psychopy) $ conda install numpy scipy matplotlib pandas pyopengl pillow \ Note: The fact that the following lines "just work" is what makes Anaconda so useful. The additional option -channel as in conda install -channel conda-forge pyglet installs the pyglet package from an external source of python packages. This is basically an amped-up python installer like pip that makes it easy to install python packages for scientific computing. The command conda install is a special way of installing python packages in an Anaconda environment. (root) $ source activate psychopy # activate the new virtualenv (root) $ conda create -n psychopy python=2 # create the virtualenv with python2 Regardless of whether the default Python we installed with Anaconda is Python 2 or Python 3, we can create a virtualenv with Python 2 with the following commands. The python package psychopy requires Python 2. The next step is to create an isolated virtual environment. To use it, open up Terminal and activate it with the following command: source /usr/local/anaconda3/bin/activate This will likely install Anaconda system-wide in "/usr/local/anaconda3/". On macOS, I recommend installing Anaconda python with Homebrew. These terminals are not guaranteed to be able to find and run your Anaconda python install correctly. Other terminals you may have access to on your Windows machine may be the PowerShell or Cygwin or Git Bash. This opens a terminal session with Anaconda python on the PATH, that is, from this terminal and only this terminal, typing python is guaranteed to run the version of python installed by Anaconda. On this page we are installing 64-bit python, so select the 64-bit installer for Python 3.Īfter Anaconda is installed, it creates a number of program in the Start menu, one of which is called Anaconda prompt. Find the links to install Anaconda for Windows, Python 3 version. exe installer from the Continuum.io website at. Install Anaconda Installing Anaconda on Windowsĭownload Anaconda python via the. (psychopy) $ pip install moviepy pyosf python-bidi psychopy_ext psychopy json_tricks (psychopy) $ conda install -channel conda-forge pyglet (psychopy) $ conda install numpy scipy matplotlib pandas pyopengl wxpython lxml openpyxl xlrd configobj pyyaml gevent pillow greenlet msgpack-python psutil pytables requests seaborn future (root) $ conda create -n psychopy python=2 Each step is described in more detail below. Note: This is a summary of all installation steps in one place. After installing Anaconda, open the command line with Anaconda python on your PATH, and run the following commands to install psychopy and its dependencies in an isolated virtual environment named "psychopy".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |