Ubuntu服务器连接github安装配置

需求:想在Ubuntu服务器上通过pip安装某github上的工具包,如:

pip install git+https://github.com/votchallenge/toolkit.git

1、先安装git工具

sudo apt install git

2、查询所在地的DNS推荐

多个地点ping[github.com]服务器,网站测速,站长工具 (chinaz.com)

检测完成后可以选择一个自己所在地的推荐DNS,点击地图对应位置就可以得到对应的IP。

 

3、打开host文件,将对应的DNS输入

sudo nano /etc/hosts

 Ctrl+X,然后按Y保存后即可

4、重启终端,运行pip install git+https://github.com/votchallenge/toolkit.git,完成安装

猜你喜欢

转载自blog.csdn.net/qq_17783559/article/details/131132108
今日推荐