-
使用国内源安装
pip install package_name -i https://pypi.tuna.tsinghua.edu.cn/simple
豆瓣镜像:https://pypi.doubanio.com/simple/
阿里云镜像:https://mirrors.aliyun.com/pypi/simple/package_name==xx.xx.x
就可以安装指定的版本号 -
pip install或者uninstall时,遇到错误 DLL
使用管理员身份打开cmd就行了 -
有时候会显示找不到module,这时配置国内源,或者规定版本号可能可以解决
-
jupyter notebook多行输出
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
- 常用包引用
import pandas as pd
import numpy as np
from tqdm import tqdm
from glob import glob
import datetime
import matplotlib.pyplot as plt
import matplotlib
import seaborn as sns
matplotlib.get_cachedir() # 清除一下matplotlib的cache
from matplotlib.font_manager import FontProperties
myfont=FontProperties(fname=r'C:\Windows\