【问题标题】:Error when trying to install pyDNS for python 2.7尝试为 python 2.7 安装 pyDNS 时出错
【发布时间】:2020-04-11 20:53:13
【问题描述】:

当我尝试通过“pip install pyDNS”安装 pyDNS 时,我明白了;

ERROR: Command errored out with exit status 1:
 command: 'c:\users\עידן\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\עידן\\AppData\\Local\\Temp\\pip-install-856byly1\\pydns\\setup.py'"'"'; __file__='"'"'C:\\Users\\עידן\\AppData\\Local\\Temp\\pip-install-856byly1\\pydns\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
     cwd: C:\Users\עידן\AppData\Local\Temp\pip-install-856byly1\pydns\
Complete output (7 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\עידן\AppData\Local\Temp\pip-install-856byly1\pydns\setup.py", line 12, in <module>
    import DNS
  File "C:\Users\עידן\AppData\Local\Temp\pip-install-856byly1\pydns\DNS\__init__.py", line 14, in <module>
    import Type,Opcode,Status,Class
ModuleNotFoundError: No module named 'Type'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check 
the logs for full command output.

【问题讨论】:

    标签: python python-2.7 pip


    【解决方案1】:

    我在目录路径中看到python38-32。它不是 Python 2.7,并且该模块仅适用于 Python2。

    【讨论】:

      猜你喜欢
      • 2017-05-11
      • 2021-12-26
      • 2014-12-03
      • 1970-01-01
      • 2015-05-18
      • 1970-01-01
      • 2012-01-04
      • 2022-09-28
      • 1970-01-01
      相关资源
      最近更新 更多