简体   繁体   English

在 python 中安装 scanpy 时遇到问题

[英]Having trouble in installing scanpy in python

My python version is 3.8.我的python版本是3.8。 However, while Im trying to install scanpy using this command pip install scanpy in jupyter notebook, I'm getting following error message:但是,当我尝试在 jupyter notebook 中使用此命令pip install scanpy时,我收到以下错误消息:

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.

Now I am unable to understand what should I do to fix this issue.现在我不明白我应该怎么做才能解决这个问题。 Please assist me.请帮助我。

install scanpy安装扫描仪

I have run this command in shell, but when I use jypyter notebook it again shows error message我已经在 shell 中运行了这个命令,但是当我使用 jypyter notebook 时它再次显示错误信息

I have restart the kernel but problem is still there....我已经重新启动 kernel 但问题仍然存在....

As the error you posted says, it looks like you don't have permissions to install the required package. Try again the same command but in a shell opened as administrator.正如您发布的错误所说,您似乎没有安装所需 package 的权限。再次尝试相同的命令,但在以管理员身份打开的 shell 中。

Here's how to do it: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/jj717276(v=ws.11)操作方法如下: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/jj717276(v=ws.11)

As an alternative, you can run jupyter itself as administrator.作为替代方案,您可以以管理员身份运行 jupyter 本身。 This should be enough as permission to install whatever you need.这应该足以作为安装所需内容的权限。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM