( 1. pip freeze > requirements.txt,导出 --site-packages 下的libs 及其版本信息,到文件requirements.txt。)
2. 使用pip install -r requirements.txt 来安装依赖库。
此时,会报 ValueError: 'Missing distribution spec'。
原因: win7 将txt文件默认存在unicode编码格式。 pip install 命令 识别的是utf-8格式。
解决:使用文本编辑器,将该文件保存为utf-8文本格式。

pipisntall
attrs (15.2.0)
BeautifulSoup (3.2.1)
blinker (1.3)
chardet (2.3.0)
configglue (1.1.2)
configobj (5.0.6)
cryptography (1.2.3)
debtags (2.0)
defer (1.0.6)
dirspec (13.10)
duplicity (0.7.6)
ecdsa (0.13)
enum34 (1.1.2)
feedparser (5.1.3)
html5lib (0.999999999)
httplib2 (0.9.1)
idna (2.0)
ipaddress (1.0.16)
lockfile (0.12.2)
lxml (3.5.0)
Mako (1.0.3)
MarkupSafe (0.23)
nemo-emblems (3.0.0)
netifaces (0.10.4)
numpy (1.11.1)
oauthlib (1.0.3)
oneconf (0.3.9)
PAM (0.4.2)
pandas (0.18.1)
paramiko (1.16.0)
pexpect (4.0.1)
Pillow (3.1.2)
pip (8.1.2)
piston-mini-client (0.7.5)
protobuf (2.6.1)
ptyprocess (0.5)
pyasn1 (0.1.9)
pyasn1-modules (0.0.7)
pycrypto (2.6.1)
pycups (1.9.73)
pycurl (7.43.0)
pygobject (3.20.0)
pyinotify (0.9.6)
PyJWT (1.3.0)
pyOpenSSL (0.15.1)
pyparted (3.10.7)
PyPDF2 (1.26.0)
pyserial (3.0.1)
pysmbc (1.0.15.5)
python-apt (1.1.0b1)
python-dateutil (2.5.3)
python-debian (0.1.27)
pytz (2016.6.1)
pyxdg (0.25)
reportlab (3.3.0)
requests (2.10.0)
service-identity (16.0.0)
setuptools (25.1.6)
six (1.10.0)
Twisted (16.0.0)
uTidylib (0.2)
webencodings (0.5)
WTForms (2.1)
xhtml2pdf (0.0.6)
xmltodict (0.10.2)
zope.interface (4.1.3)
