error: command 'gcc' failed with exit status 1

    SystemExit: error: command 'gcc' failed with exit status 1

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-b5b9t38y/pynacl/setup.py", line 255, in <module>
        "Programming Language :: Python :: 3.7",
      File "/usr/local/python3/lib/python3.6/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/setuptools/dist.py", line 269, in __init__
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/setuptools/dist.py", line 313, in fetch_build_eggs
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/pkg_resources/__init__.py", line 828, in resolve
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/pkg_resources/__init__.py", line 1073, in best_match
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/pkg_resources/__init__.py", line 1085, in obtain
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/setuptools/dist.py", line 380, in fetch_build_egg
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/setuptools/command/easy_install.py", line 640, in easy_install
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/setuptools/command/easy_install.py", line 670, in install_item
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/setuptools/command/easy_install.py", line 853, in install_eggs
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/setuptools/command/easy_install.py", line 1081, in build_and_install
      File "/usr/local/python3/lib/python3.6/site-packages/setuptools-19.6-py3.6.egg/setuptools/command/easy_install.py", line 1069, in run_setup
    distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
  • yum install libxslt-devel libffi-devel python-devel openssl-devel

参考:Linux 安装python3

posted @ 2018-12-14 09:40  MAU  阅读(3640)  评论(0编辑  收藏  举报