Ubuntu에서 pip 설치 속도를 늦추는 솔루션

pip를 사용하여 Ubuntu에서 타사 라이브러리를 설치할 때 설치 속도가 너무 느립니다.

세부 사항은 창과 동일합니다.

pip 미러 소스를 변경해야합니다. 방법은 다음과 같습니다.

.pip 숨겨진 폴더 만들기

mkdir ~/.pip

폴더로 이동

cd ~/.pip

pip.conf 파일 생성

touch pip.conf

pip.conf 파일 편집

다음 내용을 pip.conf에 복사하고 저장하고 종료합니다. 해 보자.

[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com

일부 국내 출처 :

새 버전의 우분투는 https 소스를 사용해야하므로주의하십시오.

칭화 : https://pypi.tuna.tsinghua.edu.cn/simple

Alibaba Cloud : http://mirrors.aliyun.com/pypi/simple/

중국 과학 기술 대학교 https://pypi.mirrors.ustc.edu.cn/simple/

화중 과학 기술 대학교 : http://pypi.hustunique.com/

산동 공과 대학교 : http://pypi.sdutlinux.org/ 

Douban : http://pypi.douban.com/simple/
 

추천

출처blog.csdn.net/u012798683/article/details/107316227