win10 bash下搭建机器学习环境

安装ubuntu

1. Update&Security ->For developers ->developer mode

2. Control panel -> Programs ->Turn Windows features on or off ->Windows Subsystem for Linux (Beta)

3. cmd -> bash

更新源:

lsb_release -a

https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ 更新对应源

sudo apt-get update  

sudo apt-get upgrade

sudo apt-get install python3-pip

安装 jupyeter notebook

sudo pip3 install jupyter

sudo pip3 install numpy pandas  matplotlib scikit-learn  

安装 tensorflow以及keras

sudo pip3 install tensorflow keras 

安装 gym 包 ,包括[atari] MsPacman-v0等 

sudo apt-get install cmake zlib1g-dev

sudo pip3 install  gym  gym[atari]

windows文件在 /mnt/c/Users/ 下面


至此环境搭好 可以训练MsPacman了

win10 bash下搭建机器学习环境