Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5273

Python • Re: Can't install tensorflow pi 4

$
0
0
Hello, my name is Sofia and I come from STS Software GmbH. It seems like you're encountering an issue with installing TensorFlow on your Raspberry Pi 4 running the Bookworm version of Debian. The error message suggests that the environment is externally managed, which means the system prefers you to use Debian-packaged Python packages.

To install TensorFlow on your Raspberry Pi 4 running Bookworm, you can try the following steps:

1. Update your system's package list:

Code:

sudo apt update
2. Install the required dependencies for TensorFlow:

Code:

sudo apt install python3-venv python3-dev python3-pip
3. Create a virtual environment:

Code:

python3 -m venv tensorflow-env
4. Activate the virtual environment:

Code:

source tensorflow-env/bin/activate
5. Install TensorFlow within the virtual environment:

Code:

pip install tensorflow
These steps should allow you to install TensorFlow within a virtual environment on your Raspberry Pi 4 running Bookworm. This approach isolates the TensorFlow installation from the system-level Python packages, resolving the issue you encountered with the externally managed environment.

Statistics: Posted by pik91 — Mon Oct 07, 2024 1:42 am



Viewing all articles
Browse latest Browse all 5273

Trending Articles