【问题标题】:ciscoconfparse unable to import python3.7 win10ciscoconfparse无法导入python3.7 win10
【发布时间】:2018-09-19 19:29:31
【问题描述】:

任何新的解决方案。我无法从 ciscoconfparse 导入 CiscoConfParse 我在 windows10 中使用 gpowershell 在 python3 中尝试了几个版本的 ciscoconfparse。

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ciscoconfparse import CiscoConfParse
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python3\lib\site-packages\ciscoconfparse\__init__.py", line 1, in <module>
    from .ciscoconfparse import *
  File "C:\Python3\lib\site-packages\ciscoconfparse\ciscoconfparse.py", line 4018

    ^
SyntaxError: invalid syntax

我还没有找到可以让我导入模块的版本。 我在这里浏览了几个链接..但没有找到答案。最接近我的问题是: ciscoconfparse in Python 3.4 module doesn't import correctly 但没有回答。

有什么新信息吗? 谢谢

【问题讨论】:

标签: python ciscoconfparse


【解决方案1】:

我已经重现了Win10和Python 3.7.0导致问题的bug。

FWIW,如果你完全卸载 Python 3.7.0(包括手动删除你的 Windows 安装目录树),然后安装 Python 3.7.1,你应该不会在 Windows 10 上遇到这个问题。

【讨论】:

    猜你喜欢
    • 2019-12-11
    • 2020-04-07
    • 2019-12-06
    • 2020-07-08
    • 2018-10-03
    • 1970-01-01
    • 1970-01-01
    • 2019-06-12
    • 1970-01-01
    相关资源
    最近更新 更多