安装python-prctl报错

Collecting python-prctl时候报错

 ERROR: Command errored out with exit status 1:
     command: /opt/conda/envs/vilbert-mt/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6axqqvn7/python-prctl/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6axqqvn7/python-prctl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-
admin@admin-PC:/tmp/Python-3.11.4$ mkdir ~/python-build admin@admin-PC:/tmp/Python-3.11.4$ cp /tmp/Python-3.11.4.tar.xz ~/python-build/ admin@admin-PC:/tmp/Python-3.11.4$ cd ~/python-build admin@admin-PC:~/python-build$ tar -xf Python-3.11.4.tar.xz admin@admin-PC:~/python-build$ cd Python-3.11.4 admin@admin-PC:~/python-build/Python-3.11.4$ ./configure --prefix=/usr/local/python3.11 \ > --with-ensurepip=install checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for Python interpreter freezing... ./_bootstrap_python checking for python3.11... no checking for python3.10... no checking for python3.9... no checking for python3.8... no checking for python3.7... python3.7 checking Python for regen version... Python 3.7.3 checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for --enable-universalsdk... no checking for --with-universal-archs... no checking MACHDEP... "linux" checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/home/admin/python-build/Python-3.11.4': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details admin@admin-PC:~/python-build/Python-3.11.4$ echo 'int main(){return 0;}' > test.c admin@admin-PC:~/python-build/Python-3.11.4$ gcc test.c -o test admin@admin-PC:~/python-build/Python-3.11.4$ ./test && echo "✅ 成功运行" || echo "❌ 失败" 段错误 ❌ 失败
最新发布
10-21
(py311env) one@raspberrypi:~/Desktop/YOLOv5-Lite-master $ sudo apt install libcap-dev 姝e湪璇诲彇杞欢鍖呭垪琛?.. 瀹屾垚 姝e湪鍒嗘瀽杞欢鍖呯殑渚濊禆鍏崇郴鏍?.. 瀹屾垚 姝e湪璇诲彇鐘舵€佷俊鎭?.. 瀹屾垚 libcap-dev 宸茬粡鏄渶鏂扮増 (1:2.66-4+deb12u2)銆?涓嬪垪杞欢鍖呮槸鑷姩瀹夎鐨勫苟涓旂幇鍦ㄤ笉闇€瑕佷簡锛? python3-v4l2 浣跨敤'sudo apt autoremove'鏉ュ嵏杞藉畠(瀹冧滑)銆?鍗囩骇浜?0 涓蒋浠跺寘锛屾柊瀹夎浜?0 涓蒋浠跺寘锛岃鍗歌浇 0 涓蒋浠跺寘锛屾湁 272 涓蒋浠跺寘鏈鍗囩骇銆?(py311env) one@raspberrypi:~/Desktop/YOLOv5-Lite-master $ pip install picamera2 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: picamera2 in /home/one/py311env/lib/python3.11/site-packages (0.3.31) Requirement already satisfied: numpy in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (1.25.2) Requirement already satisfied: PiDNG in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (4.0.9) Requirement already satisfied: piexif in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (1.1.3) Requirement already satisfied: pillow in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (11.3.0) Requirement already satisfied: simplejpeg in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (1.8.2) Requirement already satisfied: videodev2 in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (0.0.4) Requirement already satisfied: python-prctl in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (1.8.1) Requirement already satisfied: av in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (15.1.0) Requirement already satisfied: libarchive-c in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (5.3) Requirement already satisfied: tqdm in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (4.67.1) Requirement already satisfied: jsonschema in /home/one/py311env/lib/python3.11/site-packages (from picamera2) (4.25.1) Requirement already satisfied: attrs>=22.2.0 in /home/one/py311env/lib/python3.11/site-packages (from jsonschema->picamera2) (25.3.0) Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /home/one/py311env/lib/python3.11/site-packages (from jsonschema->picamera2) (2025.9.1) Requirement already satisfied: referencing>=0.28.4 in /home/one/py311env/lib/python3.11/site-packages (from jsonschema->picamera2) (0.36.2) Requirement already satisfied: rpds-py>=0.7.1 in /home/one/py311env/lib/python3.11/site-packages (from jsonschema->picamera2) (0.27.1) Requirement already satisfied: typing-extensions>=4.4.0 in /home/one/py311env/lib/python3.11/site-packages (from referencing>=0.28.4->jsonschema->picamera2) (4.15.0)
09-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值