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

Beginners • cannot access libraries with mu

$
0
0
I am having trouble getting started with a program I want to write using mu (or Geany). I have installed the library I need (nrf24), created a virtual environment, activated the environment, and used pip list to verify that the library is there. However, I cannot seem to get access to the library. I get this message:

Traceback (most recent call last):
File "/home/Doug/mu_code/Test1.py", line 4, in <module>
from nrf24 import *
ModuleNotFoundError: No module named 'nrf24'

Pip list gives:

(env) Doug@Pi-1:~/mu_code $ pip list
Package Version
---------- -------
nrf24 2.0.0
pigpio 1.78
pip 23.0.1
setuptools 66.1.1
(env) Doug@Pi-1:~/mu_code $

the library is in /home/Doug/mu_code/env/lib/python3.11/site-packages/nrf24 and also shows up in lib64
my code is in /home/Doug/mu_code
I tried adding the full path to the library to my PATH, but that had no effect.

What am I missing?

Statistics: Posted by Deemar — Wed Feb 28, 2024 9:53 pm — Replies 2 — Views 32



Viewing all articles
Browse latest Browse all 4896

Trending Articles