简体   繁体   English

升级pip后无法通过pip安装dns

[英]Unable to install dns with pip after upgrading pip

Log speaks for itself. 日志不言自明。 I ran pip and it said I needed to upgrade it, so I did. 我跑了一点,它说我需要升级,所以我做到了。 Now I still can't install dns. 现在我仍然无法安装dns。

~/electrum/python electrum
Error: No module named 'dns'. Try 'sudo pip install <module-name>'
~/electrum/pip install dns
Collecting dns
  Could not find a version that satisfies the requirement dns (from versions: )
No matching distribution found for dns
~/electrum/git log
commit c8e67e2bd07efe042703bc1368d499c5e555f854 (HEAD -> master, origin/master, origin/HEAD)
Author: ThomasV <thomasv@electrum.org>

似乎您需要“ dnspython”软件包,该软件包是通过“ dns”名称导入的,这就是为什么您无法获得名为“ dns”消息的模块的原因:)试试这个

pip install dnspython

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM