gpt4 book ai didi

python - 在 ubuntu 上将 setuptools 从 20.10.1 降级到 18.2

转载 作者:太空宇宙 更新时间:2023-11-03 16:39:43 29 4
gpt4 key购买 nike

我在 ubuntu 虚拟环境中进行了以下设置

pip list argparse (1.2.1) pip (1.5.4) setuptools (20.10.1) wsgiref (0.1.2)

我想安装 setuptools 18.2 作为项目要求。请告诉我如何做到这一点

最佳答案

我刚刚测试了它,看起来只需执行 pip install setuptools==18.2 就可以了。

$ pip install setuptools==20.10.1
You are using pip version 6.1.1, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting setuptools==20.10.1
Using cached setuptools-20.10.1-py2.py3-none-any.whl
Installing collected packages: setuptools
Found existing installation: setuptools 15.0
Uninstalling setuptools-15.0:
Successfully uninstalled setuptools-15.0
Successfully installed setuptools-20.10.1

$ pip list
You are using pip version 6.1.1, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
pip (6.1.1)
setuptools (20.10.1) <<<<<<<<<<<<<<<<<< look here

$ pip install setuptools==18.2
You are using pip version 6.1.1, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting setuptools==18.2
Using cached setuptools-18.2-py2.py3-none-any.whl
Installing collected packages: setuptools
Found existing installation: setuptools 20.10.1
Uninstalling setuptools-20.10.1:
Successfully uninstalled setuptools-20.10.1
Successfully installed setuptools-18.2

$ pip list
You are using pip version 6.1.1, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
pip (6.1.1)
setuptools (18.2) <<<<<<<<<<<<<<<<<< look here

关于python - 在 ubuntu 上将 setuptools 从 20.10.1 降级到 18.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36922229/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com