1.下载
https://www.python.org/
2.安装
测试安装有没有问题
3.测试IDLE
新增记事本,副档名改为py,滑鼠右键Edit with IDLE,输入
print("Hello, world!")
安装Anaconda
Anaconda官网 https://www.anaconda.com/download/
安装过程中,出现Advanced Options,两个勾都打勾。
安装最后,vscode,可以的话也装一下。
安装完成后证,从Windows 开始选单(Start menu)中选择Anaconda Navigator,如果Navigator 可以打开,表示成功安装Anaconda
使用
2.打开Anaconda Prompt
开启会像这样
3.安装套件
conda install pandas
安装讯息如下,期间会问是不是要继续,就输入"Y"
(base) C:\Users\Users>conda install pandasSolving environment: done## Package Plan ## environment location: C:\ProgramData\Anaconda3 added / updated specs: - pandasThe following packages will be downloaded: package | build ---------------------------|----------------- lz4-c-1.8.1.2 | h2fa13f4_0 217 KB libcurl-7.65.3 | h2a8f88b_0 283 KB conda-4.7.11 | py37_0 3.0 MB python-libarchive-c-2.8 | py37_13 24 KB xz-5.2.4 | h2fa13f4_4 812 KB mkl_fft-1.0.6 | py37hdbbee80_0 120 KB sqlite-3.29.0 | he774522_0 962 KB numpy-1.15.4 | py37ha559c80_0 36 KB cryptography-2.7 | py37h7a1dbc1_0 564 KB libpng-1.6.37 | h2a8f88b_0 598 KB pycurl-7.43.0.3 | py37h7a1dbc1_0 67 KB libssh2-1.8.2 | h7a1dbc1_0 186 KB openssl-1.1.1c | he774522_1 5.7 MB mkl-2018.0.3 | 1 178.1 MB certifi-2019.6.16 | py37_1 156 KB pandas-0.25.1 | py37ha925a31_0 9.8 MB conda-package-handling-1.3.11| py37_0 280 KB libarchive-3.3.3 | h0643e63_5 1.4 MB qt-5.9.7 | vc14h73c81de_0 92.3 MB curl-7.65.3 | h2a8f88b_0 122 KB numpy-base-1.15.4 | py37h8128ebf_0 3.9 MB krb5-1.16.1 | hc04afaa_7 819 KB zstd-1.3.7 | h508b16e_0 536 KB ca-certificates-2019.5.15 | 1 166 KB ------------------------------------------------------------ Total: 300.0 MBThe following NEW packages will be INSTALLED: conda-package-handling: 1.3.11-py37_0 krb5: 1.16.1-hc04afaa_7 libarchive: 3.3.3-h0643e63_5 lz4-c: 1.8.1.2-h2fa13f4_0 python-libarchive-c: 2.8-py37_13 xz: 5.2.4-h2fa13f4_4 zstd: 1.3.7-h508b16e_0The following packages will be UPDATED: ca-certificates: 2018.03.07-0 --> 2019.5.15-1 certifi: 2018.8.24-py37_1 --> 2019.6.16-py37_1 conda: 4.5.11-py37_0 --> 4.7.11-py37_0 cryptography: 2.3.1-py37h74b6da3_0 --> 2.7-py37h7a1dbc1_0 curl: 7.61.0-h7602738_0 --> 7.65.3-h2a8f88b_0 libcurl: 7.61.0-h7602738_0 --> 7.65.3-h2a8f88b_0 libpng: 1.6.34-h79bbb47_0 --> 1.6.37-h2a8f88b_0 libssh2: 1.8.0-hd619d38_4 --> 1.8.2-h7a1dbc1_0 mkl_fft: 1.0.4-py37h1e22a9b_1 --> 1.0.6-py37hdbbee80_0 numpy: 1.15.1-py37ha559c80_0 --> 1.15.4-py37ha559c80_0 numpy-base: 1.15.1-py37h8128ebf_0 --> 1.15.4-py37h8128ebf_0 openssl: 1.0.2p-hfa6e2cd_0 --> 1.1.1c-he774522_1 pandas: 0.23.4-py37h830ac7b_0 --> 0.25.1-py37ha925a31_0 pycurl: 7.43.0.2-py37h74b6da3_0 --> 7.43.0.3-py37h7a1dbc1_0 qt: 5.9.6-vc14h1e9a669_2 --> 5.9.7-vc14h73c81de_0 sqlite: 3.24.0-h7602738_0 --> 3.29.0-he774522_0The following packages will be DOWNGRADED: mkl: 2019.0-118 --> 2018.0.3-1Proceed ([y]/n)?Downloading and Extracting Packageslz4-c-1.8.1.2 | 217 KB | #################################### | 100%libcurl-7.65.3 | 283 KB | #################################### | 100%conda-4.7.11 | 3.0 MB | #################################### | 100%python-libarchive-c- | 24 KB | #################################### | 100%xz-5.2.4 | 812 KB | #################################### | 100%mkl_fft-1.0.6 | 120 KB | #################################### | 100%sqlite-3.29.0 | 962 KB | #################################### | 100%numpy-1.15.4 | 36 KB | #################################### | 100%cryptography-2.7 | 564 KB | #################################### | 100%libpng-1.6.37 | 598 KB | #################################### | 100%pycurl-7.43.0.3 | 67 KB | #################################### | 100%libssh2-1.8.2 | 186 KB | #################################### | 100%openssl-1.1.1c | 5.7 MB | #################################### | 100%mkl-2018.0.3 | 178.1 MB | #################################### | 100%certifi-2019.6.16 | 156 KB | #################################### | 100%pandas-0.25.1 | 9.8 MB | #################################### | 100%conda-package-handli | 280 KB | #################################### | 100%libarchive-3.3.3 | 1.4 MB | #################################### | 100%qt-5.9.7 | 92.3 MB | #################################### | 100%curl-7.65.3 | 122 KB | #################################### | 100%numpy-base-1.15.4 | 3.9 MB | #################################### | 100%krb5-1.16.1 | 819 KB | #################################### | 100%zstd-1.3.7 | 536 KB | #################################### | 100%ca-certificates-2019 | 166 KB | #################################### | 100%Preparing transaction: doneVerifying transaction: doneExecuting transaction: done(base) C:\Users\Users>^A
检查
打开Anaconda Prompt 输入 conda list
能看到已安装的套件
检查jupyter
底下这个不能关掉,如果关掉,jupyter就无法使用了
新增一个档案
检查pandas
什么是pip?
它跟Anaconda一样,都是安装套件?!
ref
https://medium.com/python4u/jupyter-notebook%E5%AE%8C%E6%95%B4%E4%BB%8B%E7%B4%B9%E5%8F%8A%E5%AE%89%E8%A3%9D%E8%AA%AA%E6%98%8E-b8fcadba15f
什么是jupyter?
本来是python编辑器,后来扩充到不限于python
ref
https://medium.com/python4u/jupyter-notebook%E5%AE%8C%E6%95%B4%E4%BB%8B%E7%B4%B9%E5%8F%8A%E5%AE%89%E8%A3%9D%E8%AA%AA%E6%98%8E-b8fcadba15f
ref
https://kopu.chat/2017/01/18/%E4%B8%80%E5%B0%8F%E6%99%82python%E5%85%A5%E9%96%80-part-1/
https://zh.wikipedia.org/wiki/Python