强行重装
pip install --upgrade --force-reinstall --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple python-dateutil
升级
pip install --upgrade jupyter
卸载+安装
pip uninstall python-dateutil
pip install python-dateutil
重装pip
python -m pip install pip==19.3.1
# 19.3.1是显示python包的URL的最后一个版本
pip换源:https://blog.csdn.net/sinat_21591675/article/details/82770360
Anaconda 常用命令
查看存在的环境:
conda info -e
激活某环境
conda activate ENV_NAME
新建环境
conda create -n ENV_NAME python=3.7
删除环境
conda remove -n ENV_NAME --all
Jupyter 添加环境
需要先activate到想用的ENV
conda install ipykernel
python -m ipykernel install --name KERNEL_NAME
Jupyter 删除环境
jupyter kernelspec list # 先查看所有的kernel
jupyter kernelspec remove KERNEL_NAME # 然后删除
清理缓存:https://blog.csdn.net/weixin_41481113/article/details/88411241