python - 升级pip后无法用pip安装dns

标签 python macos pip

日志不言自明。我运行了 pip,它说我需要升级它,所以我升级了。现在还是安装不了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”名称导入的,这就是为什么你得到No module named 'dns'消息:)试试这个

pip install dnspython

关于python - 升级pip后无法用pip安装dns,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48243510/

相关文章:

python - 使用 time.time() 给函数计时通常返回 0 秒

python - 如何在 Python 中计算真正大整数的 exp(x)?

macos - 从 Mac/OSX 连接到 FTDI 设备 - 安装驱动程序技术

python - Pip 使用系统 python osx

python - 如何在同一虚拟环境中将私有(private)使用的包与与项目相关的包分开?

python - 用字符替换空格

python - 使用curses,如何更新屏幕或等待按键?

xcode - 更新到 Xcode 7.0 后 CMake 损坏

javascript - 单击 HTML 链接时如何执行 Apple 脚本?

使用环境变量的Pip.conf文件