anaconda安装虚拟环境,TensorFlow1.x(吴恩达老师course4week3课程编程作业环境配置)

anaconda安装虚拟环境,TensorFlow1.x(吴恩达老师课程编程作业环境配置)

1.创建虚拟环境

conda create -n py36 python=3.6.2

2.激活新新建的虚拟环境

conda activate py36

在这里插入图片描述

3.安装TensorFlow

conda install tensorflow==1.14

在这里插入图片描述

4.安装keras

conda install keras==2.2.4

在这里插入图片描述

5.安装h5py

conda install h5py==2.9.0

6.安装numpy

conda install numpy==1.16.2

7.安装matplotlib

conda install matplotlib==2.2.2

8.安装pandas

conda install pandas==1.0.5

9.安装PIL

conda install pillow==8.3.1

10.安装imageio

conda install imageio

11.将虚拟环境配置到jupyter 中

conda install ipykernel==5.3.4 #安装ipykernel
python -m ipykernel install --name py36 #配置

12.切换新创建的虚拟环境 py36

启动 yupyter->点击kernel->点击Change kernel->py36
在这里插入图片描述
在这里插入图片描述

13.报了一个小错误

以上环境就配置完成了,但是我遇到一个小错误:

module ‘scipy.misc’ has no attribute ‘imread’
原因是:scipy.misc 模块中的 imread 函数已经被移除了。

解决方法:将 scipy.misc.imreadimageio.imread替换,
并导入imageio包:import imageio

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值