0

我正在尝试从此运行代码。代码是用 python 2 编写的,所以我使用的是带有 anaconda 的虚拟环境。该代码回复了相当旧的 cadquery 1.2.0 版本,我使用 pip 将其安装到 conda 环境中。我还使用本页中描述的过程安装了 FreeCAD 。当我运行 coed 时,出现以下错误:

ImportError: cadquery was unable to determine freecad library path

完整的输出是:

  File "generate_hilbert_curve.py", line 18, in <module>
    import cadquery as cq
  File "/Users/vid/opt/anaconda3/envs/python2/lib/python2.7/site-packages/cadquery/__init__.py", line 2, in <module>
    from .freecad_impl.geom import Plane,BoundBox,Vector,Matrix,sortWiresByBuildOrder
  File "/Users/vid/opt/anaconda3/envs/python2/lib/python2.7/site-packages/cadquery/freecad_impl/__init__.py", line 153, in <module>
    path = _fc_path()
  File "/Users/vid/opt/anaconda3/envs/python2/lib/python2.7/site-packages/cadquery/freecad_impl/__init__.py", line 145, in _fc_path
    raise ImportError('cadquery was unable to determine freecad library path')
ImportError: cadquery was unable to determine freecad library path

什么是潜在的错误来源和可能的解决方案?

4

0 回答 0