Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (39.0.1) Hi3861 error

本文解决使用root用户通过旧的pip脚本安装setuptools时遇到的警告问题,包括建议的修复方式及潜在风险。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

root@ubuntu:/# pip3 install setuptools
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (39.0.1)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

[jetson-inference] Package selection status: 0 [jetson-inference] Packages selected for download: 1 [jetson-inference] Downloading PyTorch v2.1 (Python 3.10)... [jetson-inference] Checking for 'python3-pip' deb package...installed [jetson-inference] Checking for 'qtbase5-dev' deb package...installed [jetson-inference] Checking for 'libjpeg-dev' deb package...installed [jetson-inference] Checking for 'zlib1g-dev' deb package...installed [jetson-inference] Checking for 'libopenblas-base' deb package...installed [jetson-inference] Checking for 'libopenmpi-dev' deb package...installed [jetson-inference] Checking for 'libomp-dev' deb package...installed [jetson-inference] Checking for 'ninja-build' deb package...installed Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: Cython in /home/ubuntu/.local/lib/python3.10/site-packages (3.0.12) Using pip 25.0.1 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10) Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.21.5) Using pip 25.0.1 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10) Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: tensorboard in /home/ubuntu/.local/lib/python3.10/site-packages (2.19.0) Requirement already satisfied: absl-py>=0.4 in /home/ubuntu/.local/lib/python3.10/site-packages (from tensorboard) (2.1.0) Requirement already satisfied: grpcio>=1.48.2 in /home/ubuntu/.local/lib/python3.10/site-packages (from tensorboard) (1.71.0) Requirement already satisfied: markdown>=2.6.8 in /home/ubuntu/.local/lib/python3.10/site-packages (from tensorboard) (3.7) Requirement already satisfied: numpy>=1.12.0 in /usr/lib/python3/dist-packages (from tensorboard) (1.21.5) Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from tensorboard) (21.3) we
03-14
Requirement already satisfied: setuptools in /home/liyuxuan/.local/lib/python3.8/site-packages (75.3.2) Requirement already satisfied: pip in /home/liyuxuan/.local/lib/python3.8/site-packages (25.0.1) Collecting packaging Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB) Downloading packaging-24.2-py3-none-any.whl (65 kB) WARNING: Error parsing dependencies of distro-info: Invalid version: &#39;0.23ubuntu1&#39; WARNING: Error parsing dependencies of python-debian: Invalid version: &#39;0.1.36ubuntu1&#39; Installing collected packages: packaging Successfully installed packaging-24.2 liyuxuan@l2957488710:~/ardupilot$ pip3 install --user -U future lxml pymavlink pyserial MAVProxy pexpect geocoder empy==3.3.4 ptyprocess dronecan flake8 junitparser pygame intelhex Collecting future Downloading future-1.0.0-py3-none-any.whl.metadata (4.0 kB) Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (4.5.0) Collecting lxml Downloading lxml-5.3.1-cp38-cp38-manylinux_2_28_x86_64.whl.metadata (3.5 kB) Collecting pymavlink Downloading pymavlink-2.4.43-py3-none-any.whl.metadata (6.4 kB) Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (3.4) Collecting pyserial Downloading pyserial-3.5-py2.py3-none-any.whl.metadata (1.6 kB) Collecting MAVProxy Downloading MAVProxy-1.8.71-py3-none-any.whl.metadata (2.0 kB) Requirement already satisfied: pexpect in /usr/lib/python3/dist-packages (4.6.0) Collecting pexpect Downloading pexpect-4.9.0-py2.py3-none-any.whl.metadata (2.5 kB) Collecting geocoder Downloading geocoder-1.38.1-py2.py3-none-any.whl.metadata (14 kB) Collecting empy==3.3.4 Downloading empy-3.3.4.tar.gz (62 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [10 lines of output] Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 14, in <module> File "/home/liyuxuan/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 27, in <module> from .dist import Distribution File "/home/liyuxuan/.local/lib/python3.8/site-packages/setuptools/dist.py", line 30, in <module> from . import ( File "/home/liyuxuan/.local/lib/python3.8/site-packages/setuptools/_entry_points.py", line 45, in <module> def validate(eps: metadata.EntryPoints): AttributeError: module &#39;importlib_metadata&#39; has no attribute &#39;EntryPoints&#39; [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 p
最新发布
04-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值