为了账号安全,请及时绑定邮箱和手机立即绑定

如何在 Windows x64 位 Python 3.6.x 上正确安装 Tensorflow

如何在 Windows x64 位 Python 3.6.x 上正确安装 Tensorflow

千万里不及你 2021-06-06 17:18:22
第一次使用时$ pip install --upgrade tensorflow,我无法安装它。在浏览了多个站点后,我意识到这是因为我安装了 x32 位版本的 Python,而不是 x64 位版本。卸载旧的 Python 并安装新的 Python 后,我就可以安装 tensorflow。这是输出:C:\Users\Seth>pip install --upgrade tensorflow --userCollecting tensorflow  Using cached https://files.pythonhosted.org/packages/0e/2a/c3fe6035f0a8726e5b210680af3ccaf826f4a64ce7306e57017aba749447/tensorflow-1.10.0-cp36-cp36m-win_amd64.whlCollecting six>=1.10.0 (from tensorflow)  Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whlCollecting absl-py>=0.1.6 (from tensorflow)  Using cached https://files.pythonhosted.org/packages/a7/86/67f55488ec68982270142c340cd23cd2408835dc4b24bd1d1f1e114f24c3/absl-py-0.4.1.tar.gzCollecting gast>=0.2.0 (from tensorflow)  Using cached https://files.pythonhosted.org/packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gzRequirement already satisfied, skipping upgrade: setuptools<=39.1.0 in c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages (from tensorflow) (39.0.1)Collecting wheel>=0.26 (from tensorflow)  Using cached https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whlCollecting protobuf>=3.6.0 (from tensorflow)  Using cached https://files.pythonhosted.org/packages/e8/df/d606d07cff0fc8d22abcc54006c0247002d11a7f2d218eb008d48e76851d/protobuf-3.6.1-cp36-cp36m-win_amd64.whlCollecting astor>=0.6.0 (from tensorflow)  Using cached https://files.pythonhosted.org/packages/35/6b/11530768cac581a12952a2aad00e1526b89d242d0b9f59534ef6e6a1752f/astor-0.7.1-py2.py3-none-any.whlCollecting tensorboard<1.11.0,>=1.10.0 (from tensorflow)  Using cached https://files.pythonhosted.org/packages/c6/17/ecd918a004f297955c30b4fffbea100b1606c225dbf0443264012773c3ff/tensorboard-1.10.0-py3-none-any.whlCollecting grpcio>=1.8.6 (from tensorflow)
查看完整描述

2 回答

?
慕后森

TA贡献1802条经验 获得超5个赞

解决方案

感谢 P-Gn 将其标记为重复。否则我不会找到答案。Tensorflow 适用于我的 1.5 版,但我可能必须找到一种方法来让 1.10 正常工作。


查看完整回答
反对 回复 2021-06-08
  • 2 回答
  • 0 关注
  • 136 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信