龙卷风安装问题

时间:2014-06-05 17:18:24

标签: python tornado

我正在尝试安装龙卷风(pip install tornado)并收到以下错误...

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_username/tornado/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-TLunUn-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_username/tornado
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 62: ordinal not in range(128)

我无法在龙卷风问题的背景下找到任何可以解释的内容......如果有人有任何想法会很棒

1 个答案:

答案 0 :(得分:2)

我在安装其他程序时遇到了同样的问题。这不是解码问题,而是许可问题。请尝试以下方法:

    pip install --user tornado

我希望这也适合你。