搭建基础tensorflow2环境

  1. 安装miniconda,默认配置

https://docs.conda.io/en/latest/miniconda.html

  1. 开始菜单点击 Anaconda Prompt 进入命令行,输入
conda create -n tf python=3.8
  1. 进入刚才安装的python环境中
conda activate tf
  1. 配置pip下载源
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host mirrors.aliyun.com
  1. 安装tensorflow
pip install tensorflow
  1. 安装numpy
pip install numpy
  1. 安装matplotlib
pip install matplotlib
  1. 安装pandas
pip install pandas
  1. 安装sklearn
pip install sklearn
  1. 安装jupyter
pip install jupyter
  1. 打开jupyter
jupyter notebook 工作路径

以上操作均在Anaconda Prompt 命令行中进行!!!

平常如何启动jupyter:

2 -> 3 -> 11

error1. jupyter出现 kernel error,点击之后错误信息为ImportError: DLL load failed while importing win32api: 找不到指定的模块

问题原因为pywin32版本问题,先卸载原有的pywin32

pip uninstall pywin32

然后安装合适版本的pywin32

pip install pywin32==225
posted @ 2021-03-05 21:04  jawide  阅读(152)  评论(0)    收藏  举报