python 基于vccode環(huán)境
1. 準備python
這個教程是為沒有使用過python和vccode環(huán)境準備的,如果使用該教程請先把python和vccode卸載(請卸載干凈,包括個人配置文件)
準備python:這里推薦python3.7.9。python安裝請參考網絡教程。
-
下載常用包:
- munpy :pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ numpy
- pandas :pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pandas
- ipthon :pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ ipython
- matplotlib :pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ matplotlib
pip下載命令:pip install [包名],需要什么三方包就下載什么三方包。如果感覺下載速度慢請使用鏡像。國內常用鏡像:
- 清華:https://pypi.tuna.tsinghua.edu.cn/simple
- 阿里云:http://mirrors.aliyun.com/pypi/simple/
- 中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
- 華中理工大學:http://pypi.hustunique.com/
- 山東理工大學:http://pypi.sdutlinux.org/
- 豆瓣:http://pypi.douban.com/simple/
使用鏡像時請?zhí)砑訁?shù)-i:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ [包名]
-
下載tensorflow和keras:
- 下載tensorflow : pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ tensorflow==1.14.0
- 下載keras : pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ keras==2.2.5

tensorflow與keras版本對應.png
2. 準備vccode
-
安裝vccode
code1.png

code2.png
-
在code中下載python插件:
找到擴展
code4.png
搜索python并下載
code5.png
推薦插件:chinese中文簡體。下載完成后會重啟code
-
創(chuàng)建.ipynb測試
創(chuàng)建test.ipynb文件測試。
code6.png

code7.png
如果打開后是這樣就表示安裝成功

code8.png
測試導入三方包

code9.png



