升级pip后无法使用pip安装dns

时间:2018-01-13 19:26:59

标签: python macos pip

Log不言而喻。我跑了点,它说我需要升级它,所以我做了。现在我还是无法安装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>

1 个答案:

答案 0 :(得分:3)

似乎你需要&#34; dnspython&#34;包装,由&#34; dns&#34;这就是为什么你得到没有命名的模块&#39; dns&#39; 消息的名称:)试试这个

pip install dnspython