Python配置使用本地的源安装第三方模块
创建配置文件
配置 pip3 使用本地源
mkdir ~/.pip
vi ~/.pip/pip.conf
写入如下内容:
[global]
index-url=https://mirrors.aliyun.com/pypi/simple
Python3.6.6 及以上的版本不用配置下面的内容
[list]
format=columns
豆瓣源: https://pypi.douban.com/simple/
阿里源: https://mirrors.aliyun.com/pypi/simple
示例:
安装增强版的 Python 解释器 Ipython
pip3 install ipython