Warning: Attempt to read property "ID" on bool in /www/wwwroot/129.28.78.18/wp-content/themes/storeys-pro/wbc/components/og_schema/wb_og_schema.php on line 471

Warning: Attempt to read property "display_name" on bool in /www/wwwroot/129.28.78.18/wp-content/themes/storeys-pro/wbc/components/og_schema/wb_og_schema.php on line 480

Warning: Attempt to read property "display_name" on bool in /www/wwwroot/129.28.78.18/wp-content/themes/storeys-pro/wbc/components/og_schema/wb_og_schema.php on line 487

Warning: Attempt to read property "description" on bool in /www/wwwroot/129.28.78.18/wp-content/themes/storeys-pro/wbc/components/og_schema/wb_og_schema.php on line 489

Warning: Attempt to read property "ID" on bool in /www/wwwroot/129.28.78.18/wp-content/themes/storeys-pro/wbc/components/og_schema/wb_og_schema.php on line 493

Python切换pip镜像源(安装源)的方法详解

前言:

在学习python的时候,用pip下载一些库,有时候非常的慢,简直达到了奔溃的边缘。因为默认pip是使用Python官方的源,但是由于国外官方源经常被墙,导致不可以用,我们可以使用国内的Python镜像源,从而解决Python安装不上库的烦恼。

常见国内镜像源

http://pypi.douban.com/simple/ 豆瓣 
http://mirrors.aliyun.com/pypi/simple/ 阿里 
http://pypi.hustunique.com/simple/ 华中理工大学 
http://pypi.sdutlinux.org/simple/ 山东理工大学 
http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学

评论留言