首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在python中安装scanpy有困难

在python中安装scanpy有困难
EN

Stack Overflow用户
提问于 2022-11-15 09:48:38
回答 1查看 34关注 0票数 1

我的python版本是3.8。然而,当我试图在jupyter笔记本中使用这个命令pip install scanpy安装scanpy时,我得到了以下错误消息:

代码语言:javascript
复制
ERROR: matplotlib 3.5.3 has requirement packaging>=20.0, but you'll have packaging 19.2 which is incompatible.
ERROR: anndata 0.8.0 has requirement packaging>=20, but you'll have packaging 19.2 which is incompatible.
ERROR: pynndescent 0.5.8 has requirement importlib-metadata>=4.8.1; python_version < "3.8", but you'll have importlib-metadata 0.23 which is incompatible.
ERROR: pynndescent 0.5.8 has requirement llvmlite>=0.30, but you'll have llvmlite 0.29.0 which is incompatible.
ERROR: pynndescent 0.5.8 has requirement numba>=0.51.2, but you'll have numba 0.45.1 which is incompatible.
ERROR: umap-learn 0.5.3 has requirement numba>=0.49, but you'll have numba 0.45.1 which is incompatible.
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\numpy\\compat\\py3k.py'
Consider using the `--user` option or check the permissions.

现在我不明白该怎么办才能解决这个问题。请帮帮我。

安装清空

我已经在shell中运行了这个命令,但是当我使用jypyter记事本时,它再次显示了错误信息

我重新启动了内核,但问题仍然存在.

EN

回答 1

Stack Overflow用户

发布于 2022-11-15 09:54:21

正如您发布的错误说明的那样,您似乎没有安装所需包的权限。再次尝试相同的命令,但在以管理员身份打开的shell中。

下面是如何做到这一点:https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/jj717276(v=ws.11)

作为另一种选择,您可以作为管理员运行jupyter本身。这应该是足够的许可来安装任何您需要的。

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

https://stackoverflow.com/questions/74443541

复制
相关文章

相似问题

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