pip安装e。在conda环境中给出错误13

2024-05-10 01:26:38 发布

您现在位置:Python中文网/ 问答频道 /正文

在使用miniconda3在wsl上的Ubuntu上安装sunpy的开发分支时,根据它们的docs$ pip install -e .的最后一个命令终止于error 13: permission denied。在

我所有的文件都归我的用户所有。在

整个错误是:

Obtaining file:///mnt/h/Documents/Projects/sunpy-git Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... error Complete output from command /home/akram/miniconda3/envs/sunpy-dev/bin/python /home/akram/miniconda3/envs/sunpy-dev/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpw4nipzaf: running dist_info writing /mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.egg-info/PKG-INFO writing dependency_links to /mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.egg-info/dependency_links.txt writing entry points to /mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.egg-info/entry_points.txt writing requirements to /mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.egg-info/requires.txt writing top-level names to /mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.egg-info/top_level.txt reading manifest file '/mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file '/mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.egg-info/SOURCES.txt' creating '/mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.dist-info' error: [('/mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.egg-info', '/mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.dist-info', "[Errno 13] Permission denied: '/mnt/h/Documents/Projects/sunpy-git/pip-wheel-metadata/sunpy.dist-info'")]

---------------------------------------- Command "/home/akram/miniconda3/envs/sunpy-dev/bin/python

/home/akram/miniconda3/envs/sunpy-dev/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpw4nipzaf" failed with error code 1 in /mnt/h/Documents/Projects/sunpy-git

但是在windows中从Anaconda提示符运行代码不会给出错误。在

请注意错误:13柱建议没有帮助。即使卸载并重新安装miniconda也没有帮助。


Tags: piptogitinfotxteggerrordocuments
1条回答
网友
1楼 · 发布于 2024-05-10 01:26:38

我解决了问题。它似乎与wsl的权限以及它在NTFS上修改文件的能力有关。在阅读了python上的Bash下的第二部分之后得出了这个结论。解决方案是通过右键单击终端图标并执行与上述相同的命令,打开具有管理员权限的终端(命令提示符、cmder、hyper或任何终端)。在

顺便说一句,谢谢@Carlos和@phd的回复。在

相关问题 更多 >