最近我想在Mac上尝试flow-project,在安装了所有的需求并尝试运行python examples/sumo/sugiyama.py之后,我得到了一个错误,如下所述。你能帮我解题吗?
Traceback (most recent call last):
File "examples/sumo/sugiyama.py", line 7, in <module>
from flow.core.experiment import Experiment
File "/Users/voanhkha/Desktop/flow/flow/core/experiment.py", line 9, in <module>
from flow.core.util import emission_to_csv
File "/Users/voanhkha/Desktop/flow/flow/core/util.py", line 6, in <module>
from lxml import etree
ImportError: dlopen(/Users/voanhkha/anaconda3/envs/flow/lib/python3.6/site-packages/lxml/etree.cpython-36m-darwin.so, 2): no suitable image found. Did find:
/Users/voanhkha/anaconda3/envs/flow/lib/python3.6/site-packages/lxml/etree.cpython-36m-darwin.so: unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
/Users/voanhkha/anaconda3/envs/flow/lib/python3.6/site-packages/lxml/etree.cpython-36m-darwin.so: unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00发布于 2019-09-21 20:07:25
我遇到了同样的问题,卸载了lxml的conda版本,然后用pip重新安装了它。
conda uninstall lxml
pip install lxmlhttps://stackoverflow.com/questions/57898440
复制相似问题