首页 > 其他分享 >安装requirement.txt ,执行命令安装三方库报错ERROR

安装requirement.txt ,执行命令安装三方库报错ERROR

时间:2022-12-07 14:35:21浏览次数:49  
标签:douban requirement requirements pypi 报错 pip txt 安装

1.执行pip install -r requirements.txt命令,出现Could not find a version that satisfies the requirement hackhttp (from -r  requirements.txt (line 3)) (from versions: none) ERROR: No matching distribution found for hackhttp (from -r requirements.txt (li ne 3))报错

 2.直接选用pip源并且信任它的来源就可以解决这种问题,这里将pip源换成清华源、阿里源等都适用。
pip install 库包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install -r requirements.txt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

 

标签:douban,requirement,requirements,pypi,报错,pip,txt,安装
From: https://www.cnblogs.com/sentouceshi/p/16962954.html

相关文章