我已經使用 conda config --prependchannels conda-forge、conda create -n ox --strict-channel-priority osmnx 安裝了 osmnx。當我嘗試使用 osmnx 模塊時,沒有一個模塊正在工作,例如當我使用時:import osmnx as oxplace_name = "Mitte, Hannover, Germany"ox.graph_from_place(place_name, network_type='drive')我收到錯誤:AttributeError: module 'osmnx' has no attribute 'graph_from_place'當我使用時:import osmnx as oxox.config(use_cache=True, log_console=True)我收到錯誤:AttributeError: module 'osmnx' has no attribute 'config'等等。沒有屬性起作用我還嘗試根據https://osmnx.readthedocs.io/en/stable/osmnx.html#module-osmnx.graph使用屬性,但它也無法解決相同的錯誤:import osmnx as oxplace_name = "Mitte, Hannover, Germany"ox.graph.graph_from_place(place_name, network_type='all_private')AttributeError: module 'osmnx' has no attribute 'graph'ox環境的python版本是3.8.6和Spyder(4.1.4)。您能幫我找到這些錯誤的解決方案嗎?
添加回答
舉報
0/150
提交
取消