環境
poetry 1.1.11
python 3.8.2 2.7.6
問題
仮想環境へのmlagentsライブラリのインストールが失敗しました。numpyとpythonのバージョン問題だと思いますので、色々を調べてをみましたが、解決方法が見つかりませんでした。エラーの量が多くて、以下はその一部です。また補足すべきところがあれば、教えてください。試したことはHomebrewでインストールしたPython3.9をアンインストールすることですが、またほぼ同じようなエラーが出ました。
エラーメッセージ
poetry add mlagents==0.27.0
を実行すると以下のエラーが出ました。
- Installing h5py (3.3.0) EnvCommandError Command ['/Users/name/.venv/bin/pip', 'install', '--no-deps', '-r', '/var/folders/6c/6ysn9lvs655g51n19sw7kdt80000gn/T/h5py-3.3.06kc4hfzpreqs.txt'] errored with the following return code 1, and output: Collecting h5py==3.3.0 Using cached h5py-3.3.0.tar.gz (380 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'error' ERROR: Command errored out with exit status 1: command: /Users/name/.venv/bin/python /private/var/folders/6c/6ysn9lvs655g51n19sw7kdt80000gn/T/pip-standalone-pip-xeswagww/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/6c/6ysn9lvs655g51n19sw7kdt80000gn/T/pip-build-env-_yg4hqjj/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'numpy==1.14.5; python_version == "3.7"' 'numpy==1.19.3; python_version >= "3.9"' 'Cython>=0.29; python_version < "3.8"' 'numpy==1.17.5; python_version == "3.8"' 'Cython>=0.29.15; python_version >= "3.9"' pkgconfig 'Cython>=0.29.14; python_version == "3.8"' cwd: None Complete output (908 lines): Ignoring numpy: markers 'python_version == "3.7"' don't match your environment Ignoring Cython: markers 'python_version < "3.8"' don't match your environment Ignoring numpy: markers 'python_version == "3.8"' don't match your environment Ignoring Cython: markers 'python_version == "3.8"' don't match your environment Collecting numpy==1.19.3 Using cached numpy-1.19.3.zip (7.3 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting Cython>=0.29.15 Using cached Cython-0.29.24-py2.py3-none-any.whl (979 kB) Collecting pkgconfig Using cached pkgconfig-1.5.5-py3-none-any.whl (6.7 kB) Building wheels for collected packages: numpy Building wheel for numpy (PEP 517): started Building wheel for numpy (PEP 517): finished with status 'error' ERROR: Command errored out with exit status 1: command: /Users/lifengtong/Lecture/AI_Game/.venv/bin/python /var/folders/6c/6ysn9lvs655g51n19sw7kdt80000gn/T/tmpv887tq2t_in_process.py build_wheel /var/folders/6c/6ysn9lvs655g51n19sw7kdt80000gn/T/tmpscfwpb9i cwd: /private/var/folders/6c/6ysn9lvs655g51n19sw7kdt80000gn/T/pip-install-mj77in17/numpy_f83340c64cbf40c0b4465bde5da292d8 Complete output (881 lines): Running from numpy source directory. numpy/random/_bounded_integers.pxd.in has not changed numpy/random/_philox.pyx has not changed numpy/random/_bounded_integers.pyx.in has not changed numpy/random/_sfc64.pyx has not changed numpy/random/_mt19937.pyx has not changed numpy/random/bit_generator.pyx has not changed Processing numpy/random/_bounded_integers.pyx numpy/random/mtrand.pyx has not changed numpy/random/_generator.pyx has not changed numpy/random/_pcg64.pyx has not changed numpy/random/_common.pyx has not changed Cythonizing sources blas_opt_info: blas_mkl_info: customize UnixCCompiler libraries mkl_rt not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE blis_info: libraries blis not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_info: libraries openblas not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_blas_threads_info: Setting PTATLAS=ATLAS libraries tatlas not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_blas_info: libraries satlas not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE accelerate_info: libraries accelerate not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] Library accelerate was not found. Ignoring libraries veclib not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] Library veclib was not found. Ignoring FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] non-existing path in 'numpy/distutils': 'site.cfg' lapack_opt_info: lapack_mkl_info: libraries mkl_rt not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_lapack_info: libraries openblas not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_clapack_info: libraries openblas,lapack not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE flame_info: libraries flame not found in ['/Users/name/.venv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_threads_info: Setting PTATLAS=ATLAS libraries lapack_atlas not found in /Users/lifengtong/Lecture/AI_Game/.venv/lib libraries tatlas,tatlas not found in /Users/lifengtong/Lecture/AI_Game/.venv/lib libraries lapack_atlas not found in /usr/local/lib libraries tatlas,tatlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries tatlas,tatlas not found in /usr/lib <class 'numpy.distutils.system_info.atlas_3_10_threads_info'> NOT AVAILABLE .........省略......... ---------------------------------------- ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/61/0f/e7e57c4b87d027d74acf75e0fc49aff8aca87d6ff7b2e655c183a714044d/h5py-3.3.0.tar.gz#sha256=e0dac887d779929778b3cfd13309a939359cc9e74756fc09af7c527a82797186 (from https://pypi.org/simple/h5py/) (requires-python:>=3.7). Command errored out with exit status 1: /Users/name/.venv/bin/python /private/var/folders/6c/6ysn9lvs655g51n19sw7kdt80000gn/T/pip-standalone-pip-xeswagww/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/6c/6ysn9lvs655g51n19sw7kdt80000gn/T/pip-build-env-_yg4hqjj/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'numpy==1.14.5; python_version == "3.7"' 'numpy==1.19.3; python_version >= "3.9"' 'Cython>=0.29; python_version < "3.8"' 'numpy==1.17.5; python_version == "3.8"' 'Cython>=0.29.15; python_version >= "3.9"' pkgconfig 'Cython>=0.29.14; python_version == "3.8"' Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement h5py==3.3.0 (from versions: 2.2.1, 2.3.0b1, 2.3.0, 2.3.1, 2.4.0b1, 2.4.0, 2.5.0, 2.6.0, 2.7.0rc2, 2.7.0, 2.7.1, 2.8.0rc1, 2.8.0, 2.9.0rc1, 2.9.0, 2.10.0, 3.0.0rc1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.0, 3.4.0) ERROR: No matching distribution found for h5py==3.3.0 at ~/.poetry/lib/poetry/utils/env.py:1183 in _run 1179│ output = subprocess.check_output( 1180│ cmd, stderr=subprocess.STDOUT, **kwargs 1181│ ) 1182│ except CalledProcessError as e: → 1183│ raise EnvCommandError(e, input=input_) 1184│ 1185│ return decode(output) 1186│ 1187│ def execute(self, bin, *args, **kwargs):
あなたの回答
tips
プレビュー