安装tensorflow
- 安装tensorflow一般来说先安装anaconda3比较快
- https://www.bilibili.com/video/BV1NQ4y1T7vA?from=search&seid=2250451853369399385安装anaconda
- conda create -n tf python=3.6 创建一个python环境
- 激活python环境:$ conda activate tf 或者 $ source activate tf
- 选怎各种tensorflow版本:https://blog.csdn.net/qq_41683065/article/details/108702408
- pip install tensorflow==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
- 退出python环境:$ conda deactivate 或者 source deactivate
- 删除创建的python环境:$ conda remove -n tf --all
安装jupyter
在建立好的环境下,运行:
- pip install jupyter
- python -m ipykernel install --user --name=tf2 (这个tf2就是我们环境的名字)
- 打开就是直接使用jupyter notebook
安装Pandas
直接pip install pandas
安装numpy
其实只要anaconda3安装好了,numpy就随之而安装完毕,不需要额外pip install numpy