The installation is fundamentally simple but deliberately described in great detail to eliminate any potential confusion or obstacles.
Go to the Help → Update piSpectro… menu and install the latest version with a click. It is recommended to do this whenever you haven't used the program for some time. This way you are always working with the latest version.
It’s always a good idea to update the Raspbian system beforehand:
sudo apt update sudo apt upgrade
This ensures that all package lists are current and the latest versions are installed.
Advantages of this method:
Change into the console directory `pispectro/doc/readme`:
cd pispectro/doc/readme
Make the script `setup_pispectro.sh` executable:
chmod 775 ./setup_pispectro.sh
Then run the script:
./setup_pispectro.sh
Activating and deactivating the virtual environment
After successful setup, the virtual environment needs to be activated:
source ~/.pispectro/bin/activate
This activates the `.pispectro` Python environment. This is indicated in the terminal prompt by a prefix, e.g.:
(.pispectro) user@raspberrypi:~/path/to/project$
While this environment is active, all Python commands use the installed libraries (e.g., `pyqtgraph`, `astropy`, etc.).
To deactivate the environment:
deactivate
The prefix then disappears from the prompt, and the system-wide Python is used again.
chmod 775 ./pispectro.py
source ~/.pispectro/bin/activate
./pispectro.py
This command must be run in the directory containing `pispectro.py`.