栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

AttributeError:类型对象“ pandana.cyaccess.cyaccess”没有属性“ __reduce_cython__”

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

AttributeError:类型对象“ pandana.cyaccess.cyaccess”没有属性“ __reduce_cython__”

谢谢@DavidW。这是我所做的,并且可以解决问题:

首先,由于我使用的是Collaboratory,因此我刚刚重新启动了会话以卸载pandana。

然后,我升级了Cython:

import sys!{sys.executable} -m pip install --upgrade cython# Output: Collecting cython  Downloading https://files.pythonhosted.org/packages/45/f2/a7101b3457561e57f5abcd6f5ac13190054fecd7370f58f36fe2d6574742/Cython-0.29.13-cp36-cp36m-manylinux1_x86_64.whl (2.1MB)     |████████████████████████████████| 2.1MB 1.9MB/s eta 0:00:01Installing collected packages: cythonSuccessfully installed cython-0.29.13

只有那时,我安装了pandana:

!{sys.executable} -m pip install pandana

现在工作正常。

因此,似乎@ead到此github-
issue
的链接是有意义的。cython实现的软件包是从不正确的Cython版本开始构建的。必须先卸载,然后再升级Cython,然后才能安装pandana。



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/652858.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号