Conda
1.镜像源如何恢复默认 :conda config --remove-key channels
2.conda创建虚拟环境: conda create --name python35 python=3.5 提示完成安装包;
3.conda激活环境: conda activate python35;
4.conda退出环境:conda deactivate python35;
5.查看当前虚拟环境的配置: conda list; (conda update xxx更新,conda uninstall 卸载)
6.查看conda版本: conda -V;
7.升级conda update conda | conda update anaconda | conda update ananconda-navigator
8.conda env list 显示所有虚拟环境;
9.conda remove -n(或者name) python35 --all 移除虚拟环境
Pip
1. pip install 包名 -i https://pypi.doubanio.com/simple 在不切换镜像源的情况下,临时下载镜像;
https://segmentfault.com/a/1190000009703763 IE9报错 [vuex] vuex requires a Promise polyfill in this browser.
https://blog.csdn.net/landl_ww/article/details/79149461
1 230 880 997
ubuntu下;共存版的pip3升级不可用;
#!/usr/bin/python3
# GENERATED BY DEBIAN
import sys
# Run the main entry point, similarly to how setuptools does it, but because
# we didn't install the actual entry point from setup.py, don't use the
# pkg_resources API.
#from pip import main
#if __name__ == '__main__':
# sys.exit(main())
#2019-02-27 edit
from pip import __main__ # 将main改成__main__
if __name__ == '__main__':
sys.exit(__main__._main())