安装gdsCAD时出现问题

2024-07-04 13:00:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用anaconda提示符安装gdsCAD:https://pypi.org/project/gdsCAD/

但我得到了一个错误:

Collecting gdsCAD
  Using cached https://files.pythonhosted.org/packages/d0/54/60b48ee74d5ba364c4aaaf6a73e0d47274a501aafd3d64b04ce7b03b40f9/gdsCAD-0.4.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\EPFL\AppData\Local\Temp\pip-install-59twocd7\gdsCAD\setup.py", line 4, in <module>
        from git_version import sdist, get_version
      File "C:\Users\EPFL\AppData\Local\Temp\pip-install-59twocd7\gdsCAD\git_version.py", line 107
        print get_version()
                        ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\EPFL\AppData\Local\Temp\pip-install-59twocd7\gdsCAD\

Tags: installpipinpyhttpsversionlocalsetup
1条回答
网友
1楼 · 发布于 2024-07-04 13:00:09

发生此错误是因为您正试图将Python3与gdsCAD一起使用,但它与gdsCAD不兼容。例如,请参见the same error occurring here for the same reason。在

如果你想要一个替代品,你可以考虑尝试一下PHIDL(完全公开:我是首席开发人员),这是一个简化的GDS几何体/CAD python模块,我们在过去两年中一直在研究(作为一个健壮和简化的gdspy前端构建)。在

相关问题 更多 >

    热门问题