小编Fiz*_*ics的帖子

CPU指令未使用TensorFlow编译

MacBook Air:OSX El Capitan

当我在terminal(python 3 tfpractice.py)中运行TensorFlow代码时,我得到一个比正常更长的等待时间来返回输出,然后是这些错误消息:

W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU …

python terminal cpu machine-learning tensorflow

6
推荐指数
1
解决办法
2万
查看次数

如何在python 3.6上安装pip,而不是默认的python 2.7?

所以整天都在努力安装pip.我已经执行了curl https://bootstrap.pypa.io/get-pip.py > get-pip.py.然后sudo python get-pip.py.接下来我去安装numpy了sudo pip install numpy.最后,我打开了python 3.6 IDLE,我试图import numpy as np得到一个错误,说该模块不存在.

我发现pip已安装,/Library/Python/2.7/site-packages所以我从目录中删除了2.7.我重新整理了整个过程并得到了同样的错误:|

我想知道我是否需要更改python我被告知的默认值是不明智的.我该怎么办?我确定我已经删除了python 2.7中的所有内容吗?

MacBookAir OSX - Sierra

或者是否有另一种方法可以在python 3.6中安装numpy ????

python macos numpy pip python-3.x

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

python ×2

cpu ×1

machine-learning ×1

macos ×1

numpy ×1

pip ×1

python-3.x ×1

tensorflow ×1

terminal ×1