anaconda安装tensorflow
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
两个办法:
- 从这里找到对应版本的tf下载,重新安装。
pip install {path}tensorflow***.whl
- 直接忽略,在代码里添加:
os.environ[“TF_CPP_MIN_LOG_LEVEL”]=‘2’ # 只显示 warning 和 Error
item能使用但vscode无法使用,并提示:
ModuleNotFoundError: No module named 'tensorflow'
- cmd+shift+p在python select interpreter中更换使用的python路径
- 换一个文件夹(
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
numpy版本过高,重装即可。
源
-i https://pypi.tuna.tsinghua.edu.cn/simple
其他
RuntimeError: Found 0 files in subfolders of: ...
路径问题:路径寻找的是当前文件的子文件中的数据
Comments
注:如果长时间无法加载,请针对 disq.us | disquscdn.com | disqus.com 启用代理。