我尝试使用pip install -r requirements.txt
在服务器目录中安装requirements liveblog。
这会抛出错误belog。我也试过用sudo -H pip install -r requirements.txt
运行它,但它仍然给我同样的错误。
我更新了setuptools:sudo easy_install -U setuptools
,pip在9.0.3。
这是日志:
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-z6ewX7/websockets/
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 324, in run
requirement_set.prepare_files(finder)
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 634, in _prepare_file
abstract_dist.prep_for_dist()
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 129, in prep_for_dist
self.req_to_install.run_egg_info()
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 439, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/local/lib/python2.7/dist-packages/pip/utils/__init__.py", line 707, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-z6ewX7/websockets/
我在服务器上运行ubuntu 16.04。
到目前为止,我发现错误来自this line in the setup.py file。
是否与我的服务器设置有关或我可以尝试解决错误?