ubuntu更换pip源

 启动并进入容器、

 --name:为容器命名

然后执行以下命令

保存并退出时要先按Esc键,然后按shift冒号wq 

[global]
timeout = 6000
index-url = https://pypi.douban.com/simple
trusted-host = pypi.douban.com

 安装Django实验:

安装路径改为豆瓣源 

猜你喜欢

转载自blog.csdn.net/weixin_42336579/article/details/81390595