首页 > 编程语言 >python的pip包国内源下载安装

python的pip包国内源下载安装

时间:2023-10-10 09:16:28浏览次数:35  
标签:cn python pypi simple 下载安装 pip -- com

pip install 包 -i
https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.douban.com

--命令镜像
--直接使用这个安装项目中的依赖,国内网站
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.douban.com

pip install 包 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.douban.com

ps :--trusted-host pypi.douban.com 这是为了获得ssl证书的认证

常见pip镜像源(国内源)

清华:
https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:
http://mirrors.aliyun.com/pypi/simple/

中国科技大学
https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:
http://pypi.hustunique.com/

山东理工大学:
http://pypi.sdutlinux.org/

豆瓣:
http://pypi.douban.com/simple/

标签:cn,python,pypi,simple,下载安装,pip,--,com
From: https://www.cnblogs.com/hmfl/p/17753676.html

相关文章

  • python获取文件的最后一行
    #_*_coding:utf-8_*_importnumpyasnpimportosimportsysdeflistDirectory(path,list_path,filetype):forfileinos.listdir(path):file_path=os.path.join(path,file)ifos.path.isdir(file_path):continueelif......
  • Python装饰器(一次搞清楚)
    最重要的情绪管理是要明白,没有一种情绪是不应该的一、简单装饰器Python装饰器是一种语法糖,用于在不改变原有函数代码的情况下,为函数添加额外的功能。装饰器本质上是一个函数,它接收一个函数作为参数,并返回一个新的函数,通常使用@语法糖来应用装饰器。1.装饰器本质是一个函数,可......
  • python练习题(一)
    算法题1.计算1-100之间所有偶数的和#定义一个变量用来保存最后的累加和total_even_sum=0#从1到100的数fornuminrange(1,101):#判断是否为偶数ifnum%2==0:total_even_sum+=numprint("偶数和是:",total_even_sum)2.计算1-100的和#......
  • python练习题(二)
    文件操作1.读取一个文本文件,打印文件内容到控制台。defprint_file_content(file_path):try:withopen(file_path,'r')asfile:content=file.read()print(content)exceptExceptionase:print(f"没有找到文件:{e}"......
  • 2023-02-18-我写了一个python库dumb_meun
    +++title="我写了一个python库:dumb_meun"description=""date=2023-02-18T16:19:07+08:00featured=falsecomment=truetoc=truereward=truecategories=[""]tags=["python"]series=[]images=[]+++我之......
  • 2023-02-18-python打包成exe
    +++title="如何把Python程序打包成exe"description=""date=2023-02-18T22:27:09+08:00featured=falsecomment=truetoc=truereward=truecategories=[""]tags=["python"]series=[]images=[]+++我需要把我......
  • 2023-02-18-python打包
    +++title="Python打包和上传到pypi"description=""date=2023-02-18T21:59:09+08:00featured=falsecomment=truetoc=truereward=truecategories=[""]tags=["python"]series=[]images=[]+++教程用pyth......
  • 2023-02-09-使用simple_term_menu创建更好的python菜单
    +++title="用simple_term_menu创建更好的python菜单"description=""date=2023-02-09T16:25:24+08:00featured=falsecomment=truetoc=truereward=truecategories=[""]tags=["python","menu"]seri......
  • python29days
    继承单继承下的属性查找多继承下的属性查找super和mro的使用多态和鸭子类型—————————————————————————————————————————————————面向对象的三大特征:封装,继承,多态什么是继承?继承就是让类和类之......
  • Win10安装VSCode并配置Python环境(完美避开踩过的所有坑)
    安装VScode下载vscode下载链接:https://code.visualstudio.com/Download根据自己的电脑型号下载对应的版本。我下载的是windows/UserInstaller,但是使用时会提示“”。所以,推荐下载SystemInstaller版本。两者区别可以自行百度,或......