python:升级setuptools的版本(Python 3.11.4)

发布时间 2023-08-09 10:20:30作者: 刘宏缔的架构森林
[root@img Python-3.11.4]# python3 -m pip show setuptools
Name: setuptools
Version: 65.5.0
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
License:
Location: /usr/local/soft/python3.11.4/lib/python3.11/site-packages
Requires:
Required-by:

二,升级setuptools的版本:

[root@img Python-3.11.4]# pip3 install --upgrade setuptools
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Requirement already satisfied: setuptools in /usr/local/soft/python3.11.4/lib/python3.11/site-packages (65.5.0)
Collecting setuptools
  Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/c7/42/be1c7bbdd83e1bfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68.0.0-py3-none-any.whl (804 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 804.0/804.0 kB 14.9 MB/s eta 0:00:00
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 65.5.0
    Uninstalling setuptools-65.5.0:
      Successfully uninstalled setuptools-65.5.0
Successfully installed setuptools-68.0.0
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

三,升级完成后查看效果

可见已升级到版本号:68.0.0

[root@img Python-3.11.4]# python3 -m pip show setuptools
Name: setuptools
Version: 68.0.0
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
License:
Location: /usr/local/soft/python3.11.4/lib/python3.11/site-packages
Requires:
Required-by:

说明:刘宏缔的架构森林—专注it技术的博客,
网站:https://blog.imgtouch.com
原文: https://blog.imgtouch.com/index.php/2023/08/03/python-sheng-ji-setuptools-de-ban-ben-python-3-11-4/
代码: https://github.com/liuhongdi/ 或 https://gitee.com/liuhongdi
说明:作者:刘宏缔 邮箱: 371125307@qq.com

四,查看python版本:

[root@img Python-3.11.4]# python --version
Python 3.11.4