2016-08-05 71 views
1

是否可以从位于只读文件系统上的目录执行editable pip install?现在设置工具试图写入一个鸡蛋文件到源代码目录:pip可编辑安装在只读文件系统上

$ 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/ 

文档说:

对于本地项目中,“SomeProject.egg-信息”目录中创建 相对到项目路径。与仅使用 setup.py develop相比,这是一个优点,它可以直接相对于当前工作目录创建“egg-info”。

+0

希望你这样做sudo访问 –

+0

是的,文件系统本身是只读的。 –

回答

0

如果你的环境中有任何可写的文件系统,你可能可以做我所做的。我在我的源代码目录(在你的例子中为src/stuff.egg-info)中创建了一个符号链接,指向一个可写位置(可能位于不同的读写文件系统),并且能够使pip install -e .工作。