【配了三天环境,自己配完又给别人配,配吐了,记录一下命令(免得以后继续吐)】
1.按照别人的教程先装好一个anaconda3
2.打开anaconda prompt
(配置清华镜像源)
3.conda create -n tensorflow python=3.7 (以python3.7作基准)
4.activate tensorflow
5.pip install tensorflow==2.2 -i http://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
6.conda install jupyter notebook
(配置默认路径)
假如还需要安装一些别的库:
pip install keras==2.3.1 -i http://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
pip install scikit-learn==0.23.2 -i http://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
pip install matplotlib==3.3.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
7.jupyter notebook