root@iZbp1berl2oy3e3vt5476fZ:/mnt# pip install -r requirements.txt
Downloading/unpacking certifi==2018.4.16 (from -r requirements.txt (line 1))
http://mirrors.aliyun.com/pypi/simple/certifi/2018.4.16 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/certifi/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading certifi-2018.4.16-py2.py3-none-any.whl (150kB): 150kB downloaded
Downloading/unpacking chardet==3.0.4 (from -r requirements.txt (line 2))
http://mirrors.aliyun.com/pypi/simple/chardet/3.0.4 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/chardet/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB): 133kB downloaded
Downloading/unpacking diff-match-patch==20121119 (from -r requirements.txt (line 3))
http://mirrors.aliyun.com/pypi/simple/diff-match-patch/20121119 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/diff-match-patch/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading diff-match-patch-20121119.tar.gz (54kB): 54kB downloaded
Running setup.py (path:/tmp/pip_build_root/diff-match-patch/setup.py) egg_info for package diff-match-patch
Downloading/unpacking Django==1.9 (from -r requirements.txt (line 4))
http://mirrors.aliyun.com/pypi/simple/Django/1.9 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/Django/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading Django-1.9-py2.py3-none-any.whl (6.6MB): 6.6MB downloaded
Downloading/unpacking django-crispy-forms==1.7.2 (from -r requirements.txt (line 5))
http://mirrors.aliyun.com/pypi/simple/django-crispy-forms/1.7.2 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/django-crispy-forms/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading django_crispy_forms-1.7.2-py2.py3-none-any.whl (105kB): 3% 4.1k Downloading django_crispy_forms-1.7.2-py2.py3-none-any.whl (105kB): 7% 8.2k Downloading django_crispy_forms-1.7.2-py2.py3-none-any.whl (105kB): 11% 12kB Downloading django_crispy_forms-1.7.2-py2.py3-none-any.whl (105kB): 96% 102k Downloading django_crispy_forms-1.7.2-py2.py3-none-any.whl (105kB): 100% 105k Downloading django_crispy_forms-1.7.2-py2.py3-none-any.whl (105kB): Downloading django_crispy_forms-1.7.2-py2.py3-none-any.whl (105kB): 105kB downloaded
Downloading/unpacking django-formtools==2.1 (from -r requirements.txt (line 6))
http://mirrors.aliyun.com/pypi/simple/django-formtools/2.1 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/django-formtools/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading django_formtools-2.1-py2.py3-none-any.whl (132kB): 132kB downloaded
Downloading/unpacking django-import-export==1.0.1 (from -r requirements.txt (line 7))
http://mirrors.aliyun.com/pypi/simple/django-import-export/1.0.1 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/django-import-export/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading django_import_export-1.0.1-py2.py3-none-any.whl (71kB): 5% 4.1k Downloading django_import_export-1.0.1-py2.py3-none-any.whl (71kB): 11% 8.2k Downloading django_import_export-1.0.1-py2.py3-none-any.whl (71kB): 17% 12kB Downloading django_import_export-1.0.1-py2.py3-none-any.whl (71kB): 71kB downloaded
Downloading/unpacking django-pure-pagination==0.3.0 (from -r requirements.txt (line 8))
http://mirrors.aliyun.com/pypi/simple/django-pure-pagination/0.3.0 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/django-pure-pagination/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading django-pure-pagination-0.3.0.tar.gz
Running setup.py (path:/tmp/pip_build_root/django-pure-pagination/setup.py) egg_info for package django-pure-pagination
warning: no files found matching '*' under directory 'example_project/example_project/templates'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
Downloading/unpacking django-simple-captcha==0.4.6 (from -r requirements.txt (line 9))
http://mirrors.aliyun.com/pypi/simple/django-simple-captcha/0.4.6 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/django-simple-captcha/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 4% 4.1 Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 9% 8.2 Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 14% 12k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 18% 16k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 23% 20k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 28% 24k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 32% 28k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 37% 32k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 42% 36k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 47% 40k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 51% 45k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 56% 49k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 61% 53k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 65% 57k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 70% 61k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 75% 65k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 80% 69k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 84% 73k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 89% 77k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 94% 81k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 98% 86k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 100% 86k Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): Downloading django_simple_captcha-0.4.6-py2.py3-none-any.whl (86kB): 86kB downloaded
Downloading/unpacking DjangoUeditor==1.8.143 (from -r requirements.txt (line 10))
http://mirrors.aliyun.com/pypi/simple/DjangoUeditor/1.8.143 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/DjangoUeditor/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading DjangoUeditor-1.8.143.zip (3.4MB): 3.4MB downloaded
Running setup.py (path:/tmp/pip_build_root/DjangoUeditor/setup.py) egg_info for package DjangoUeditor
Downloading/unpacking et-xmlfile==1.0.1 (from -r requirements.txt (line 11))
http://mirrors.aliyun.com/pypi/simple/et-xmlfile/1.0.1 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/et-xmlfile/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading et_xmlfile-1.0.1.tar.gz
Running setup.py (path:/tmp/pip_build_root/et-xmlfile/setup.py) egg_info for package et-xmlfile
Downloading/unpacking future==0.16.0 (from -r requirements.txt (line 12))
http://mirrors.aliyun.com/pypi/simple/future/0.16.0 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/future/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading future-0.16.0.tar.gz (824kB): 824kB downloaded
Running setup.py (path:/tmp/pip_build_root/future/setup.py) egg_info for package future
warning: no files found matching '*.au' under directory 'tests'
warning: no files found matching '*.gif' under directory 'tests'
warning: no files found matching '*.txt' under directory 'tests'
Downloading/unpacking httplib2==0.9.2 (from -r requirements.txt (line 13))
http://mirrors.aliyun.com/pypi/simple/httplib2/0.9.2 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/httplib2/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading httplib2-0.9.2.zip (210kB): 210kB downloaded
Running setup.py (path:/tmp/pip_build_root/httplib2/setup.py) egg_info for package httplib2
Downloading/unpacking idna==2.6 (from -r requirements.txt (line 14))
http://mirrors.aliyun.com/pypi/simple/idna/2.6 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/idna/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading idna-2.6-py2.py3-none-any.whl (56kB): 56kB downloaded
Downloading/unpacking jdcal==1.4 (from -r requirements.txt (line 15))
http://mirrors.aliyun.com/pypi/simple/jdcal/1.4 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/jdcal/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading jdcal-1.4-py2.py3-none-any.whl
Downloading/unpacking MySQL-python==1.2.5 (from -r requirements.txt (line 16))
http://mirrors.aliyun.com/pypi/simple/MySQL-python/1.2.5 uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
http://mirrors.aliyun.com/pypi/simple/MySQL-python/ uses an insecure transport scheme (http). Consider using https if mirrors.aliyun.com has it available
Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
Running setup.py (path:/tmp/pip_build_root/MySQL-python/setup.py) egg_info for package MySQL-python
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/MySQL-python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/MySQL-python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/MySQL-python
Storing debug log for failure in /root/.pip/pip.log
百度一下
EnvironmentError: mysql_config not found
只要原因是没有安装:libmysqlclient-dev
sudo apt-get install libmysqlclient-dev
sudo apt-get install libxml2-dev libxslt1-dev python-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libevent-dev
sudo pip install lxml
中途执行pip install lxml可能遇到识别不正确的情况,需要apt-get update一下方可继续