Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装TensorFlow&x27;macOS上的tf夜间和tf夜间gpu_Macos_Python 3.x_Tensorflow - Fatal编程技术网

安装TensorFlow&x27;macOS上的tf夜间和tf夜间gpu

安装TensorFlow&x27;macOS上的tf夜间和tf夜间gpu,macos,python-3.x,tensorflow,Macos,Python 3.x,Tensorflow,我在TensorFlow 1.4和Python3.6中遇到了一个问题,它通过以下运行时警告来体现: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 我想通过安装最新的tf nightly和tf nightly gpu来克服这个问题,这是目前推荐的。到目前为止,我一直遵循以下步骤安装TensorFlow(在mac

我在TensorFlow 1.4和Python3.6中遇到了一个问题,它通过以下
运行时警告来体现:

compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' 
does not match runtime version 3.6
我想通过安装最新的
tf nightly
tf nightly gpu
来克服这个问题,这是目前推荐的。到目前为止,我一直遵循以下步骤安装TensorFlow(在macOS上):


对这些步骤进行了哪些(最小)更改,以便它们从
tf nightly
tf nightly gpu
执行安装?

使用命令
pip install tf nightly
而不是
pip install——升级tensorflow
似乎可以工作。它目前导致从
tf_nightly-1.5.0进行安装。dev20171206-cp36-cp36m-macosx_10_11_x86_64。whl

使用
--upgrade
将尝试为其最初安装的python版本获取tensorflow,错误显示为3.5,虽然您目前的默认版本是3.6

,但您认为解决方案是什么?
virtualenv --system-site-packages ~/tensorflow
source ~/tensorflow/bin/activate
(tensorflow)$ easy_install -U pip
(tensorflow)$ pip install --upgrade tensorflow