下载
访问 Python Releases for Windows | Python.org ,下载 executable installer
安装
记得勾选最下面的 Add Python x.x to PATH
升级pip(大写U)
pip install -U pip
安装包
cmd利用pip下载第三方库容易发生超时,使用如下语句安装
pip --default-timeout=100 install -U +(包名)
可直接访问https://www.lfd.uci.edu/~gohlke/pythonlibs/#pandas按需下载
pip install matplotlib -i http://pypi.douban.com/simple --trusted-host=pypi.douban.com
中文字符
# -*- coding: utf-8 -*-
missing from current font. func(*args) 【缺少字体】解决
import matplotlib
matplotlib.rcParams['font.sans-serif'] = ['KaiTi']