1. 程式人生 > 實用技巧 >pip批量安裝包

pip批量安裝包

1. pip

先winds+R開啟命令符,輸入cmd在裡面輸入 pip freeze匯出所有之前下載過的包

2.呼叫

3.在桌面上生成一個base.txt的檔案

cd Desktop

4.pip

pip freeze>base.txt

這是之前電腦上下載過的所有資料

django
amqp==2.6.1
asgiref==3.2.7
billiard==3.6.3.0
celery==4.4.7
certifi==2019.11.28
cffi==1.13.2
chardet==3.0.4
click==7.1.2
click-didyoumean==0.0.3
click-repl==0.1.6
cryptography==3.1.1
Django==3.0.7
django-cors-headers==3.2.1
django-redis==4.12.1
djangorestframework==3.11.0
djangorestframework-stubs==1.1.0
dnspython==1.16.0
eventlet==0.26.1
gevent==1.4.0
greenlet==0.4.15
idna==2.8
importlib-metadata==2.0.0
itsdangerous==1.1.0
kombu==4.6.11
monotonic==1.5
mysqlclient==1.4.6
Paginator==0.5.1
Pillow==7.0.0
prompt-toolkit==3.0.7
pycparser==2.19
pycryptodomex==3.9.4
PyJWT==1.7.1
PyMySQL==0.9.3
pyOpenSSL==19.1.0
python-alipay-sdk==2.1.1
pytz==2019.3
redis==3.5.3
requests==2.22.0
selenium==3.141.0
six==1.15.0
sqlparse==0.3.1
urllib3==1.25.8
vine==1.3.0
wcwidth==0.2.5
zipp==3.2.0

5.呼叫(批量新增)

pip install -r base.txt