darknessomi / musicbox

网易云音乐命令行版本
MIT License
9.81k stars 1.58k forks source link

error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 #540

Open ccxxccxxy opened 7 years ago

ccxxccxxy commented 7 years ago

$sudo python setup.py install

running install running bdist_egg running egg_info creating NetEase_MusicBox.egg-info writing requirements to NetEase_MusicBox.egg-info/requires.txt writing NetEase_MusicBox.egg-info/PKG-INFO writing top-level names to NetEase_MusicBox.egg-info/top_level.txt writing dependency_links to NetEase_MusicBox.egg-info/dependency_links.txt writing entry points to NetEase_MusicBox.egg-info/entry_points.txt writing manifest file 'NetEase_MusicBox.egg-info/SOURCES.txt' reading manifest file 'NetEase_MusicBox.egg-info/SOURCES.txt' writing manifest file 'NetEase_MusicBox.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/api.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/scrollstring.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/logger.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/terminalsize.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/player.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/const.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/osdlyrics.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/menu.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/storage.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/singleton.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/init.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/config.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/cache.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/utils.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/ui.py -> build/lib.linux-x86_64-2.7/NEMbox creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/api.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/scrollstring.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/logger.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/terminalsize.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/player.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/const.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/osdlyrics.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/menu.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/storage.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/singleton.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/init.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/config.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/cache.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/utils.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/ui.py -> build/bdist.linux-x86_64/egg/NEMbox byte-compiling build/bdist.linux-x86_64/egg/NEMbox/api.py to api.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/scrollstring.py to scrollstring.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/logger.py to logger.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/terminalsize.py to terminalsize.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/player.py to player.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/const.py to const.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/osdlyrics.py to osdlyrics.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/menu.py to menu.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/storage.py to storage.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/singleton.py to singleton.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/config.py to config.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/cache.py to cache.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/utils.py to utils.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/ui.py to ui.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist/NetEase_MusicBox-0.2.4.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing NetEase_MusicBox-0.2.4.0-py2.7.egg Copying NetEase_MusicBox-0.2.4.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages Adding NetEase-MusicBox 0.2.4.0 to easy-install.pth file Installing musicbox script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/NetEase_MusicBox-0.2.4.0-py2.7.egg Processing dependencies for NetEase-MusicBox==0.2.4.0 Searching for future Reading https://pypi.python.org/simple/future/ Best match: future 0.16.0 Downloading https://pypi.python.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz#md5=3e8e88a2bda48d54b1da7634d04760d7 Processing future-0.16.0.tar.gz Writing /tmp/easy_install-dm4zR7/future-0.16.0/setup.cfg Running future-0.16.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dm4zR7/future-0.16.0/egg-dist-tmp-a7_JNz warning: no files found matching '.au' under directory 'tests' warning: no files found matching '.gif' under directory 'tests' warning: no files found matching '*.txt' under directory 'tests' zip_safe flag not set; analyzing archive contents... past.builtins.misc: module MAY be using inspect.stack past.translation.init: module references file past.translation.init: module references path future.standard_library.init: module references file future.standard_library.init: module references path future.backports.test.ssl_servers: module references file future.backports.test.support: module references file future.utils.init: module MAY be using inspect.stack Adding future 0.16.0 to easy-install.pth file Installing pasteurize script to /usr/local/bin Installing futurize script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/future-0.16.0-py2.7.egg Searching for pycrypto Reading https://pypi.python.org/simple/pycrypto/ Best match: pycrypto 2.6.1 Downloading https://pypi.python.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz#md5=55a61a054aa66812daf5161a0d5d7eda Processing pycrypto-2.6.1.tar.gz Writing /tmp/easy_install-FjJKBh/pycrypto-2.6.1/setup.cfg Running pycrypto-2.6.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-FjJKBh/pycrypto-2.6.1/egg-dist-tmp-rfXBVD warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath. src/MD2.c:31:20: fatal error: Python.h: 没有那个文件或目录

include "Python.h"

                ^

compilation terminated. error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

kigawas commented 7 years ago

包管理器安装python-devel类似名字的包

2017年5月6日(土) 20:52 ccxxccxxy notifications@github.com:

$sudo python setup.py install

running install running bdist_egg running egg_info creating NetEase_MusicBox.egg-info writing requirements to NetEase_MusicBox.egg-info/requires.txt writing NetEase_MusicBox.egg-info/PKG-INFO writing top-level names to NetEase_MusicBox.egg-info/top_level.txt writing dependency_links to NetEase_MusicBox.egg-info/dependency_links.txt writing entry points to NetEase_MusicBox.egg-info/entry_points.txt writing manifest file 'NetEase_MusicBox.egg-info/SOURCES.txt' reading manifest file 'NetEase_MusicBox.egg-info/SOURCES.txt' writing manifest file 'NetEase_MusicBox.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/api.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/scrollstring.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/logger.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/terminalsize.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/player.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/const.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/osdlyrics.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/menu.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/storage.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/singleton.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/init.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/config.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/cache.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/utils.py -> build/lib.linux-x86_64-2.7/NEMbox copying NEMbox/ui.py -> build/lib.linux-x86_64-2.7/NEMbox creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/api.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/scrollstring.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/logger.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/terminalsize.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/player.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/const.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/osdlyrics.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/menu.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/storage.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/singleton.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/init.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/config.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/cache.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/utils.py -> build/bdist.linux-x86_64/egg/NEMbox copying build/lib.linux-x86_64-2.7/NEMbox/ui.py -> build/bdist.linux-x86_64/egg/NEMbox byte-compiling build/bdist.linux-x86_64/egg/NEMbox/api.py to api.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/scrollstring.py to scrollstring.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/logger.py to logger.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/terminalsize.py to terminalsize.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/player.py to player.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/const.py to const.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/osdlyrics.py to osdlyrics.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/menu.py to menu.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/storage.py to storage.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/singleton.py to singleton.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/config.py to config.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/cache.py to cache.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/utils.py to utils.pyc byte-compiling build/bdist.linux-x86_64/egg/NEMbox/ui.py to ui.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying NetEase_MusicBox.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist/NetEase_MusicBox-0.2.4.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing NetEase_MusicBox-0.2.4.0-py2.7.egg Copying NetEase_MusicBox-0.2.4.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages Adding NetEase-MusicBox 0.2.4.0 to easy-install.pth file Installing musicbox script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/NetEase_MusicBox-0.2.4.0-py2.7.egg Processing dependencies for NetEase-MusicBox==0.2.4.0 Searching for future Reading https://pypi.python.org/simple/future/ Best match: future 0.16.0 Downloading https://pypi.python.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz#md5=3e8e88a2bda48d54b1da7634d04760d7 Processing future-0.16.0.tar.gz Writing /tmp/easy_install-dm4zR7/future-0.16.0/setup.cfg Running future-0.16.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dm4zR7/future-0.16.0/egg-dist-tmp-a7_JNz warning: no files found matching ' .au' under directory 'tests' warning: no files found matching '.gif' under directory 'tests' warning: no files found matching '.txt' under directory 'tests' zip_safe flag not set; analyzing archive contents... past.builtins.misc: module MAY be using inspect.stack past.translation.init: module references file past.translation.init: module references path future.standard_library.init: module references file future.standard_library.init: module references path future.backports.test.ssl_servers: module references file future.backports.test.support: module references file future.utils.init*: module MAY be using inspect.stack Adding future 0.16.0 to easy-install.pth file Installing pasteurize script to /usr/local/bin Installing futurize script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/future-0.16.0-py2.7.egg Searching for pycrypto Reading https://pypi.python.org/simple/pycrypto/ Best match: pycrypto 2.6.1 Downloading https://pypi.python.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz#md5=55a61a054aa66812daf5161a0d5d7eda Processing pycrypto-2.6.1.tar.gz Writing /tmp/easy_install-FjJKBh/pycrypto-2.6.1/setup.cfg Running pycrypto-2.6.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-FjJKBh/pycrypto-2.6.1/egg-dist-tmp-rfXBVD warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath. src/MD2.c:31:20: fatal error: Python.h: 没有那个文件或目录

include "Python.h"

^ compilation terminated. error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/darknessomi/musicbox/issues/540, or mute the thread https://github.com/notifications/unsubscribe-auth/AD_RStH29gE87owDiCYwphM_V9G_vKTrks5r3G0FgaJpZM4NSv__ .