Python3.9安装Cartopy使用报错:DLL load failed while importing trace
Python3.9【Cartopy】ImportError: DLL load failed while importing trace:
- 安装Cartopy使用报错
- 报错
- 解决方案
- 1 卸载cartopy,及其依赖的包
- 2安装新的wheel
安装Cartopy使用报错
最近安装cartopy使用报错,然后花费了太久的时间(4个小时不等),记录一下
报错
import cartopy.trace
ImportError: DLL load failed while importing _crs: The specified module could not be found.
参考错误:
解决方案
1 卸载cartopy,及其依赖的包
pip uninstall cartopy
pip uninstall Shapely
pip uninstall Pillow
pip uninstall pyproj
pip uninstall pyshp
#pip uninstall fiona
#pip uninstall pillow
#pip uninstall GDAL
2安装新的wheel
第三方库
从上述链接下载所需要的wheel
找不到的wheel, pyshp下载地址
下载好以后放入安装文件(安装最新版,根据python版本选择amd-64),依次安装pyshp, pyproj, pillow, shapely,可选(fiona,pillow,GDAL)
下列是在anaconda prompt输入
pip install E:\ProgramData\Anaconda3\pkgs\pyshp-2.3.0-py2.py3-none-any.whl
pip install E:\ProgramData\Anaconda3\pkgs\pyproj-3.3.1-cp39-cp39-win_amd64.whl
pip install E:\ProgramData\Anaconda3\pkgs\Pillow-9.1.1-cp39-cp39-win_amd64.whl
pip install E:\ProgramData\Anaconda3\pkgs\Shapely-1.8.2-cp39-cp39-win_amd64.whl
#pip install E:\ProgramData\Anaconda3\pkgs\Pillow-9.1.1-cp39-cp39-win_amd64.whl
#pip install E:\ProgramData\Anaconda3\pkgs\GDAL-3.4.3-cp39-cp39-win_amd64.whl
#pip install E:\ProgramData\Anaconda3\pkgs\Fiona-1.8.21-cp39-cp39-win_amd64.whl
最后安装cartopy!,见证奇迹的时刻到啦
pip install E:\ProgramData\Anaconda3\pkgs\Cartopy-0.20.2-cp39-cp39-win_amd64.whl
最后,就可以啦!
Python3.9安装Cartopy使用报错:DLL load failed while importing trace相关推荐
- python 调用 tensorflow.dll_解决windows上安装tensorflow时报错,“DLL load failed: 找不到指定的模块”的问题...
最近打算开始研究一下机器学习,今天在windows上装tensorflow花了点功夫,其实前面的步骤不难,只要依次装好python3.5,numpy,tensorflow就行了,有一点要注意的是目前只 ...
- jupyter notebook导入numpy 失败 报错:Original error was: DLL load failed while importing _multiarray_umath:
jupyter notebook导入numpy 失败 报错:Original error was: DLL load failed while importing _multiarray_umath: ...
- 【踩坑记录】python环境已经安装win32api的前提下,仍报DLL load failed while importing win32api的解决方法
目录 1 背景 2 解决方法 1 背景 在执行程序的时候报错误提示:DLL load failed while importing win32api: 找不到指定的程序. 2 解决方法 先检查是否安装 ...
- Python使用Pillow包报错 ImportError: DLL load failed while importing _imaging: 找不到指定的程序。
最近使用Python调用Pillow时报错,代码就两行: from PIL import Imageprint("PyCharm") 报错如下: Traceback (most r ...
- 使用wxauto出现ImportError: DLL load failed while importing win32gui: 找不到指定的程序报错的解决方案
文章目录 背景 错误提示 解决方案 建议关注我的 微信公众号:破壳Ai,分享最佳学习路径.教程和资源.成长路上,我陪你. 背景 利用 wxauto 开发微信机器人,Pycharm 中运行程序时出错 错 ...
- Django终端运行报错:ImportError: DLL load failed while importing _sqlite3: 找不到指定的模块。
在pycharm运行没问题,但是在终端cmd或Powershell就会出错,如下: Traceback (most recent call last):File ".\manage.py&q ...
- jupyter notebook出现DLL load failed while importing _multiarray_umath: 找不到指定的模块
安装gpu版本的pytorch之后,在pycharm上测试没出现问题而在jupyter notebook却出现问题 问题描述: import torch E:\Miniconda3\envs\d2l\ ...
- 17.python-解决 pycharm运行提示:from PyQt5 impor ImportError:DLL load failed while importing QtCore
报错提示: from PyQt5 import QtCore ImportError: DLL load failed while importing QtCore: The specified pr ...
- [Win11] ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块 Conda无法激活环境
文章目录 1 报错 2 解决 参考 1 报错 Traceback (most recent call last):File "<stdin>", line 1, in ...
- from PyQt6 import QtCore, QtGui, QtWidgets ImportError: DLL load failed while importing QtGui:
from PyQt6 import QtCore, QtGui, QtWidgets ImportError: DLL load failed while importing QtGui: 找不到指定 ...
最新文章
- 【转】创建不可见的Activity
- 以太坊 node data write error_以太坊的新时代将要到来,DeFi会是最大的收益吗?
- Linux操作系统下共享文件夹设置方法介绍
- 利用python进行统计及分析第7章,构建电影分类的dummies
- 建立分析模型和设计模型
- pt-heartbeat 监测RDS延迟
- springBoot跨域注解@CrossOrigin
- c9500堆叠配置_用C ++堆叠
- Nopi的学习笔记(C#篇)
- 免费高清图片素材网站
- 2021-2027全球与中国便携式VOC气体检测仪市场现状及未来发展趋势
- 从程序员到项目经理(10):程序员加油站 --要执着但不要固执【转载】
- weblogic10 配置 domian
- 嫂嫂学计算机,开心一刻,,老妈催婚, 含泪让男闺蜜冒充, 进门后嫂子愣住了…
- 深入浅出contenteditable富文本编辑器
- js 使用百度翻译api demo
- HDU 4069 Squiggly Sudoku Dancing-Links(DLX)+Floodfill
- Python模块和文件操作
- 从前端角度浅谈如何做好网站的SEO优化
- R语言用load(xxx.Rdata)报错 bad restore file magic number (file may be corrupted) -- no data loaded