前提・実現したいこと
pythonの仮想環境をアクティベートし、Tensorflowをインストールしようとしたところ、以下のエラーに遭遇しました。インターネットで探しましたが、全く同じエラーが見つかりませんでした。wraptをインストールしても1つ目のエラー(Command errored out with exit status 1:)が出ます。どうしたらインストールできますか?
発生している問題・エラーメッセージ
Command errored out with exit status 1:
Failed building wheel for wrapt
() MacBook-Air:ml user$ python3 -m pip install --upgrade tensorflow Collecting tensorflow Using cached tensorflow-2.3.0-cp36-cp36m-macosx_10_11_x86_64.whl (165.1 MB) Requirement already satisfied, skipping upgrade: absl-py>=0.7.0 in ./env/lib/python3.6/site-packages (from tensorflow) (0.9.0) ... Building wheels for collected packages: wrapt Building wheel for wrapt (setup.py) ... error ERROR: Command errored out with exit status 1: command: /Users/kumikonakajima/ml/env/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py'"'"'; __file__='"'"'/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-wheel-dcuy7uio cwd: /private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/ Complete output (46 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.7-x86_64-3.6 creating build/lib.macosx-10.7-x86_64-3.6/wrapt copying src/wrapt/importer.py -> build/lib.macosx-10.7-x86_64-3.6/wrapt copying src/wrapt/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/wrapt copying src/wrapt/wrappers.py -> build/lib.macosx-10.7-x86_64-3.6/wrapt copying src/wrapt/decorators.py -> build/lib.macosx-10.7-x86_64-3.6/wrapt running build_ext Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py", line 102, in <module> run_setup(with_extensions=True) File "/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py", line 72, in run_setup setup(**setup_kwargs_tmp) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Users/kumikonakajima/ml/env/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 223, in run self.run_command('build') File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py", line 25, in run build_ext.run(self) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 309, in run customize_compiler(self.compiler) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/sysconfig.py", line 170, in customize_compiler _osx_support.customize_compiler(_config_vars) File "/Users/kumikonakajima/anaconda3/lib/python3.6/_osx_support.py", line 418, in customize_compiler _find_appropriate_compiler(_config_vars) File "/Users/kumikonakajima/anaconda3/lib/python3.6/_osx_support.py", line 191, in _find_appropriate_compiler "Cannot locate working compiler") SystemError: Cannot locate working compiler ---------------------------------------- ERROR: Failed building wheel for wrapt Running setup.py clean for wrapt Failed to build wrapt DEPRECATION: Could not build wheels for wrapt which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368. Installing collected packages: wrapt, tensorflow Running setup.py install for wrapt ... error ERROR: Command errored out with exit status 1: command: /Users/kumikonakajima/ml/env/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py'"'"'; __file__='"'"'/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-record-oymcb5bw/install-record.txt --single-version-externally-managed --compile --install-headers /Users/kumikonakajima/ml/env/include/site/python3.6/wrapt cwd: /private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/ Complete output (48 lines): running install running build running build_py creating build creating build/lib.macosx-10.7-x86_64-3.6 creating build/lib.macosx-10.7-x86_64-3.6/wrapt copying src/wrapt/importer.py -> build/lib.macosx-10.7-x86_64-3.6/wrapt copying src/wrapt/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/wrapt copying src/wrapt/wrappers.py -> build/lib.macosx-10.7-x86_64-3.6/wrapt copying src/wrapt/decorators.py -> build/lib.macosx-10.7-x86_64-3.6/wrapt running build_ext Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py", line 102, in <module> run_setup(with_extensions=True) File "/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py", line 72, in run_setup setup(**setup_kwargs_tmp) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Users/kumikonakajima/ml/env/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/command/install.py", line 545, in run self.run_command('build') File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py", line 25, in run build_ext.run(self) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 309, in run customize_compiler(self.compiler) File "/Users/kumikonakajima/anaconda3/lib/python3.6/distutils/sysconfig.py", line 170, in customize_compiler _osx_support.customize_compiler(_config_vars) File "/Users/kumikonakajima/anaconda3/lib/python3.6/_osx_support.py", line 418, in customize_compiler _find_appropriate_compiler(_config_vars) File "/Users/kumikonakajima/anaconda3/lib/python3.6/_osx_support.py", line 191, in _find_appropriate_compiler "Cannot locate working compiler") SystemError: Cannot locate working compiler ---------------------------------------- ERROR: Command errored out with exit status 1: /Users/kumikonakajima/ml/env/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py'"'"'; __file__='"'"'/private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-install-s3ebmvgr/wrapt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/cr/k0ggvdr56wj6h4mzc6t_15fh0000gn/T/pip-record-oymcb5bw/install-record.txt --single-version-externally-managed --compile --install-headers /Users/kumikonakajima/ml/env/include/site/python3.6/wrapt Check the logs for full command output.
補足情報(FW/ツールのバージョンなど)
bin内には
python,python3, python3.6
pip, pip3, pip3.6
があります。
あなたの回答
tips
プレビュー