after updating pip I tried to install raylib. Here’s the command and otuput
purism@pureos:~ $ pip install raylib
Defaulting to user installation because normal site-packages is not writeable
Collecting raylib
Using cached raylib-4.0.0.6.tar.gz (61 kB)
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File “”, line 2, in
File “”, line 34, in
File “/tmp/pip-install-wtd16f_1/raylib_fafe17b860d444388951a1d353b8b6e8/setup.py”, line 20, in
setup(
File “/usr/lib/python3/dist-packages/setuptools/init.py”, line 153, in setup
return distutils.core.setup(**attrs)
File “/usr/lib/python3.9/distutils/core.py”, line 108, in setup
_setup_distribution = dist = klass(attrs)
File “/usr/lib/python3/dist-packages/setuptools/dist.py”, line 432, in init
_Distribution.init(self, {
File “/usr/lib/python3.9/distutils/dist.py”, line 292, in init
self.finalize_options()
File “/usr/lib/python3/dist-packages/setuptools/dist.py”, line 708, in finalize_options
ep(self)
File “/usr/lib/python3/dist-packages/setuptools/dist.py”, line 715, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File “/home/purism/.local/lib/python3.9/site-packages/cffi/setuptools_ext.py”, line 219, in cffi_modules
add_cffi_module(dist, cffi_module)
File “/home/purism/.local/lib/python3.9/site-packages/cffi/setuptools_ext.py”, line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File “/home/purism/.local/lib/python3.9/site-packages/cffi/setuptools_ext.py”, line 25, in execfile
exec(code, glob, glob)
File “raylib/build.py”, line 189, in
build_unix()
File “raylib/build.py”, line 101, in build_unix
raise Exception(“ERROR: raylib not found by pkg-config. Please install pkg-config and Raylib.”)
Exception: ERROR: raylib not found by pkg-config. Please install pkg-config and Raylib.
not windows, trying Unix build
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× 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.