PiVR has been developed by David Tadres and Matthieu Louis (`Louis Lab
`__).
.. _software_installation:
PiVR software installation
==========================
.. _software_installation_RPi:
Install PiVR on the Raspberry Pi
--------------------------------
#. Download the OS image
`here `_
#. Write the image onto an SD card (minimal tested SD size 16 Gb,
larger should always work.)
#. Windows: Download and install
`Win 32 DiskImager `_ and write the
image on your SD card. Note: If you have Google Drive running
you might have to shut it down for Win 32 DiskImager to run.
#. Linux and MacOS: Download `Etcher `_
and write the image on your SD card. Note: I had to amend the
image file with '.img' in order to select it.
.. _software_installation_PC:
Install PiVR on a PC
---------------------
#. Install `miniconda `__
on your computer.
#. Install `git `__ on your computer
.. note::
If you have Windows, you may try :ref:`this
guide` which will install the software
more or less automatically.
.. note::
If you have Ubuntu, you may try
:ref:`this guide` which will install the
software more or less automatically.
#. Now, create an empty conda environment:
.. code-block:: python
conda create --name PiVR_environment
#. Activate the environment you just created by typing:
Linux/Mac:
.. code-block:: python
source activate PiVR_environment
Windows:
.. code-block:: python
activate PiVR_environment
#. Install the a number of packages which are necessary to run the PiVR
software by copying each line of code into the Terminal
.. code-block:: python
conda install -y python=3.11
conda install -y imageio
conda install -y matplotlib
conda install -y pandas
conda install -y scipy
conda install -y natsort
conda install -y scikit-image
conda install -c conda-forge opencv -y
Windows/Linux:
conda install -c conda-forge imageio-ffmpeg
MacOS:
conda install -c conda-forge ffmpeg
#. You have now prepared the
`virtual environment `__ PiVR will be running in.
#. Using the anaconda terminal, change the working directory to a
folder where you want to store the actual PiVR software.
.. code-block:: python
cd C:\Users\UserA\Documents>
.. note::
You might want to write down the exact path so that you will
find it again in the future!
#. Download the software by typing:
.. code-block:: python
git clone https://gitlab.com/louislab/PiVR
#. Now navigate into the folder you have just downloaded by typing:
.. code-block:: python
cd PiVR
#. To start the PiVR software type:
.. code-block:: python
python start_GUI.py
.. _software_install_Win10:
Install PiVR on a Windows 10 PC
-------------------------------
.. important::
If you are having trouble with this installation procedure, do the
:ref:`manual install`.
.. warning::
Only Win10, 64bit tested!
#. Open the Anaconda prompt
#. Navigate into a folder where you want to store the PiVR software,
for example:
.. code-block:: python
cd C:\Users\UserA\Documents>
#. Download the software by typing:
.. code-block:: python
git clone https://gitlab.com/louislab/PiVR
#. Navigate into the installation folder by typing:
.. code-block:: python
cd PiVR\Installation_update
#. Create the Windows 10 virtual environment for the PiVR software to
run using the provided package list by typing:
.. code-block:: python
conda create --name PiVR_environment --file PiVR_Win64.txt
#. Once done, activate the virtual environment by typing:
.. code-block:: python
activate PiVR_environment
You know you successfully activated the virtual enviroment if it
says '(PiVR)' at the beginnig of the line in the terminal.
#. Start the software by going into the folder where the file
"start_GUI.py" can be found, which is the parent folder of the
installation folder you should be in now. So just type:
.. code-block:: python
cd ..
#. And to finally start PiVR, type:
.. code-block:: python
python start_GUI.py
.. _software_install_Ubuntu:
Install PiVR on a Linux PC
---------------------------
.. important::
If you are having trouble with this installation procedure, do the
:ref:`manual install`.
.. warning::
Only Ubuntu, 64bit tested)
#. Open the Terminal
#. Navigate into a folder where you want to store the PiVR software,
for example:
.. code-block:: python
cd /home/UserA
#. Clone the repository by typing:
.. code-block:: python
git clone https://gitlab.com/louislab/PiVR
#. Navigate to the "Installation_update" folder of the repository you
just cloned:
.. code-block:: python
cd /home/UserA/PiVR/PiVR/Installation_update
#. Create the Linux virtual environment for the PiVR software to
run using the provided package list by typing:
.. code-block:: python
conda create --name PiVR_environment --file PiVR_Linux64.txt
#. Once done, activate the virtual environment by typing:
.. code-block:: python
source activate PiVR_environment
You know you successfully activated the virtual enviroment if it
says '(PiVR)' at the beginnig of the line in the terminal.
#. Start the software by going into the folder where the file
"start_GUI.py" can be found, which is the parent folder of the
installation folder you should be in now. So just type:
.. code-block:: python
cd ..
#. Start the program by typing:
.. code-block:: python
python start_GUI.py
.. _software_start_PC:
Start PiVR on a PC
-------------------
.. note::
To run PiVR, you of course need to first
:ref:`install` the software.
#. Open the Anaconda terminal (Windows) or Terminal (MacOS/Linux)
#. Activate the virtual environment you have created during the
installation. If you followed these instructions type:
Windows:
.. code-block:: python
activate PiVR_environment
Linux/MacOS:
.. code-block:: python
source activate PiVR_environment
#. Change directory to the folder where you downloaded the PiVR
software into. In the example here we used:
.. code-block:: python
cd C:\Users\UserA\Documents\PiVR\PiVR
#. Start PiVR software by typing:
.. code-block:: python
python start_GUI.py