質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

ただいまの
回答率

89.25%

ubuntuのpip install で gcc エラーになる

受付中

回答 1

投稿

  • 評価
  • クリップ 0
  • VIEW 91

groggy_egg

score 9

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もできるのですが
何がおかしいのでしょうか?

  • 気になる質問をクリップする

    クリップした質問は、後からいつでもマイページで確認できます。

    またクリップした質問に回答があった際、通知やメールを受け取ることができます。

    クリップを取り消します

  • 良い質問の評価を上げる

    以下のような質問は評価を上げましょう

    • 質問内容が明確
    • 自分も答えを知りたい
    • 質問者以外のユーザにも役立つ

    評価が高い質問は、TOPページの「注目」タブのフィードに表示されやすくなります。

    質問の評価を上げたことを取り消します

  • 評価を下げられる数の上限に達しました

    評価を下げることができません

    • 1日5回まで評価を下げられます
    • 1日に1ユーザに対して2回まで評価を下げられます

    質問の評価を下げる

    teratailでは下記のような質問を「具体的に困っていることがない質問」、「サイトポリシーに違反する質問」と定義し、推奨していません。

    • プログラミングに関係のない質問
    • やってほしいことだけを記載した丸投げの質問
    • 問題・課題が含まれていない質問
    • 意図的に内容が抹消された質問
    • 過去に投稿した質問と同じ内容の質問
    • 広告と受け取られるような投稿

    評価が下がると、TOPページの「アクティブ」「注目」タブのフィードに表示されにくくなります。

    質問の評価を下げたことを取り消します

    この機能は開放されていません

    評価を下げる条件を満たしてません

    評価を下げる理由を選択してください

    詳細な説明はこちら

    上記に当てはまらず、質問内容が明確になっていない質問には「情報の追加・修正依頼」機能からコメントをしてください。

    質問の評価を下げる機能の利用条件

    この機能を利用するためには、以下の事項を行う必要があります。

質問への追記・修正、ベストアンサー選択の依頼

  • groggy_egg

    2020/05/23 08:23

    ```
    copying Cython/Includes/Deprecated/python_complex.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_getargs.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_float.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_oldbuffer.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_exc.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_bool.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_list.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_function.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_bytes.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_cobject.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_dict.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_method.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_object.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_string.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_long.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_weakref.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_number.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_version.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/stdio.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_iterator.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_unicode.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/stdlib.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_int.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_ref.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_module.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python2.5.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_tuple.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/stl.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_pycapsule.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_buffer.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Includes/Deprecated/python_set.pxd -> build/lib.linux-x86_64-3.8/Cython/Includes/Deprecated
    copying Cython/Compiler/Parsing.pxd -> build/lib.linux-x86_64-3.8/Cython/Compiler
    copying Cython/Compiler/ParseTreeTransforms.pxd -> build/lib.linux-x86_64-3.8/Cython/Compiler
    copying Cython/Compiler/Code.pxd -> build/lib.linux-x86_64-3.8/Cython/Compiler
    copying Cython/Compiler/FlowControl.pxd -> build/lib.linux-x86_64-3.8/Cython/Compiler
    copying Cython/Compiler/Scanning.pxd -> build/lib.linux-x86_64-3.8/Cython/Compiler
    copying Cython/Compiler/Visitor.pxd -> build/lib.linux-x86_64-3.8/Cython/Compiler
    copying Cython/Runtime/refnanny.pyx -> build/lib.linux-x86_64-3.8/Cython/Runtime
    copying Cython/Plex/Actions.pxd -> build/lib.linux-x86_64-3.8/Cython/Plex
    copying Cython/Plex/Scanners.pxd -> build/lib.linux-x86_64-3.8/Cython/Plex
    copying Cython/Utility/TestCyUtilityLoader.pyx -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/CppConvert.pyx -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/TestCythonScope.pyx -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/MemoryView.pyx -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/TestUtilityLoader.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/Builtins.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/FunctionArguments.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/ExtensionTypes.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/Profile.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/StringTools.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/Capsule.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/Generator.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/Embed.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/Printing.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/TypeConversion.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/ObjectHandling.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/Exceptions.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/Buffer.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/MemoryView_C.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/CythonFunction.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/Overflow.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/CommonTypes.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/ModuleSetupCode.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/ImportExport.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/Optimize.c -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/arrayarray.h -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Utility/CppSupport.cpp -> build/lib.linux-x86_64-3.8/Cython/Utility
    copying Cython/Debugger/Tests/codefile -> build/lib.linux-x86_64-3.8/Cython/Debugger/Tests
    copying Cython/Debugger/Tests/cfuncs.c -> build/lib.linux-x86_64-3.8/Cython/Debugger/Tests
    Skipping optional fixer: buffer
    Skipping optional fixer: idioms
    Skipping optional fixer: set_literal
    Skipping optional fixer: ws_comma
    running build_ext
    cythoning /tmp/pip-install-uh571ujm/cython/Cython/Plex/Scanners.py to /tmp/pip-install-uh571ujm/cython/Cython/Plex/Scanners.c
    building 'Cython.Plex.Scanners' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/tmp
    creating build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm
    creating build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython
    creating build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython/Cython
    creating build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython/Cython/Plex
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.8 -c /tmp/pip-install-uh571ujm/cython/Cython/Plex/Scanners.c -o build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython/Cython/Plex/Scanners.o
    /tmp/pip-install-uh571ujm/cython/Cython/Plex/Scanners.c: In function ‘PyInit_Scanners’:
    /tmp/pip-install-uh571ujm/cython/Cython/Plex/Scanners.c:6403:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
    __pyx_type_6Cython_4Plex_8Scanners_Scanner.tp_print = 0;
    ^
    In file included from /usr/local/include/python3.8/object.h:746:0,
    from /usr/local/include/python3.8/pytime.h:6,
    from /usr/local/include/python3.8/Python.h:85,
    from /tmp/pip-install-uh571ujm/cython/Cython/Plex/Scanners.c:16:
    /usr/local/include/python3.8/cpython/object.h:260:30: note: declared here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
    gcc -pthread -shared build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython/Cython/Plex/Scanners.o -L/usr/local/lib -o build/lib.linux-x86_64-3.8/Cython/Plex/Scanners.cpython-38-x86_64-linux-gnu.so
    cythoning /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.py to /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c
    building 'Cython.Plex.Actions' extension
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.8 -c /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c -o build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.o
    /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c: In function ‘PyInit_Actions’:
    /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:2976:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
    __pyx_type_6Cython_4Plex_7Actions_Action.tp_print = 0;
    ^
    ```

    キャンセル

  • groggy_egg

    2020/05/23 08:24

    ```
    In file included from /usr/local/include/python3.8/object.h:746:0,
    from /usr/local/include/python3.8/pytime.h:6,
    from /usr/local/include/python3.8/Python.h:85,
    from /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:16:
    /usr/local/include/python3.8/cpython/object.h:260:30: note: declared here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:2986:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
    __pyx_type_6Cython_4Plex_7Actions_Return.tp_print = 0;
    ^
    In file included from /usr/local/include/python3.8/object.h:746:0,
    from /usr/local/include/python3.8/pytime.h:6,
    from /usr/local/include/python3.8/Python.h:85,
    from /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:16:
    /usr/local/include/python3.8/cpython/object.h:260:30: note: declared here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:2996:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
    __pyx_type_6Cython_4Plex_7Actions_Call.tp_print = 0;
    ^
    In file included from /usr/local/include/python3.8/object.h:746:0,
    from /usr/local/include/python3.8/pytime.h:6,
    from /usr/local/include/python3.8/Python.h:85,
    from /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:16:
    /usr/local/include/python3.8/cpython/object.h:260:30: note: declared here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:3006:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
    __pyx_type_6Cython_4Plex_7Actions_Begin.tp_print = 0;
    ^
    In file included from /usr/local/include/python3.8/object.h:746:0,
    from /usr/local/include/python3.8/pytime.h:6,
    from /usr/local/include/python3.8/Python.h:85,
    from /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:16:
    /usr/local/include/python3.8/cpython/object.h:260:30: note: declared here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:3015:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
    __pyx_type_6Cython_4Plex_7Actions_Ignore.tp_print = 0;
    ^
    In file included from /usr/local/include/python3.8/object.h:746:0,
    from /usr/local/include/python3.8/pytime.h:6,
    from /usr/local/include/python3.8/Python.h:85,
    from /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:16:
    /usr/local/include/python3.8/cpython/object.h:260:30: note: declared here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:3024:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
    __pyx_type_6Cython_4Plex_7Actions_Text.tp_print = 0;
    ^
    In file included from /usr/local/include/python3.8/object.h:746:0,
    from /usr/local/include/python3.8/pytime.h:6,
    from /usr/local/include/python3.8/Python.h:85,
    from /tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.c:16:
    /usr/local/include/python3.8/cpython/object.h:260:30: note: declared here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
    gcc -pthread -shared build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython/Cython/Plex/Actions.o -L/usr/local/lib -o build/lib.linux-x86_64-3.8/Cython/Plex/Actions.cpython-38-x86_64-linux-gnu.so
    cythoning /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Lexicon.py to /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Lexicon.c
    building 'Cython.Compiler.Lexicon' extension
    creating build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython/Cython/Compiler
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.8 -c /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Lexicon.c -o build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython/Cython/Compiler/Lexicon.o
    gcc -pthread -shared build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython/Cython/Compiler/Lexicon.o -L/usr/local/lib -o build/lib.linux-x86_64-3.8/Cython/Compiler/Lexicon.cpython-38-x86_64-linux-gnu.so
    cythoning /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.py to /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c
    building 'Cython.Compiler.Scanning' extension
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.8 -c /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c -o build/temp.linux-x86_64-3.8/tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.o
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c: In function ‘PyInit_Scanning’:
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:13733:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
    __pyx_type_6Cython_8Compiler_8Scanning_Method.tp_print = 0;
    ^
    In file included from /usr/local/include/python3.8/object.h:746:0,
    from /usr/local/include/python3.8/pytime.h:6,
    from /usr/local/include/python3.8/Python.h:85,
    from /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:16:
    /usr/local/include/python3.8/cpython/object.h:260:30: note: declared here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:13741:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
    __pyx_type_6Cython_8Compiler_8Scanning_CompileTimeScope.tp_print = 0;
    ^
    In file included from /usr/local/include/python3.8/object.h:746:0,
    from /usr/local/include/python3.8/pytime.h:6,
    from /usr/local/include/python3.8/Python.h:85,
    from /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:16:
    /usr/local/include/python3.8/cpython/object.h:260:30: note: declared here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:13761:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
    __pyx_type_6Cython_8Compiler_8Scanning_PyrexScanner.tp_print = 0;
    ^
    In file included from /usr/local/include/python3.8/object.h:746:0,
    from /usr/local/include/python3.8/pytime.h:6,
    from /usr/local/include/python3.8/Python.h:85,
    from /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:16:
    /usr/local/include/python3.8/cpython/object.h:260:30: note: declared here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c: In function ‘__Pyx_ExceptionSave’:
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:14998:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
    *type = tstate->exc_type;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:14999:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
    *value = tstate->exc_value;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15000:17: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
    *tb = tstate->exc_traceback;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c: In function ‘__Pyx_ExceptionReset’:
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15012:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
    tmp_type = tstate->exc_type;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15013:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
    tmp_value = tstate->exc_value;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15014:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
    tmp_tb = tstate->exc_traceback;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15015:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
    tstate->exc_type = type;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15016:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
    tstate->exc_value = value;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15017:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
    tstate->exc_traceback = tb;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c: In function ‘__Pyx_GetException’:
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15060:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
    tmp_type = tstate->exc_type;
    ^
    ```

    キャンセル

  • groggy_egg

    2020/05/23 08:25

    ```
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15061:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
    tmp_value = tstate->exc_value;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15062:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
    tmp_tb = tstate->exc_traceback;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15063:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
    tstate->exc_type = local_type;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15064:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
    tstate->exc_value = local_value;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15065:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
    tstate->exc_traceback = local_tb;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c: In function ‘__Pyx_ExceptionSwap’:
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15391:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
    tmp_type = tstate->exc_type;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15392:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
    tmp_value = tstate->exc_value;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15393:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
    tmp_tb = tstate->exc_traceback;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15394:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
    tstate->exc_type = *type;
    ^
    /tmp/pip-install-uh571ujm/cython/Cython/Compiler/Scanning.c:15395:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
    tstate->exc_value = *value;
    ^
    /tmp/pip-install-uh571ujm/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-uh571ujm/cython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uh571ujm/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-lo4he1e9/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.
    ```

    以上です

    キャンセル

回答 1

0

Could not build wheels for cython, since package 'wheel' is not installed.

パッケージ「wheel」が無いエラーなので、インストールしてみてください。

投稿

  • 回答の評価を上げる

    以下のような回答は評価を上げましょう

    • 正しい回答
    • わかりやすい回答
    • ためになる回答

    評価が高い回答ほどページの上位に表示されます。

  • 回答の評価を下げる

    下記のような回答は推奨されていません。

    • 間違っている回答
    • 質問の回答になっていない投稿
    • スパムや攻撃的な表現を用いた投稿

    評価を下げる際はその理由を明確に伝え、適切な回答に修正してもらいましょう。

  • 2020/05/23 10:01

    バージョン指定なしだとインストールできます。

    キャンセル

  • 2020/05/23 10:26

    Cython 0.21がリリースされたのは
    Released: Sep 11, 2014
    です。6年前のcythonを使う理由を聞かせてください。

    キャンセル

  • キャンセル

15分調べてもわからないことは、teratailで質問しよう!

  • ただいまの回答率 89.25%
  • 質問をまとめることで、思考を整理して素早く解決
  • テンプレート機能で、簡単に質問をまとめられる