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

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

新規登録して質問してみよう
ただいま回答率
85.49%
Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

Q&A

0回答

560閲覧

tenxorflowのインストールが出来ない

k1225

総合スコア21

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

0グッド

0クリップ

投稿2020/08/07 12:09

前提・実現したいこと

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
があります。

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

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

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

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

dameo

2020/08/08 00:30

mac持ってないので当て推量でしかないですが、"_find_appropriate_compiler(_config_vars)"で"Cannot locate working compiler"と言われてるので、XCodeが必要なんではないでしょうか?
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.49%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問