raspberrypi / picamera2

New libcamera based python library
BSD 2-Clause "Simplified" License
897 stars 190 forks source link

[HOW-TO] project.toml issue when trying to install rpi-libcamera in conda env with python 3.9 #1034

Open AlphaIkaros2 opened 6 months ago

AlphaIkaros2 commented 6 months ago

i ran: pip install rpi-libcamera output: error: subprocess-exited-with-error Preparing metadata (pyproject.toml) did not run successfully. exit code: 1 [24 lines of output]

Encountered error while generating package metadata. See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

will-v-pi commented 6 months ago

Message: Requires libcamera-dev package to be installed - apt install libcamera-dev

Have you installed the latest libcamera-dev package from apt?

AlphaIkaros2 commented 6 months ago

Message: Requires libcamera-dev package to be installed - apt install libcamera-dev

Have you installed the latest libcamera-dev package from apt?

Yes, i installed the libcamera-dev, the issue still remains. I switched to python environment with the --system-site-packages flags, everything works fine now. Thanks for the reply :)