第一次使用時$ 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 正常工作。
添加回答
舉報
0/150
提交
取消