我在ubuntu虚拟环境中进行了以下设置
点子列表 argparse(1.2.1) 点子(1.5.4) setuptools(20.10.1) wsgiref(0.1.2)
我想安装setuptools 18.2作为项目要求。请告诉我如何做到这一点
答案 0 :(得分:1)
我刚试过它,看起来只是在做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