pip 生成requirement配置文件,快速安装配置环境

在当前目录下生成requirements.txt文件

>>> pip freeze > ./requirements.txt 

配置环境

>>> pip install -r ./requirements.txt 

PS: 爬虫常用环境:

asn1crypto==0.24.0
attrs==18.2.0
Automat==0.7.0
beautifulsoup4==4.7.1
bs4==0.0.1
certifi==2018.11.29
cffi==1.11.5
chardet==3.0.4
constantly==15.1.0
cryptography==2.4.2
cssselect==1.0.3
fake-useragent==0.1.11
hyperlink==18.0.0
idna==2.8
incremental==17.5.0
lxml==4.2.5
parsel==1.5.1
Pillow==5.4.1
pyasn1==0.4.4
pyasn1-modules==0.2.2
pycparser==2.19
PyDispatcher==2.0.5
PyHamcrest==1.9.0
pymongo==3.7.2
PyMySQL==0.9.3
pyOpenSSL==18.0.0
pypiwin32==223
pytesseract==0.2.6
pywin32==224
queuelib==1.5.0
requests==2.21.0
Scrapy==1.5.1
selenium==3.141.0
service-identity==18.1.0
six==1.12.0
soupsieve==1.7.1
Twisted==18.9.0
urllib3==1.24.1
w3lib==1.19.0
zope.interface==4.6.0

你可能感兴趣的:(python)