pip 设置代理

Windows

例如要安装 mysql-connector-python,注意 proxy 要用双引号括起来

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ mysql-connector-python --proxy="http://serverIP:port"

Linux

例如要安装 mysql-connector-python

$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ mysql-connector-python --proxy="http://serverIP:port"

 

上一篇:Flink 实践教程:入门(2):写入 Elasticsearch


下一篇:flink-connector-starrocks sql写入 starrocks