Comments on: Raspberry Pi: MJPEG Streaming Web Server (Picamera2) https://randomnerdtutorials.com/raspberry-pi-mjpeg-streaming-web-server-picamera2/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 12 Jun 2024 18:42:46 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Ingener https://randomnerdtutorials.com/raspberry-pi-mjpeg-streaming-web-server-picamera2/#comment-924781 Wed, 12 Jun 2024 18:42:46 +0000 https://randomnerdtutorials.com/?p=146898#comment-924781 sudo apt install -y python3-picamera2
installation in a virtual environment does not work.
You need to make common modules of the global and virtual environment, then this works:

Create a virtual environment with access to global packages:
python3 -m venv myenv –system-site-packages

Activate the virtual environment:
source myenv/bin/activate

Check availability of picamera2 library:
python -c “import picamera2; print(picamera2.version)”

]]>
By: Diogen https://randomnerdtutorials.com/raspberry-pi-mjpeg-streaming-web-server-picamera2/#comment-918004 Sat, 25 May 2024 06:05:16 +0000 https://randomnerdtutorials.com/?p=146898#comment-918004 The procedure works great. If it is started from the cli terminal or via ssh, it is possible to add no-hang-up and work in the background so that it continues to work safely even after the termination of the ssh connection or shutdown of the cli-terminal:

nohup python stream_server.py &

]]>