我正在尝试在Python3.7的Mac上安装TensorFlow,但是遇到了以下错误:
$ pip3 -v install tensorflow
...
Skipping link https://files.pythonhosted.org/packages/56/7a/c6bca0fe52a94ca508731d8b139e7dbd5a36cddc64c19f422f97e5a853e8/tensorflow-1.10.0rc1-cp36-cp36m-win_amd64.whl#sha256=3ab24374888d6a13d55ce2e3cf4ba0c9cd6f824723313db5322512087525cb78 (from https://pypi.org/simple/tensorflow/); it is not compatible with this Python
Could not find a version that satisfies the requirement tensorflow (from versions: )
Cleaning up...
Removed build tracker '/private/var/folders/4n/9342s4wd3jv0qzwjz8rxrygr0000gp/T/pip-req-tracker-3p60r2lo'
No matching distribution found for tensorflow
据我所了解,这是因为tensorflow尚不支持Python3.7而导致的。为了解决问题,我想安装Python3.6并在那个版本上安装tensorflow。但是,我对Mac还不太熟悉,并不确定正确的方法,以免影响预先存在的Python版本。
我尝试使用brew,但似乎Python3已经是最具体的版本了。请问有什么正确的方法可以做到我要达到的效果吗?
Error: No such keg: /usr/local/Cellar/python
。 - Sebastian$ brew doctor && brew missing
,它告诉我由于某种原因没有安装openssl库,然后我使用以下命令安装了它:$ brew install openssl
。 - Alexandr S.brew extract python
在 GitHub 上的稳定存储库进行安装。 - Smit