搭建基础tensorflow2环境
- 安装miniconda,默认配置
- 开始菜单点击 Anaconda Prompt 进入命令行,输入
conda create -n tf python=3.8
- 进入刚才安装的python环境中
conda activate tf
- 配置pip下载源
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/ pip config set install.trusted-host mirrors.aliyun.com
- 安装tensorflow
pip install tensorflow
- 安装numpy
pip install numpy
- 安装matplotlib
pip install matplotlib
- 安装pandas
pip install pandas
- 安装sklearn
pip install sklearn
- 安装jupyter
pip install jupyter
- 打开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

浙公网安备 33010602011771号