Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/307.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
Python TensorFlow库未编译为在pycharm中使用SSE4.2、AVX、AVX2和FMA_Python_Tensorflow - Fatal编程技术网

Python TensorFlow库未编译为在pycharm中使用SSE4.2、AVX、AVX2和FMA

Python TensorFlow库未编译为在pycharm中使用SSE4.2、AVX、AVX2和FMA,python,tensorflow,Python,Tensorflow,我正在使用pycharm进行编码,并成功下载了tensorflow。但它给我的警告是: The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. The TensorFlow library wasn't compiled to use AVX instructio

我正在使用pycharm进行编码,并成功下载了tensorflow。但它给我的警告是:

The TensorFlow library wasn't compiled to use SSE4.2 instructions, but 
these are available on your machine and could speed up CPU 
computations.
The TensorFlow library wasn't compiled to use AVX instructions, but 
these are available on your machine and could speed up CPU 
computations.
The TensorFlow library wasn't compiled to use AVX2 instructions, but 
these are available on your machine and could speed up CPU 
computations.
The TensorFlow library wasn't compiled to use FMA instructions, but 
these are available on your machine and could speed up CPU 
computations.
我看到了其他链接,但这并不能解决我的问题。我试图通过源代码再次安装tensorflow。我坚持构建pip包:

$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
我的电脑给了我一个错误:

ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
我使用mac,我不熟悉Cpp,所以不明白它的意思。
有人能帮我解决这个问题吗

这些警告并不重要,但是您可以通过bazel build-c opt-copt=-mavx-copt=-mavx2-copt=-mfma-copt=-msse4.2//Tensorflow/tools/pip_包:build_pip_包来禁用它们。

该消息是一个警告,而不是一个错误……当我构建这样的pip包时,可能会重复Yes。它将抛出错误:ISO C++11不允许从字符串文字转换为“char*”[-Wwritable strings]