-
Notifications
You must be signed in to change notification settings - Fork 4.8k
issue of pip install fasttext #1075
Description
In command line, I input :
pip install fasttext
show following error:
Collecting fasttext
_Downloading https://files.pythonhosted.org/packages/f8/85/e2b368ab6d3528827b147fdb814f8189acc981a4bc2f99ab894650e05c40/fasttext-0.9.2.tar.gz (68kB)
100% |████████████████████████████████| 71kB 331kB/s
Complete output from command python setup.py egg_info:
Collecting pybind11
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f64faa6d6a0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pybind11/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f64faa6d7b8>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pybind11/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f64faa6d898>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pybind11/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f64faa6d978>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pybind11/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f64faa6da20>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pybind11/
Could not find a version that satisfies the requirement pybind11 (from versions: )
No matching distribution found for pybind11
Traceback (most recent call last):
File "/tmp/pip-build-gx0dlpvh/fasttext/setup.py", line 38, in init
import pybind11
ModuleNotFoundError: No module named 'pybind11'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-gx0dlpvh/fasttext/setup.py", line 72, in <module>
get_pybind_include(),
File "/tmp/pip-build-gx0dlpvh/fasttext/setup.py", line 41, in __init__
raise RuntimeError('pybind11 install failed.')
RuntimeError: pybind11 install failed._
So, I installed pybind11 first
pip install pybind11
and, installed fasttext, it worked.
Installing collected packages: pybind11, setuptools, numpy, fasttext
Successfully installed fasttext-0.9.2 numpy-1.18.4 pybind11-2.5.0 setuptools-46.4.0