Summary
Unfortunately the setup process has started to fail. Unsure what the cause of this is, it could to do with how setup.py
imports pybind11.
System
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Name: pip
Version: 10.0.1
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
$ pip install git+https://github.com/pybind/python_example
Collecting git+https://github.com/pybind/python_example
Cloning https://github.com/pybind/python_example to /tmp/pip-req-build-_2f417pj
Collecting pybind11>=2.2 (from python-example==0.0.1)
Using cached https://files.pythonhosted.org/packages/12/90/0f92a575dc60c8fba6d0c91d6b45abdb1058da9ebed40400cbcfad2ac0a7/pybind11-2.2.3-py2.py3-none-any.whl
Building wheels for collected packages: python-example
Running setup.py bdist_wheel for python-example … error
Complete output from command /home/dom/env/bin/python3 -u -c «import setuptools, tokenize;file=’/tmp/pip-req-build-_2f417pj/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» bdist_wheel -d /tmp/pip-wheel-f4j10o78 —python-tag cp36:
running bdist_wheel
running build
running build_ext
creating tmp
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/home/dom/env/include/python3.6m -c /tmp/tmpfcwb_k_e.cpp -o tmp/tmpfcwb_k_e.o -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/home/dom/env/include/python3.6m -c /tmp/tmpggfsh938.cpp -o tmp/tmpggfsh938.o -fvisibility=hidden
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
building ‘python_example’ extension
Traceback (most recent call last):
File «», line 1, in
File «/tmp/pip-req-build-_2f417pj/setup.py», line 103, in
zip_safe=False,
File «/home/dom/env/lib/python3.6/site-packages/setuptools/init.py», line 129, in setup
return distutils.core.setup(**attrs)
File «/usr/lib/python3.6/distutils/core.py», line 148, in setup
dist.run_commands()
File «/usr/lib/python3.6/distutils/dist.py», line 955, in run_commands
self.run_command(cmd)
File «/usr/lib/python3.6/distutils/dist.py», line 974, in run_command
cmd_obj.run()
File «/home/dom/env/lib/python3.6/site-packages/wheel/bdist_wheel.py», line 202, in run
self.run_command(‘build’)
File «/usr/lib/python3.6/distutils/cmd.py», line 313, in run_command
self.distribution.run_command(command)
File «/usr/lib/python3.6/distutils/dist.py», line 974, in run_command
cmd_obj.run()
File «/usr/lib/python3.6/distutils/command/build.py», line 135, in run
self.run_command(cmd_name)
File «/usr/lib/python3.6/distutils/cmd.py», line 313, in run_command
self.distribution.run_command(command)
File «/usr/lib/python3.6/distutils/dist.py», line 974, in run_command
cmd_obj.run()
File «/home/dom/env/lib/python3.6/site-packages/setuptools/command/build_ext.py», line 78, in run
_build_ext.run(self)
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 339, in run
self.build_extensions()
File «/tmp/pip-req-build-_2f417pj/setup.py», line 90, in build_extensions
build_ext.build_extensions(self)
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 448, in build_extensions
self._build_extensions_serial()
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 473, in _build_extensions_serial
self.build_extension(ext)
File «/home/dom/env/lib/python3.6/site-packages/setuptools/command/build_ext.py», line 199, in build_extension
_build_ext.build_extension(self, ext)
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 533, in build_extension
depends=ext.depends)
File «/usr/lib/python3.6/distutils/ccompiler.py», line 566, in compile
depends, extra_postargs)
File «/usr/lib/python3.6/distutils/ccompiler.py», line 341, in _setup_compile
pp_opts = gen_preprocess_options(macros, incdirs)
File «/usr/lib/python3.6/distutils/ccompiler.py», line 1075, in gen_preprocess_options
pp_opts.append(«-I%s» % dir)
File «/tmp/pip-req-build-_2f417pj/setup.py», line 20, in str
import pybind11
ModuleNotFoundError: No module named ‘pybind11’
Failed building wheel for python-example
Running setup.py clean for python-example
Failed to build python-example
Installing collected packages: pybind11, python-example
Running setup.py install for python-example … done
Successfully installed pybind11-2.2.3 python-example-0.0.1
pip3 install pybind11
Git clone and follow the 4 steps there to build the test https://pybind11.readthedocs.io/en/stable/basics.html (need to replace cmake step by cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 ..» or it uses python3.8
Then following «Creating bindings for a simple function»
c++ -O3 -Wall -shared -std=c++11 -fPIC
python3 -m pybind11 --includes
example.cpp -o examplepython3-config --extension-suffix
g++: error: .cpython-37m-x86_64-linux-gnu.so: No such file or directory
this file is actually the output of python3-config —extension-suffix, later I learn this is a file that will be built, and I was actually adding a bad space in the command above (after example..)
But then I get a pybind/pybind.h not found error.. I give the include folder directly.. then python.h is not found.. so I give it directly again)
g++ -O3 -Wall -shared -std=c++11 -fPIC -I/usr/include/python3.7m -I ../pybind11/build/mock_install/include example.cpp -o example(python3-config --extension-suffix)
This works, and outputs 3. I then tried to use cmake (because at first I forgot the space in the c++ command)
Okay, w/e I then try the cmake way using their cmake.list : missinghttps://pybind11.readthedocs.io/en/stable/compiling.html
result of cmake .
Could not find a package configuration file provided by "pybind11" with any
of the following names:
pybind11Config.cmake
pybind11-config.cmake
Well okay, I don’t know cmake works, I found where those files are, I add
set(pybind11_DIR {pybind_git_clone_dir}/pybind11/build/mock_install/share/cmake/pybind11)
result of make (after cmake .):
fatal error: Python.h: No such file or directory
112 | #include <Python.h>
| ^~~~~~~~
Okay I let’s force it to use the right python again..
python3 example.py
3
Yay. You noticed there is no question, I just thought of the last steps while writing this. So I figured why not post it.
So my question is : why is this so complicated? Did I miss the correct way to install this thing?
Seems like g++ doesn’t know where my python headers are even though I installed python3-dev (debian here), cmake has to be force fed the cmakelists and always choose the wrong python version…
Edit : Just noticed they didn’t mention you have to do «make install» in the «first steps»… They only mention it on the compiling page. This solves the pybind.h and pybind cmake files errors, still need to give the python version to cmake or the python headers to g++.
Hi, i’ve run pip3 install —user dostoevsky
and got the bunch of errors:
Installing collected packages: pybind11
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python3.6/dist-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/usr/local/lib/python3.6/dist-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/usr/local/lib/python3.6/dist-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/usr/local/lib/python3.6/dist-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/usr/local/lib/python3.6/dist-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/local/lib/python3.6/dist-packages/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/usr/local/lib/python3.6/dist-packages/pip/utils/__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/pybind11'
Traceback (most recent call last):
import pybind11
File "/tmp/pip-build-v13qqonj/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-v13qqonj/fasttext/setup.py", line 72, in <module>
get_pybind_include(),
File "/tmp/pip-build-v13qqonj/fasttext/setup.py", line 41, in __init__
raise RuntimeError('pybind11 install failed.')
RuntimeError: pybind11 install failed.
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-v13qqonj/fasttext/
How can i install this lib?
thanks
Install error: ModuleNotFoundError: No module named ‘pybind11.setup_helpers’ #159
Comments
fzeiser commented Nov 18, 2020
When tying to installing ompy at ba02e83 I get following error:
Will check this, but I assume it’s about the pybind version.
The text was updated successfully, but these errors were encountered:
vetlewi commented Nov 18, 2020
Do you have PyBind11 installed? (pip install pybind11)
fzeiser commented Nov 18, 2020 •
Yes, but as I assumed it was the pybind11 version. setup_helpers is part of the package since 2.6.0, see https://github.com/pybind/pybind11/blob/master/docs/changelog.rst
(I had pybind 2.4.*)
Will fix the requirements file.
fzeiser commented Nov 18, 2020 •
So I’ll fix it in the requirements, but the error message can still come up, because pip reads the setup file before it knows about the requirements. Anyhow, it should be easy enough for people to figure out — at least with this thread here.
Alternatively, one could add a couple of try import . and version checks, but that seems a little too much.
vetlewi commented Nov 18, 2020
So I’ll fix it in the requirements, but the error message can still come up, because pip reads the setup file before it knows about the requirements. Anyhow, it should be easy enough for people to figure out — at least with this thread here.
Alternatively, one could add a couple of try import . and version checks, but that seems a little too much.
Or maybe add a note on prerequisites in the readme? pip install -e . or pip install . will fail if either numpy , cython or pybind11 isn’t installed.
Prerequisites
Before installing the OMpy package the following dependencies needs to be installed BEFORE OMpy:
- Numpy : pip install numpy
- Cython : pip install cython
- pybind11 : pip install pybind11
Common errors
I get error ModuleNotFoundError: No module named ‘pybind11.setup_helpers’
Источник
Install fails: No module named ‘pybind11’ #32
Comments
DomHudson commented May 7, 2018
Summary
Unfortunately the setup process has started to fail. Unsure what the cause of this is, it could to do with how setup.py imports pybind11.
System
Collecting git+https://github.com/pybind/python_example
Cloning https://github.com/pybind/python_example to /tmp/pip-req-build-_2f417pj
Collecting pybind11>=2.2 (from python-example==0.0.1)
Using cached https://files.pythonhosted.org/packages/12/90/0f92a575dc60c8fba6d0c91d6b45abdb1058da9ebed40400cbcfad2ac0a7/pybind11-2.2.3-py2.py3-none-any.whl
Building wheels for collected packages: python-example
Running setup.py bdist_wheel for python-example . error
Complete output from command /home/dom/env/bin/python3 -u -c «import setuptools, tokenize;file=’/tmp/pip-req-build-_2f417pj/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» bdist_wheel -d /tmp/pip-wheel-f4j10o78 —python-tag cp36:
running bdist_wheel
running build
running build_ext
creating tmp
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/home/dom/env/include/python3.6m -c /tmp/tmpfcwb_k_e.cpp -o tmp/tmpfcwb_k_e.o -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/home/dom/env/include/python3.6m -c /tmp/tmpggfsh938.cpp -o tmp/tmpggfsh938.o -fvisibility=hidden
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
building ‘python_example’ extension
Traceback (most recent call last):
File «», line 1, in
File «/tmp/pip-req-build-_2f417pj/setup.py», line 103, in
zip_safe=False,
File «/home/dom/env/lib/python3.6/site-packages/setuptools/init.py», line 129, in setup
return distutils.core.setup(**attrs)
File «/usr/lib/python3.6/distutils/core.py», line 148, in setup
dist.run_commands()
File «/usr/lib/python3.6/distutils/dist.py», line 955, in run_commands
self.run_command(cmd)
File «/usr/lib/python3.6/distutils/dist.py», line 974, in run_command
cmd_obj.run()
File «/home/dom/env/lib/python3.6/site-packages/wheel/bdist_wheel.py», line 202, in run
self.run_command(‘build’)
File «/usr/lib/python3.6/distutils/cmd.py», line 313, in run_command
self.distribution.run_command(command)
File «/usr/lib/python3.6/distutils/dist.py», line 974, in run_command
cmd_obj.run()
File «/usr/lib/python3.6/distutils/command/build.py», line 135, in run
self.run_command(cmd_name)
File «/usr/lib/python3.6/distutils/cmd.py», line 313, in run_command
self.distribution.run_command(command)
File «/usr/lib/python3.6/distutils/dist.py», line 974, in run_command
cmd_obj.run()
File «/home/dom/env/lib/python3.6/site-packages/setuptools/command/build_ext.py», line 78, in run
_build_ext.run(self)
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 339, in run
self.build_extensions()
File «/tmp/pip-req-build-_2f417pj/setup.py», line 90, in build_extensions
build_ext.build_extensions(self)
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 448, in build_extensions
self._build_extensions_serial()
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 473, in _build_extensions_serial
self.build_extension(ext)
File «/home/dom/env/lib/python3.6/site-packages/setuptools/command/build_ext.py», line 199, in build_extension
_build_ext.build_extension(self, ext)
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 533, in build_extension
depends=ext.depends)
File «/usr/lib/python3.6/distutils/ccompiler.py», line 566, in compile
depends, extra_postargs)
File «/usr/lib/python3.6/distutils/ccompiler.py», line 341, in _setup_compile
pp_opts = gen_preprocess_options(macros, incdirs)
File «/usr/lib/python3.6/distutils/ccompiler.py», line 1075, in gen_preprocess_options
pp_opts.append(«-I%s» % dir)
File «/tmp/pip-req-build-_2f417pj/setup.py», line 20, in str
import pybind11
ModuleNotFoundError: No module named ‘pybind11’
Failed building wheel for python-example
Running setup.py clean for python-example
Failed to build python-example
Installing collected packages: pybind11, python-example
Running setup.py install for python-example . done
Successfully installed pybind11-2.2.3 python-example-0.0.1
The text was updated successfully, but these errors were encountered:
Источник
issue of pip install fasttext #1075
Comments
zonghui0228 commented May 27, 2020 •
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(‘ : 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(‘ : 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(‘ : 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(‘ : 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(‘ : 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’
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
The text was updated successfully, but these errors were encountered:
Источник
Install fails: No module named ‘pybind11’ #512
Comments
DomHudson commented May 7, 2018 •
Summary
The instructions at https://github.com/facebookresearch/fastText#building-fasttext-for-python do not work for me now. Installing straight from github has the same problem:
System
Collecting git+https://github.com/facebookresearch/fastText.git
Cloning https://github.com/facebookresearch/fastText.git to /tmp/pip-req-build-ys1obm8i
Collecting pybind11>=2.2 (from fasttext==0.8.22)
Using cached https://files.pythonhosted.org/packages/12/90/0f92a575dc60c8fba6d0c91d6b45abdb1058da9ebed40400cbcfad2ac0a7/pybind11-2.2.3-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=0.7.0 in ./env/lib/python3.6/site-packages (from fasttext==0.8.22) (39.1.0)
Collecting numpy (from fasttext==0.8.22)
Using cached https://files.pythonhosted.org/packages/71/90/ca61e203e0080a8cef7ac21eca199829fa8d997f7c4da3e985b49d0a107d/numpy-1.14.3-cp36-cp36m-manylinux1_x86_64.whl
Building wheels for collected packages: fasttext
Running setup.py bdist_wheel for fasttext . error
Complete output from command /home/dom/Code/env/bin/python3 -u -c «import setuptools, tokenize;file=’/tmp/pip-req-build-ys1obm8i/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» bdist_wheel -d /tmp/pip-wheel-3tmdz6v7 —python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/fastText
copying python/fastText/FastText.py -> build/lib.linux-x86_64-3.6/fastText
copying python/fastText/init.py -> build/lib.linux-x86_64-3.6/fastText
creating build/lib.linux-x86_64-3.6/fastText/util
copying python/fastText/util/util.py -> build/lib.linux-x86_64-3.6/fastText/util
copying python/fastText/util/init.py -> build/lib.linux-x86_64-3.6/fastText/util
creating build/lib.linux-x86_64-3.6/fastText/tests
copying python/fastText/tests/test_configurations.py -> build/lib.linux-x86_64-3.6/fastText/tests
copying python/fastText/tests/test_script.py -> build/lib.linux-x86_64-3.6/fastText/tests
copying python/fastText/tests/init.py -> build/lib.linux-x86_64-3.6/fastText/tests
running build_ext
creating tmp
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/home/dom/Code/env/include/python3.6m -c /tmp/tmpop0x6itb.cpp -o tmp/tmpop0x6itb.o -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/home/dom/Code/env/include/python3.6m -c /tmp/tmp5l3sdeoy.cpp -o tmp/tmp5l3sdeoy.o -fvisibility=hidden
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
building ‘fasttext_pybind’ extension
Traceback (most recent call last):
File «», line 1, in
File «/tmp/pip-req-build-ys1obm8i/setup.py», line 175, in
zip_safe=False,
File «/home/dom/Code/env/lib/python3.6/site-packages/setuptools/init.py», line 129, in setup
return distutils.core.setup(**attrs)
File «/usr/lib/python3.6/distutils/core.py», line 148, in setup
dist.run_commands()
File «/usr/lib/python3.6/distutils/dist.py», line 955, in run_commands
self.run_command(cmd)
File «/usr/lib/python3.6/distutils/dist.py», line 974, in run_command
cmd_obj.run()
File «/home/dom/Code/env/lib/python3.6/site-packages/wheel/bdist_wheel.py», line 202, in run
self.run_command(‘build’)
File «/usr/lib/python3.6/distutils/cmd.py», line 313, in run_command
self.distribution.run_command(command)
File «/usr/lib/python3.6/distutils/dist.py», line 974, in run_command
cmd_obj.run()
File «/usr/lib/python3.6/distutils/command/build.py», line 135, in run
self.run_command(cmd_name)
File «/usr/lib/python3.6/distutils/cmd.py», line 313, in run_command
self.distribution.run_command(command)
File «/usr/lib/python3.6/distutils/dist.py», line 974, in run_command
cmd_obj.run()
File «/home/dom/Code/env/lib/python3.6/site-packages/setuptools/command/build_ext.py», line 78, in run
_build_ext.run(self)
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 339, in run
self.build_extensions()
File «/tmp/pip-req-build-ys1obm8i/setup.py», line 129, in build_extensions
build_ext.build_extensions(self)
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 448, in build_extensions
self._build_extensions_serial()
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 473, in _build_extensions_serial
self.build_extension(ext)
File «/home/dom/Code/env/lib/python3.6/site-packages/setuptools/command/build_ext.py», line 199, in build_extension
_build_ext.build_extension(self, ext)
File «/usr/lib/python3.6/distutils/command/build_ext.py», line 533, in build_extension
depends=ext.depends)
File «/usr/lib/python3.6/distutils/ccompiler.py», line 566, in compile
depends, extra_postargs)
File «/usr/lib/python3.6/distutils/ccompiler.py», line 341, in _setup_compile
pp_opts = gen_preprocess_options(macros, incdirs)
File «/usr/lib/python3.6/distutils/ccompiler.py», line 1075, in gen_preprocess_options
pp_opts.append(«-I%s» % dir)
File «/tmp/pip-req-build-ys1obm8i/setup.py», line 37, in str
import pybind11
ModuleNotFoundError: No module named ‘pybind11’
Failed building wheel for fasttext
Running setup.py clean for fasttext
Failed to build fasttext
Installing collected packages: pybind11, numpy, fasttext
Running setup.py install for fasttext . done
Successfully installed fasttext-0.8.22 numpy-1.14.3 pybind11-2.2.3
The text was updated successfully, but these errors were encountered:
Источник