gpt4 book ai didi

python - pip安装mercurial错误

转载 作者:行者123 更新时间:2023-12-01 04:52:01 25 4
gpt4 key购买 nike

我所在的服务器没有 root 访问权限,并且在尝试安装 Mercurial 时遇到了很多麻烦,因为并非所有 python 库都可用(如 osutil)。然后我尝试了:

pip install mercurial

它运行并做了一些事情,然后因以下错误而退出:

creating /usr/local/lib/python2.7/dist-packages/mercurial

error: could not create '/usr/local/lib/python2.7/dist-packages/mercurial': Permission denied

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/users/aas62/opt/mercurial-3.3-rc/build/mercurial/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-JnShsv-record/install-record.txt failed with error code 1

但出乎意料的是,mercurial 似乎可以工作并且已安装。我什至跑了

hg debuginstall

并且它没有返回任何错误。一切都好吗,还是将来会崩溃并弄乱我的存储库?

完整的日志和错误消息在这里: https://raw.githubusercontent.com/texasflood/configs/b7b206cd6464a92b1d157e28f7cb19107fd755ae/pip.log

最佳答案

在系统范围的 dist-packages 中创建 mercurial 目录时,您的安装似乎在最后崩溃了。

在此之前的所有其他内容看起来都有效,这可以解释为什么您可以运行 hg

由于您没有 sudo 权限,您可以尝试将该模块安装在您的主目录中,而不是系统范围内:

pip install --user mercurial

关于python - pip安装mercurial错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28226846/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com