pip 高级用法

humanlsj@humanlsj-PC:~$ sudo apt-get install python-pip
请输入密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:
  libjs-sphinxdoc libjs-underscore libpython-all-dev libpython-dev libpython2-dev libpython2.7-dev python-all python-all-dev python-configparser
  python-dev python-entrypoints python-keyring python-keyrings.alt python-secretstorage python-setuptools python-wheel python-xdg python2-dev
  python2.7-dev
建议安装:
  gir1.2-gnomekeyring-1.0 python-gdata python-keyczar python-secretstorage-doc python-setuptools-doc
下列【新】软件包将被安装:
  libjs-sphinxdoc libjs-underscore libpython-all-dev libpython-dev libpython2-dev libpython2.7-dev python-all python-all-dev python-configparser
  python-dev python-entrypoints python-keyring python-keyrings.alt python-pip python-secretstorage python-setuptools python-wheel python-xdg
  python2-dev python2.7-dev
升级了 0 个软件包,新安装了 20 个软件包,要卸载 0 个软件包,有 243 个软件包未被升级。
需要下载 32.9 MB 的归档。
解压缩后会消耗 58.8 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 https://mirrors.aliyun.com/deepin apricot/main amd64 libjs-underscore all 1.9.1~dfsg-1 [99.4 kB]
获取:2 https://mirrors.aliyun.com/deepin apricot/main amd64 libjs-sphinxdoc all 1.8.4-1 [95.9 kB]
获取:3 https://mirrors.aliyun.com/deepin apricot/main amd64 libpython2.7-dev amd64 2.7.16.2-1+eagle [31.5 MB]
获取:4 https://mirrors.aliyun.com/deepin apricot/main amd64 libpython2-dev amd64 2.7.16-1 [20.9 kB]                                                 
获取:5 https://mirrors.aliyun.com/deepin apricot/main amd64 libpython-dev amd64 2.7.16-1 [20.9 kB]                                                  
获取:6 https://mirrors.aliyun.com/deepin apricot/main amd64 libpython-all-dev amd64 2.7.16-1 [1,064 B]                                              
获取:7 https://mirrors.aliyun.com/deepin apricot/main amd64 python-all amd64 2.7.16-1 [1,044 B]                                                     
获取:8 https://mirrors.aliyun.com/deepin apricot/main amd64 python2.7-dev amd64 2.7.16.2-1+eagle [302 kB]                                           
获取:9 https://mirrors.aliyun.com/deepin apricot/main amd64 python2-dev amd64 2.7.16-1 [1,212 B]                                                    
获取:10 https://mirrors.aliyun.com/deepin apricot/main amd64 python-dev amd64 2.7.16-1 [1,192 B]                                                    
获取:11 https://mirrors.aliyun.com/deepin apricot/main amd64 python-all-dev amd64 2.7.16-1 [1,068 B]                                                
获取:12 https://mirrors.aliyun.com/deepin apricot/main amd64 python-configparser all 3.5.0b2-1 [62.3 kB]                                            
获取:13 https://mirrors.aliyun.com/deepin apricot/main amd64 python-entrypoints all 0.3-1 [5,444 B]                                                 
获取:14 https://mirrors.aliyun.com/deepin apricot/main amd64 python-secretstorage all 2.3.1-2+apricot [13.9 kB]                                     
获取:15 https://mirrors.aliyun.com/deepin apricot/main amd64 python-keyring all 17.1.1-1 [47.1 kB]                                                  
获取:16 https://mirrors.aliyun.com/deepin apricot/main amd64 python-keyrings.alt all 3.1.1-1 [18.3 kB]                                              
获取:17 https://mirrors.aliyun.com/deepin apricot/main amd64 python-pip all 18.1-5 [215 kB]                                                         
获取:18 https://mirrors.aliyun.com/deepin apricot/main amd64 python-setuptools all 40.8.0-1 [382 kB]                                                
获取:19 https://mirrors.aliyun.com/deepin apricot/main amd64 python-wheel all 0.32.3-2 [19.3 kB]                                                    
获取:20 https://mirrors.aliyun.com/deepin apricot/main amd64 python-xdg all 0.25-5 [35.9 kB]                                                        
已下载 32.9 MB,耗时 12秒 (2,651 kB/s)                                                                                                              
正在选中未选择的软件包 libjs-underscore。
(正在读取数据库 ... 系统当前共安装有 311856 个文件和目录。)
准备解压 .../00-libjs-underscore_1.9.1~dfsg-1_all.deb  ...
正在解压 libjs-underscore (1.9.1~dfsg-1) ...
正在选中未选择的软件包 libjs-sphinxdoc。
准备解压 .../01-libjs-sphinxdoc_1.8.4-1_all.deb  ...
正在解压 libjs-sphinxdoc (1.8.4-1) ...
正在选中未选择的软件包 libpython2.7-dev:amd64。
准备解压 .../02-libpython2.7-dev_2.7.16.2-1+eagle_amd64.deb  ...
正在解压 libpython2.7-dev:amd64 (2.7.16.2-1+eagle) ...
正在选中未选择的软件包 libpython2-dev:amd64。
准备解压 .../03-libpython2-dev_2.7.16-1_amd64.deb  ...
正在解压 libpython2-dev:amd64 (2.7.16-1) ...
正在选中未选择的软件包 libpython-dev:amd64。
准备解压 .../04-libpython-dev_2.7.16-1_amd64.deb  ...
正在解压 libpython-dev:amd64 (2.7.16-1) ...
正在选中未选择的软件包 libpython-all-dev:amd64。
准备解压 .../05-libpython-all-dev_2.7.16-1_amd64.deb  ...
正在解压 libpython-all-dev:amd64 (2.7.16-1) ...
正在选中未选择的软件包 python-all。
准备解压 .../06-python-all_2.7.16-1_amd64.deb  ...
正在解压 python-all (2.7.16-1) ...
正在选中未选择的软件包 python2.7-dev。
准备解压 .../07-python2.7-dev_2.7.16.2-1+eagle_amd64.deb  ...
正在解压 python2.7-dev (2.7.16.2-1+eagle) ...
正在选中未选择的软件包 python2-dev。
准备解压 .../08-python2-dev_2.7.16-1_amd64.deb  ...
正在解压 python2-dev (2.7.16-1) ...
正在选中未选择的软件包 python-dev。
准备解压 .../09-python-dev_2.7.16-1_amd64.deb  ...
正在解压 python-dev (2.7.16-1) ...
正在选中未选择的软件包 python-all-dev。
准备解压 .../10-python-all-dev_2.7.16-1_amd64.deb  ...
正在解压 python-all-dev (2.7.16-1) ...
正在选中未选择的软件包 python-configparser。
准备解压 .../11-python-configparser_3.5.0b2-1_all.deb  ...
正在解压 python-configparser (3.5.0b2-1) ...
正在选中未选择的软件包 python-entrypoints。
准备解压 .../12-python-entrypoints_0.3-1_all.deb  ...
正在解压 python-entrypoints (0.3-1) ...
正在选中未选择的软件包 python-secretstorage。
准备解压 .../13-python-secretstorage_2.3.1-2+apricot_all.deb  ...
正在解压 python-secretstorage (2.3.1-2+apricot) ...
正在选中未选择的软件包 python-keyring。
准备解压 .../14-python-keyring_17.1.1-1_all.deb  ...
正在解压 python-keyring (17.1.1-1) ...
正在选中未选择的软件包 python-keyrings.alt。
准备解压 .../15-python-keyrings.alt_3.1.1-1_all.deb  ...
正在解压 python-keyrings.alt (3.1.1-1) ...
正在选中未选择的软件包 python-pip。
准备解压 .../16-python-pip_18.1-5_all.deb  ...
正在解压 python-pip (18.1-5) ...
正在选中未选择的软件包 python-setuptools。
准备解压 .../17-python-setuptools_40.8.0-1_all.deb  ...
正在解压 python-setuptools (40.8.0-1) ...
正在选中未选择的软件包 python-wheel。
准备解压 .../18-python-wheel_0.32.3-2_all.deb  ...
正在解压 python-wheel (0.32.3-2) ...
正在选中未选择的软件包 python-xdg。
准备解压 .../19-python-xdg_0.25-5_all.deb  ...
正在解压 python-xdg (0.25-5) ...
正在设置 libpython2.7-dev:amd64 (2.7.16.2-1+eagle) ...
正在设置 python-keyrings.alt (3.1.1-1) ...
正在设置 python-secretstorage (2.3.1-2+apricot) ...
正在设置 python-wheel (0.32.3-2) ...
正在设置 python-all (2.7.16-1) ...
正在设置 python-xdg (0.25-5) ...
正在设置 python-pip (18.1-5) ...
正在设置 python-setuptools (40.8.0-1) ...
正在设置 libpython2-dev:amd64 (2.7.16-1) ...
正在设置 libjs-underscore (1.9.1~dfsg-1) ...
正在设置 python2.7-dev (2.7.16.2-1+eagle) ...
正在设置 python2-dev (2.7.16-1) ...
正在设置 libpython-dev:amd64 (2.7.16-1) ...
正在设置 libjs-sphinxdoc (1.8.4-1) ...
正在设置 python-dev (2.7.16-1) ...
正在设置 libpython-all-dev:amd64 (2.7.16-1) ...
正在设置 python-configparser (3.5.0b2-1) ...
正在设置 python-all-dev (2.7.16-1) ...
正在设置 python-entrypoints (0.3-1) ...
正在设置 python-keyring (17.1.1-1) ...
正在处理用于 man-db (2.8.5-2) 的触发器 ...
humanlsj@humanlsj-PC:~$ pip install -U pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/27/79/8a850fe3496446ff0d584327ae44e7500daf6764ca1a382d2d02789accf7/pip-20.3.4-py2.py3-none-any.whl (1.5MB)
    100% |████████████████████████████████| 1.5MB 1.1MB/s 
Installing collected packages: pip
Successfully installed pip-20.3.4
pip的常用命令

humanlsj@humanlsj-PC:~$ pip search flask
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.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.                                                             
ERROR: XMLRPC request failed [code: -32500]
RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.                                                                                                                            
humanlsj@humanlsj-PC:~$ pip install flask==0.8
\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.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.                                                             
Defaulting to user installation because normal site-packages is not writeable
Collecting flask==0.8
  Downloading Flask-0.8.tar.gz (494 kB)
     |████████████████████████████████| 494 kB 774 kB/s 
Collecting Jinja2>=2.4
  Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
     |████████████████████████████████| 125 kB 14.5 MB/s 
Collecting Werkzeug>=0.6.1
  Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
     |████████████████████████████████| 298 kB 14.3 MB/s 
Collecting MarkupSafe>=0.23
  Downloading MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl (24 kB)
Building wheels for collected packages: flask
  Building wheel for flask (setup.py) ... done
  Created wheel for flask: filename=Flask-0.8-py2-none-any.whl size=88700 sha256=ced3f32efffdd3a22b41359cefebb38b493818ffe15d08cfa08b9241fb563106
  Stored in directory: /home/humanlsj/.cache/pip/wheels/33/9d/47/9a2e6b96cdcafa23b51ba963fc4b5bfe549963d5f2095bc6c1
Successfully built flask
Installing collected packages: MarkupSafe, Jinja2, Werkzeug, flask
Successfully installed Jinja2-2.11.3 MarkupSafe-1.1.1 Werkzeug-1.0.1 flask-0.8
humanlsj@humanlsj-PC:~$ pip uninstall Werkzeug
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.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.                                                             
Found existing installation: Werkzeug 1.0.1
Uninstalling Werkzeug-1.0.1:
  Would remove:
    /home/humanlsj/.local/lib/python2.7/site-packages/Werkzeug-1.0.1.dist-info/*
    /home/humanlsj/.local/lib/python2.7/site-packages/werkzeug/*
Proceed (y/n)? y
  Successfully uninstalled Werkzeug-1.0.1
humanlsj@humanlsj-PC:~$ pip show flask
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.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.                                                             
Name: Flask
Version: 0.8
Summary: A microframework based on Werkzeug, Jinja2 and good intentions
Home-page: http://github.com/mitsuhiko/flask/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD
Location: /home/humanlsj/.local/lib/python2.7/site-packages
Requires: Jinja2, Werkzeug
Required-by: 
humanlsj@humanlsj-PC:~$ 
humanlsj@humanlsj-PC:~$ pip check flask
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.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.                                                             
flask 0.8 requires werkzeug, which is not installed.
humanlsj@humanlsj-PC:~$ pip list
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.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.                                                             
Package       Version
------------- --------
asn1crypto    0.24.0
bcrypt        3.1.6
blinker       1.4
colorama      0.3.7
configparser  3.5.0b2
cryptography  2.6.1
decorator     4.3.0
dnspython     1.16.0
duplicity     0.7.18.2
entrypoints   0.3
enum34        1.1.6
fasteners     0.12.0
Flask         0.8
gpg           1.12.0
idna          2.6
ipaddress     1.0.17
Jinja2        2.11.3
keyring       17.1.1
keyrings.alt  3.1.1
lockfile      0.12.2
MarkupSafe    1.1.1
monotonic     1.0
numpy         1.16.2
oauthlib      2.1.0
paramiko      2.4.2
pathlib2      2.3.3
pexpect       4.6.0
pip           20.3.4
psutil        5.5.1
pyasn1        0.4.2
pycairo       1.16.2
pycrypto      2.6.1
pyflakes      2.0.0
PyGObject     3.30.4
PyJWT         1.7.0
PyNaCl        1.3.0
pyOpenSSL     19.0.0
pysmbc        1.0.15.6
pyxdg         0.25
scandir       1.9.0
SecretStorage 2.3.1
setuptools    40.8.0
six           1.12.0
urllib3       1.24.1
wheel         0.32.3
humanlsj@humanlsj-PC:~$ 
humanlsj@humanlsj-PC:~$ pip freeze > /home/humanlsj/Desktop/requirements.txt
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.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.                                                             
humanlsj@humanlsj-PC:~$ 

humanlsj@humanlsj-PC:~/Desktop$ pip install -r /home/humanlsj/Desktop/requirements.txt 
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.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: asn1crypto==0.24.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 1)) (0.24.0)
Requirement already satisfied: bcrypt==3.1.6 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 2)) (3.1.6)
Requirement already satisfied: blinker==1.4 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 3)) (1.4)
Requirement already satisfied: colorama==0.3.7 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 4)) (0.3.7)
Requirement already satisfied: configparser==3.5.0b2 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 5)) (3.5.0b2)
Requirement already satisfied: cryptography==2.6.1 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 6)) (2.6.1)
Requirement already satisfied: decorator==4.3.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 7)) (4.3.0)
Requirement already satisfied: dnspython==1.16.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 8)) (1.16.0)
Requirement already satisfied: duplicity==0.7.18.2 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 9)) (0.7.18.2)
Requirement already satisfied: entrypoints==0.3 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 10)) (0.3)
Requirement already satisfied: enum34==1.1.6 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 11)) (1.1.6)
Requirement already satisfied: fasteners==0.12.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 12)) (0.12.0)
Requirement already satisfied: Flask==0.8 in /home/humanlsj/.local/lib/python2.7/site-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 13)) (0.8)
Requirement already satisfied: gpg==1.12.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 14)) (1.12.0)
Requirement already satisfied: idna==2.6 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 15)) (2.6)
Requirement already satisfied: ipaddress==1.0.17 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 16)) (1.0.17)
Requirement already satisfied: Jinja2==2.11.3 in /home/humanlsj/.local/lib/python2.7/site-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 17)) (2.11.3)
Requirement already satisfied: keyring==17.1.1 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 18)) (17.1.1)
Requirement already satisfied: keyrings.alt==3.1.1 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 19)) (3.1.1)
Requirement already satisfied: lockfile==0.12.2 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 20)) (0.12.2)
Requirement already satisfied: MarkupSafe==1.1.1 in /home/humanlsj/.local/lib/python2.7/site-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 21)) (1.1.1)
Requirement already satisfied: monotonic==1.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 22)) (1.0)
Requirement already satisfied: numpy==1.16.2 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 23)) (1.16.2)
Requirement already satisfied: oauthlib==2.1.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 24)) (2.1.0)
Requirement already satisfied: paramiko==2.4.2 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 25)) (2.4.2)
Requirement already satisfied: pathlib2==2.3.3 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 26)) (2.3.3)
Requirement already satisfied: pexpect==4.6.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 27)) (4.6.0)
Requirement already satisfied: psutil==5.5.1 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 28)) (5.5.1)
Requirement already satisfied: pyasn1==0.4.2 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 29)) (0.4.2)
Requirement already satisfied: pycairo==1.16.2 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 30)) (1.16.2)
Requirement already satisfied: pycrypto==2.6.1 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 31)) (2.6.1)
Requirement already satisfied: pyflakes==2.0.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 32)) (2.0.0)
Requirement already satisfied: PyGObject==3.30.4 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 33)) (3.30.4)
Requirement already satisfied: PyJWT==1.7.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 34)) (1.7.0)
Requirement already satisfied: PyNaCl==1.3.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 35)) (1.3.0)
Requirement already satisfied: pyOpenSSL==19.0.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 36)) (19.0.0)
Requirement already satisfied: pysmbc==1.0.15.6 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 37)) (1.0.15.6)
Requirement already satisfied: pyxdg==0.25 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 38)) (0.25)
Requirement already satisfied: scandir==1.9.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 39)) (1.9.0)
Requirement already satisfied: SecretStorage==2.3.1 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 40)) (2.3.1)
Requirement already satisfied: six==1.12.0 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 41)) (1.12.0)
Requirement already satisfied: urllib3==1.24.1 in /usr/lib/python2.7/dist-packages (from -r /home/humanlsj/Desktop/requirements.txt (line 42)) (1.24.1)
Collecting Werkzeug>=0.6.1
  Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Installing collected packages: Werkzeug
Successfully installed Werkzeug-1.0.1
humanlsj@humanlsj-PC:~/Desktop$ 
#因为已经装过

humanlsj@humanlsj-PC:~/Desktop$ pip i #按tab键不会出现命令补全install

humanlsj@humanlsj-PC:~/Desktop$ pip completion --bash >> ~/.profile
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.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.                                                             
humanlsj@humanlsj-PC:~/Desktop$ source ~/.profile
humanlsj@humanlsj-PC:~/Desktop$ pip install  

#上面可以使用pip i + tab 进行命令补全了。

pip3 也要跟上面一样要有补全功能
humanlsj@humanlsj-PC:~/Desktop$ pip3 completion --bash >> ~/.profile
humanlsj@humanlsj-PC:~/Desktop$ source ~/.profile
humanlsj@humanlsj-PC:~/Desktop$ pip3 install 
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值