简体   繁体   English

在 Python 中运行 OSMNX 时,如何解决 Intel MK 致命错误?

[英]How do I solve an Intel MK Fatal Error when running OSMNX in Python?

I am running Python 3.6.1 with Anaconda 4.4.0 (64-bit) on Windows 10. I am trying to run OSMNX sample code ( seen here )我在 Windows 代码 10 上运行 Python 3.6.1 和 Anaconda 4.4.0(64 位)示例(我正在尝试运行OSMNX代码)

My code starts by successfully importing packages:我的代码从成功导入包开始:

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 

When I run the following code I find no error:当我运行以下代码时,我发现没有错误:

osmnx.save_gdf_shapefile(city)
city = osmnx.project_gdf(city)
fig, ax = osmnx.plot_shape(city, figsize=(3,3))

I find an error when I run the following:运行以下命令时发现错误:

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

This is the error I get:这是我得到的错误:

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. 

How do I solve this error?我该如何解决这个错误? Thanks in advance!提前致谢!

How did you install OSMnx?你是如何安装 OSMnx 的? If you install it in a conda env per its install instructions you should not experience this sort of missing dll/system path issue.如果您按照其安装说明将其安装在 conda env 中,您应该不会遇到这种缺少 dll/系统路径的问题。 Your best bet to solve this would be to install it according to that documentation.解决此问题的最佳选择是根据该文档进行安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行 .exe 文件 Python 2.7 时 Pyinstaller Intel MKL 致命错误 - Pyinstaller Intel MKL fatal error when running .exe file Python 2.7 运行 kaldi gst 现场演示时出现 intel mkl 致命错误 - intel mkl fatal error when running kaldi gst live demo 使用python运行我的nlp脚本时,如何解决“名称'score'未定义”的问题? - How do I solve the problem of “name 'score' is not defined” when running my nlp script using python? 使用 QT 运行 pytest 时发生致命 Python 错误 - Fatal Python Error when running pytest with QT 在 MacOS 上运行 Python Flask 时如何解决此错误 - How to solve this error when running Python Flask on MacOS 运行 Prophet()、ds 和 y 时如何解决 ValueError - how do i solve ValueError when running Prophet(), ds and y 如何解决 Python 致命错误:init_sys_streams - How to solve Python fatal error: init_sys_streams python 中的人脸识别库在运行命令时出现启动进程失败。 我该如何解决这个问题? - Face recognition library in python gives out failed to initiate process when running a command. How do i solve this? 如何解决 Python 中的 Google Sheet API 错误 - How do I solve a Google Sheet API error in Python 如何解决 Python 中的关键错误 412? - How do I solve a key error 412 in Python?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM