python - Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 while Installing PyNaCl -
i'm trying install pynacl on ubuntu 16.04 , i'm getting error on title; whole traceback:
collecting pynacl using cached pynacl-1.0.1.tar.gz complete output command python setup.py egg_info: package libffi not found in pkg-config search path. perhaps should add directory containing `libffi.pc' pkg_config_path environment variable no package 'libffi' found package libffi not found in pkg-config search path. perhaps should add directory containing `libffi.pc' pkg_config_path environment variable no package 'libffi' found package libffi not found in pkg-config search path. perhaps should add directory containing `libffi.pc' pkg_config_path environment variable no package 'libffi' found package libffi not found in pkg-config search path. perhaps should add directory containing `libffi.pc' pkg_config_path environment variable no package 'libffi' found package libffi not found in pkg-config search path. perhaps should add directory containing `libffi.pc' pkg_config_path environment variable no package 'libffi' found warning: build_py: byte-compiling disabled, skipping. c/_cffi_backend.c:15:17: fatal error: ffi.h: no such file or directory compilation terminated. traceback (most recent call last): file "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile extra_postargs) file "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) file "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) file "/usr/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.distutilsexecerror: command 'x86_64-linux-gnu-gcc' failed exit status 1 during handling of above exception, exception occurred: traceback (most recent call last): file "/usr/lib/python3.5/distutils/core.py", line 148, in setup dist.run_commands() file "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands self.run_command(cmd) file "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/bdist_egg.py", line 161, in run cmd = self.call_command('install_lib', warn_dir=0) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/bdist_egg.py", line 147, in call_command self.run_command(cmdname) file "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) file "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/install_lib.py", line 11, in run self.build() file "/usr/lib/python3.5/distutils/command/install_lib.py", line 109, in build self.run_command('build_ext') file "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) file "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/build_ext.py", line 75, in run _build_ext.run(self) file "/usr/lib/python3.5/distutils/command/build_ext.py", line 338, in run self.build_extensions() file "/usr/lib/python3.5/distutils/command/build_ext.py", line 447, in build_extensions self._build_extensions_serial() file "/usr/lib/python3.5/distutils/command/build_ext.py", line 472, in _build_extensions_serial self.build_extension(ext) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/build_ext.py", line 196, in build_extension _build_ext.build_extension(self, ext) file "/usr/lib/python3.5/distutils/command/build_ext.py", line 532, in build_extension depends=ext.depends) file "/usr/lib/python3.5/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) file "/usr/lib/python3.5/distutils/unixccompiler.py", line 120, in _compile raise compileerror(msg) distutils.errors.compileerror: command 'x86_64-linux-gnu-gcc' failed exit status 1 during handling of above exception, exception occurred: traceback (most recent call last): file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 157, in save_modules yield saved file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 198, in setup_context yield file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 248, in run_setup directorysandbox(setup_dir).run(runner) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 278, in run return func() file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 246, in runner _execfile(setup_script, ns) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 47, in _execfile exec(code, globals, locals) file "/tmp/easy_install-ek_ikn33/cffi-1.8.3/setup.py", line 193, in <module> subprocess.check_call(["make", "check"], cwd=build_temp) file "/usr/lib/python3.5/distutils/core.py", line 163, in setup raise systemexit("error: " + str(msg)) systemexit: error: command 'x86_64-linux-gnu-gcc' failed exit status 1 during handling of above exception, exception occurred: traceback (most recent call last): file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1101, in run_setup run_setup(setup_script, args) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 251, in run_setup raise file "/usr/lib/python3.5/contextlib.py", line 77, in __exit__ self.gen.throw(type, value, traceback) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 198, in setup_context yield file "/usr/lib/python3.5/contextlib.py", line 77, in __exit__ self.gen.throw(type, value, traceback) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 169, in save_modules saved_exc.resume() file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 144, in resume six.reraise(type, exc, self._tb) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/pkg_resources/_vendor/six.py", line 685, in reraise raise value.with_traceback(tb) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 157, in save_modules yield saved file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 198, in setup_context yield file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 248, in run_setup directorysandbox(setup_dir).run(runner) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 278, in run return func() file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 246, in runner _execfile(setup_script, ns) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/sandbox.py", line 47, in _execfile exec(code, globals, locals) file "/tmp/easy_install-ek_ikn33/cffi-1.8.3/setup.py", line 193, in <module> subprocess.check_call(["make", "check"], cwd=build_temp) file "/usr/lib/python3.5/distutils/core.py", line 163, in setup raise systemexit("error: " + str(msg)) systemexit: error: command 'x86_64-linux-gnu-gcc' failed exit status 1 during handling of above exception, exception occurred: traceback (most recent call last): file "<string>", line 1, in <module> file "/tmp/pycharm-packaging/pynacl/setup.py", line 259, in <module> "programming language :: python :: 3.5", file "/usr/lib/python3.5/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/dist.py", line 315, in __init__ self.fetch_build_eggs(attrs['setup_requires']) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs replace_conflicting=true, file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 826, in resolve dist = best[req.key] = env.best_match(req, ws, installer) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1092, in best_match return self.obtain(req, installer) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1104, in obtain return installer(requirement) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/dist.py", line 429, in fetch_build_egg return cmd.easy_install(req) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 665, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 695, in install_item dists = self.install_eggs(spec, download, tmpdir) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 876, in install_eggs return self.build_and_install(setup_script, setup_base) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1115, in build_and_install self.run_setup(setup_script, setup_base, args) file "/home/miguel/pycharmprojects/crossed/crossedenv/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1103, in run_setup raise distutilserror("setup script exited %s" % (v.args[0],)) distutils.errors.distutilserror: setup script exited error: command 'x86_64-linux-gnu-gcc' failed exit status 1 ---------------------------------------- command "python setup.py egg_info" failed error code 1 in /tmp/pycharm-packaging/pynacl/
i searched workarounds worked other people they're oter packages , didn't work me. help.
looks missing cffi, has couple of dependencies. according this need install couple of dependencies, python-dev , libffi-dev.
Comments
Post a Comment