概述
我检查了我的pip3&
python3版本:
(tensorflow) MacBook-Pro-de-Hector-2:tensorflow hectoresteban$pip3 -V
pip 10.0.1 from /Users/hectoresteban/.virtualenvs/tensorflow/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip (python 3.7)
(tensorflow) MacBook-Pro-de-Hector-2:tensorflow hectoresteban$python3 -V
Python 3.7.0
在我目前正在使用的虚拟环境中:
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.9.0-py3-none-any.whl
作为标准方式pip3安装tensorflow输出以下消息:
could not find a version that satisfies the requirement tensorflow (from versions: )
安装后使用第一种方法解释:
(tensorflow) MacBook-Pro-de-Hector-2:tensorflow hectoresteban$python3
>>> import tensorflow
Traceback (most recent call last):
File "", line 1, in
File "/Users/hectoresteban/.virtualenvs/tensorflow/lib/python3.7/site-packages/tensorflow/__init__.py", line 22, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/Users/hectoresteban/.virtualenvs/tensorflow/lib/python3.7/site-packages/tensorflow/python/__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/Users/hectoresteban/.virtualenvs/tensorflow/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/Users/hectoresteban/.virtualenvs/tensorflow/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 114
def TFE_ContextOptionsSetAsync(arg1, async):
^
SyntaxError: invalid syntax
有什么问题?我可以下载其他软件包,如numpy但没有Tensorflow. (MacOS 10.13.4)
最后
以上就是紧张枕头为你收集整理的python无法安装tensorflow_python – 无法安装Tensorflow Mac的全部内容,希望文章能够帮你解决python无法安装tensorflow_python – 无法安装Tensorflow Mac所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复