[기타] 핍체인지 국내 소스 튜토리얼 및 국내 소스 주소


국내 미러 주소

알리바바 클라우드: https://mirrors.aliyun.com/pypi/simple/

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

두반: https://pypi.douban.com/simple/

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

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

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

추신: 주소가 잘못된 경우 http를 시도할 수 있습니다.


설치 중 일시적으로 소스 전환

예를 들면 다음과 같이 사용합니다 pip install -i 镜像链接 库名
.pip install -i http://mirrors.aliyun.com/pypi/simple/ numpy


영구 교체

1. 리눅스

~/.pip/pip.conf 수정(아니면 폴더 및 파일 생성. 폴더에 "." 추가하여 숨김폴더임을 표시
) to)는 https: //blog.csdn.net/qq_44214671/article/details/111008427을 참조할 수 있습니다.

2. 윈도우

  • 파일 탐색기에서 해당 폴더 %appdata%로 들어가세요Roaming
  • 폴더를 찾고 pip, 없는 경우 새로 만들고, 폴더를 입력합니다.
  • 파일을 찾아서 pip.ini없으면 하나 만들고 메모장으로 파일을 연 다음 내용을 다음 내용으로 바꿉니다(미러 주소는 직접 바꿀 수 있음).
[global]
index-url = http://pypi.douban.com/simple
[install]
use-mirrors =true
mirrors =http://pypi.douban.com/simple/
trusted-host =pypi.douban.com
  • 저장하고 닫습니다

참고 https://www.cnblogs.com/microman/p/6107879.html

Guess you like

Origin blog.csdn.net/qq_42475234/article/details/126042061