1.

确保 电脑上安装了Python3.6,并且 在系统----环境设置---path中    加入你的Python安装路径,我的是安装在C:\Python\
所以在path  中加入双引号中的内容 不包括双引号      " ;C:\Python\Python36;C:\Python\Python36\Scripts"
2.cmd  进入DOS界面输入   pip install tensorflow   回车 。报错:
Exception:
Traceback (most recent call last):
    File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\pip\compat\__init__ .py, line 73, in console_to_str
        return s.decode(sys.__stdout__.encoding)
3.解决: 打开记事本 Python安装目录下C:\Python\Python36\Lib\site-packages\pip\compat\__init__.py 
 第73行 把return s.decode('utf_8')改成  return s.decode('gbk')
4.cmd  进入DOS界面输入   pip install tensorflow   回车  安装成功

MacBook win10 +Python3.6 TensorFlow 安装过程报错解决

相关文章:

  • 2021-04-13
  • 2021-04-02
  • 2022-12-23
  • 2021-05-03
  • 2022-01-15
  • 2021-11-06
  • 2021-11-30
  • 2022-01-07
猜你喜欢
  • 2021-11-26
  • 2021-05-08
  • 2022-01-21
  • 2021-05-11
  • 2021-05-26
  • 2022-02-01
  • 2021-06-19
相关资源
相似解决方案