前提・実現したいこと
環境:ubuntu18.04
jetson nano
jetson nanoで点群をpythonで処理するためにopenpylivoxという非公式の
ライブラリをインストールするために以下のコードを実行していました。
このエラーの解決方法をご教授いただければと思います。宜しくお願い致します。
発生している問題・エラーメッセージ
pip install git+https://github.com/ryan-brazeal-ufl/openpylivox.git
すると以下のようなnumpyに関するエラーが出ました
Failed building wheel for numpy Running setup.py clean for numpy Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-chp90lsa/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all: Running from numpy source directory. `setup.py clean` is not supported, use one of the following instead: - `git clean -xdf` (cleans all files) - `git clean -Xdf` (cleans all versioned files, doesn't touch files that aren't checked into the git repo) Add `--force` to your command to use it anyway if you must (unsupported). ---------------------------------------- Failed cleaning build dir for numpy Running setup.py bdist_wheel for wrapt ... done Stored in directory: /home/mana/.cache/pip/wheels/b1/c2/ed/d62208260edbd3fa7156545c00ef966f45f2063d0a84f8208a Successfully built crcmod laspy wrapt Failed to build numpy Installing collected packages: crcmod, wrapt, deprecated, numpy, laspy, tqdm, openpylivox-pkg Running setup.py install for numpy ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-chp90lsa/numpy/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-ct103ojo-record/install-record.txt --single-version-externally-managed --compile --user --prefix=: Running from numpy source directory. Note: if you need reliable uninstall behavior, then install with pip instead of using `setup.py install`: - `pip install .` (from a git repo or downloaded source release) - `pip install numpy` (last NumPy release on PyPi) Cythonizing sources numpy/random/_bounded_integers.pxd.in has not changed Processing numpy/random/_common.pyx Traceback (most recent call last): File "/tmp/pip-build-chp90lsa/numpy/tools/cythonize.py", line 59, in process_pyx import Cython ModuleNotFoundError: No module named 'Cython' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/tmp/pip-build-chp90lsa/numpy/tools/cythonize.py", line 240, in <module> main() File "/tmp/pip-build-chp90lsa/numpy/tools/cythonize.py", line 236, in main find_process_files(root_dir) File "/tmp/pip-build-chp90lsa/numpy/tools/cythonize.py", line 227, in find_process_files process(root_dir, fromfile, tofile, function, hash_db) File "/tmp/pip-build-chp90lsa/numpy/tools/cythonize.py", line 193, in process processor_function(fromfile, tofile) File "/tmp/pip-build-chp90lsa/numpy/tools/cythonize.py", line 66, in process_pyx raise OSError(msg) from e OSError: Cython needs to be installed in Python as a module Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-chp90lsa/numpy/setup.py", line 448, in <module> setup_package() File "/tmp/pip-build-chp90lsa/numpy/setup.py", line 430, in setup_package generate_cython() File "/tmp/pip-build-chp90lsa/numpy/setup.py", line 236, in generate_cython raise RuntimeError("Running cythonize failed!") RuntimeError: Running cythonize failed! ---------------------------------------- Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-chp90lsa/numpy/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-ct103ojo-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-chp90lsa/numpy/
試したこと
エラー文に記載されているgit cleanとgit initで初期化し、pip install .とpip install numpyは試しました。
回答2件
あなたの回答
tips
プレビュー