windows 环境下jupyter安装Rtree报错

安装时报错
Collecting Rtree
Using cached Rtree-0.8.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\dellpc\AppData\Local\Temp\pip-build-zq00u5gn\Rtree\setup.py”, line 4, in
import rtree
File “C:\Users\dellpc\AppData\Local\Temp\pip-build-zq00u5gn\Rtree\rtree_init_.py”, line 1, in
from .index import Rtree
File “C:\Users\dellpc\AppData\Local\Temp\pip-build-zq00u5gn\Rtree\rtree\index.py”, line 6, in
from . import core
File “C:\Users\dellpc\AppData\Local\Temp\pip-build-zq00u5gn\Rtree\rtree\core.py”, line 101, in
raise OSError(“could not find or load spatialindex_c.dll”)
OSError: could not find or load spatialindex_c.dll
在这里插入图片描述
下载了安装包之后又报错
-whl is not a supported wheel on this platform.

挠头
求助万能的百度,根据网友的提示:

安装了python3,直接输入

import wheel.pep425tags as w
print(w.get_supported())

查看当前支持的格式,我的是
在这里插入图片描述
https://www.lfd.uci.edu/~gohlke/pythonlibs/#rtree网站下载相应格式的Rtree模块,比如我下载的是Rtree-0.9.4-cp37-cp37m-win_amd64.whl,因为我是64位系统,支持cp37
随后导入jupyter

!pip install E:\software\Rtree-0.9.4-cp37-cp37m-win_amd64.whl

注意install后面的是你存放该文件的路径,我的是E:\software
Done
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值