Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近在 Makefile 中遇到了这个问题:
develop: pip install "file://`pwd`#egg=MyProject"
这在调用时工作正常,make develop但是当我通过命令行调用相同的命令时,它会出错“ No such file or directory: /home/slack/tmp/myproject#egg=MyProject'”
make develop
No such file or directory: /home/slack/tmp/myproject#egg=MyProject'
为什么它在 Makefile 中但没有从命令行显式调用时会起作用?
该file://位告诉 pip 从本地资源安装。该pwd命令告诉它本地资源在当前目录中,然后它附加了鸡蛋的名称。
file://
pwd
我假设这个 make 文件设置了 egg,以便命名约定适用于这个查找,并且 makefile 中可能有一些默认变量或命令可以调整它。