创建环境

conda create -n py37tfkeras python=3.7

激活环境

activate py37tfkeras

查看已安装环境

conda info --envs

scikit-learn安装顺序:numpy / scipy / matplotlib / scikit-learn

pip install numpy
pip install scipy
pip install matplotlib
pip install scikit-learn

安装TensorFlow-cpu(使用清华源)

pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple

查看已安装的包

conda list

各种包安装

pip install pandas

设置包来源

临时使用:可以在使用pip的时候加参数 -i 源地址

pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple

清华源: https://pypi.tuna.tsinghua.edu.cn/simple
阿里源: https://mirrors.aliyun.com/pypi/simple

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐