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

Python • Re: I have installed pyenv and get "No module named 'RPi'"...

$
0
0


When I check "pyvenv.cfg" I get this:

(pyenv) danne@RPi-robot:~/pyenv $ cat pyvenv.cfg
home = /usr/bin
include-system-site-packages = false
version = 3.11.2
executable = /usr/bin/python3.11
command = /usr/bin/python3 -m venv /home/danne/pyenv


Can any body help me!
DanneA, Thailand



You report this:
$ cat pyvenv.cfg
home = /usr/bin
include-system-site-packages = false
version = 3.11.2
executable = /usr/bin/python3.11
command = /usr/bin/python3 -m venv /home/danne/pyenv


I suggest trying:
include-system-site-packages = true




If unsuccessful you may need to reveal lots of unspecified detail, such as what Operating System is running on your unknown model of RPi board.

Or seek help from the author of the book you are using.


{Disclaimer: I have never used 'pyenv' - the suggested solution is based on using a simple implementation of a Python virtual environment.}

Statistics: Posted by B.Goode — Mon Jun 16, 2025 7:07 am



Viewing all articles
Browse latest Browse all 7610

Trending Articles