gpt4 book ai didi

python - pip 可编辑安装在只读文件系统上

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

可以做一个editable pip install从位于只读文件系统上的目录?现在安装工具正在尝试将一个 egg 文件写入源目录:

$ pip install -e /tf/stuff/
Obtaining file:///tf/stuff
Complete output from command python setup.py egg_info:
running egg_info
writing requirements to src/stuff.egg-info/requires.txt
error: [Errno 30] Read-only file system: 'src/stuff.egg-info/requires.txt'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tf/stuff/

文档说:

For local projects, the "SomeProject.egg-info" directory is created relative to the project path. This is one advantage over just using setup.py develop, which creates the "egg-info" directly relative the current working directory.

最佳答案

如果你的环境中有任何可写的文件系统,你也许可以做我所做的。我在我的源目录(在您的示例中为 src/stuff.egg-info)创建了一个符号链接(symbolic link),该链接指向一个可写的位置(可能在不同的读写文件系统上)并且能够获取 pip install -e .去工作。

关于python - pip 可编辑安装在只读文件系统上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38798106/

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