首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Python中运行OSMNX时,如何解决英特尔MK致命错误?

在Python中运行OSMNX时,如何解决英特尔MK致命错误?
EN

Stack Overflow用户
提问于 2020-05-02 06:07:32
回答 1查看 32关注 0票数 0

我在Windows10上运行Python3.6.1和Anaconda 4.4.0 (64位)。我正在尝试运行OSMNX示例代码(seen here)。

我的代码从成功导入包开始:

代码语言:javascript
复制
import requests
import matplotlib.cm as cm
import matplotlib.colors as colors
import pandas as pd
import numpy as np
from datetime import datetime
from dateutil.parser import parse
import geopandas
import osmnx 

当我运行以下代码时,我没有发现任何错误:

代码语言:javascript
复制
osmnx.save_gdf_shapefile(city)
city = osmnx.project_gdf(city)
fig, ax = osmnx.plot_shape(city, figsize=(3,3))

运行以下命令时,我发现了一个错误:

G = osmnx.graph_from_point((37.79, -122.41), distance=1, network_type='all')

这是我得到的错误:

代码语言:javascript
复制
Projected the GeoDataFrame "geometry to project" to UTM-10 in 0.01 seconds
Projected the GeoDataFrame "geometry to project" to default_crs in 0.01 seconds
Created bounding box 1 meters in each direction from (37.79, -122.41): 37.79000901274339,37.78999098725659,-122.4099886430464,-122.41001135695363
Projected the GeoDataFrame "geometry to project" to UTM-10 in 0.01 seconds
Projected the GeoDataFrame "geometry to project" to default_crs in 0.01 seconds
Projected the GeoDataFrame "geometry to project" to UTM-10 in 0.01 seconds
Projected the GeoDataFrame "geometry to project" to default_crs in 0.01 seconds
Requesting network data within bounding box from API in 1 request(s)
Retrieved response from cache file "cache\ab03dfa5a6c968bcbd2e10dd360bd8f6.json" for URL "http://overpass-api.de/api/interpreter?data=%5Bout%3Ajson%5D%5Btimeout%3A180%5D%3B%28way%5B%22highway%22%5D%5B%22area%22%21~%22yes%22%5D%5B%22highway%22%21~%22proposed%7Cconstruction%7Cabandoned%7Cplatform%7Craceway%22%5D%5B%22service%22%21~%22private%22%5D%5B%22access%22%21~%22private%22%5D%2837.785485%2C-122.415690%2C37.794515%2C-122.404310%29%3B%3E%3B%29%3Bout%3B"
Got all network data within bounding box from API in 1 request(s) and 0.01 seconds
Creating networkx graph from downloaded OSM data...
Graph was not connected, retained only the largest weakly connected component (1,496 of 1,511 total nodes) in 0.06 seconds
Created graph with 1,496 nodes and 3,149 edges in 0.10 seconds
Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll. 

如何解决此错误?提前感谢!

EN

回答 1

Stack Overflow用户

发布于 2020-05-05 01:12:45

您是如何安装OSMnx的?如果你按照它的install instructions把它安装在一个conda环境中,你应该不会遇到这种丢失dll/系统路径的问题。要解决这个问题,最好的办法就是根据文档进行安装。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61551542

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档