Ubuntu(VirtualBox)でKivyを入れようと思い
Cythonを入れようとしたところエラーになりました
$ sudo -H pip install cython==0.21 Collecting cython==0.21 Using cached Cython-0.21.tar.gz (1.5 MB) Could not build wheels for cython, since package 'wheel' is not installed. Installing collected packages: cython Running setup.py install for cython ... error ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2mao7mgx/cython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2mao7mgx/cython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qt2eicue/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/cython cwd: /tmp/pip-install-2mao7mgx/cython/ Complete output (482 lines): : /tmp/pip-install-2mao7mgx/cython/Cython/Compiler/Scanning.c:15396:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’ tstate->exc_traceback = *tb; ^ error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/local/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2mao7mgx/cython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2mao7mgx/cython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qt2eicue/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/cython Check the logs for full command output. WARNING: You are using pip version 20.1; however, version 20.1.1 is available. You should consider upgrading via the '/usr/local/bin/python3.8 -m pip install --upgrade pip' command.
エラーの行数が多いので省略してあります。
Ubuntuのバージョン:"16.04.6 LTS (Xenial Xerus)"
gccのバージョン:5.4.0 20160609
setuptoolsのバージョン:44.1.0
pipのバージョン:20.1.1
参考 +etc
- pipのアップデート
- setuptoolsのアップデート
- python-devのインストール
をしましたが直りませんでした
$ which gcc /usr/bin/gcc
gccの場所も問題ないように思え、gcc --version
もできるのですが
何がおかしいのでしょうか?