Just started with this an ran into issues:
With these lines while executing pip install tornado
"Failed building wheel for tornado"
"Failed building wheel for backports.ssl-match-hostname"
What does this mean???
* complete logging *
NAS> pip install tornado
Collecting tornado
Downloading tornado-4.3.tar.gz (450kB)
100% |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 454kB 175kB/s
Collecting backports.ssl-match-hostname (from tornado)
Downloading backports.ssl_match_hostname-3.4.0.2.tar.gz
Collecting singledispatch (from tornado)
Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting certifi (from tornado)
Downloading certifi-2015.11.20.1-py2.py3-none-any.whl (368kB)
100% |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 372kB 207kB/s
Collecting backports-abc>=0.4 (from tornado)
Downloading backports_abc-0.4-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/site-packages (from singledispatch->tornado)
Building wheels for collected packages: tornado, backports.ssl-match-hostname
Running setup.py bdist_wheel for tornado
Complete output from command /usr/bin/python -c "import setuptools;file='/tmp/pip-build-jK5tDf/tornado/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmpSCFKl3pip-wheel-:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
Failed building wheel for tornado
Running setup.py bdist_wheel for backports.ssl-match-hostname
Complete output from command /usr/bin/python -c "import setuptools;file='/tmp/pip-build-jK5tDf/backports.ssl-match-hostname/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmp7MZvUzpip-wheel-:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
Failed building wheel for backports.ssl-match-hostname
Failed to build tornado backports.ssl-match-hostname
Installing collected packages: backports.ssl-match-hostname, singledispatch, certifi, backports-abc, tornado
Running setup.py install for backports.ssl-match-hostname
Running setup.py install for tornado
Successfully installed backports-abc-0.4 backports.ssl-match-hostname-3.4.0.2 certifi-2015.11.20.1 singledispatch-3.4.0.3 tornado-4.3
NAS>
pip install -U wheel
pip install tornado
"Failed building wheel" is a non-fatal error. Pip will retry without using wheels, and succeeded: "Successfully installed backports-abc-0.4... tornado-4.3". Running pip install -U wheel will fix this as @hellysmile points out, and I think upgrading to the latest version of pip will work as well.
For me nothing helps I still get this error:
pip install --upgrade tornado --user
Collecting tornado
Using cached https://files.pythonhosted.org/packages/cf/d1/3be271ae5eba9fb59df63c9891fdc7d8044b999e8ac145994cdbfd2ae66a/tornado-5.0.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 12, in <module>
from setuptools.extension import Extension
File "/usr/lib/python2.7/dist-packages/setuptools/extension.py", line 7, in <module>
from setuptools.dist import _get_unpatched
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 16, in <module>
import pkg_resources
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1479, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-klb0mk83/tornado/
That's a different error than the one that started this issue. Please create a new issue instead of commenting on a (different) closed one.
This error is all in setuptools and importlib, so I don't see anything tornado-specific here. I won't be able to help you with it.
Most helpful comment
pip install -U wheel
pip install tornado