12306 icon indicating copy to clipboard operation
12306 copied to clipboard

pip install -r requirements.txt报错

Open 123456thomas opened this issue 4 years ago • 4 comments

描述问题

不能安装ntplib==0.3.3

重现步骤

pip install -r requirements.txt

ERROR: Could not find a version that satisfies the requirement ntplib==0.3.3 (from -r requirements.txt (line 7)) (from versions: 0.3.4) ERROR: No matching distribution found for ntplib==0.3.3 (from -r requirements.txt (line 7))

环境信息

  • ubuntu
  • python3.6.11
  • 订票小助手版本 1.1.101

额外的备注

  • Add any other context about the problem here.

123456thomas avatar Sep 19 '20 05:09 123456thomas

建议指定pip源 pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt 还不行,可以尝试升级python版本 另外,可以加群求助,原作者可能没空看,群里闲人多</狗头>

ZhangErling avatar Sep 20 '20 06:09 ZhangErling

把 ntplib==0.3.3 改成 ntplib==0.3.4,或者改成ntplib

kris-yi avatar Sep 24 '20 02:09 kris-yi

跟新版本后好了。

123456thomas avatar Oct 05 '20 10:10 123456thomas

修改requirements.txt里面对应的版本就行了

CQUPTLei avatar Mar 01 '21 01:03 CQUPTLei