【发布时间】:2016-08-05 21:39:27
【问题描述】:
是否可以从位于只读文件系统上的目录中执行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/
文档说:
对于本地项目,创建“SomeProject.egg-info”目录 相对于项目路径。与仅使用相比,这是一个优势 setup.py develop,它直接相对于创建“egg-info” 当前工作目录。
【问题讨论】:
-
希望您使用 sudo 访问权限
-
是的,文件系统本身是只读的。
-
不知道还有没有人
标签: python pip setuptools distutils setup.py