直接上命令:
pip install -e .
这么简单?是的这么简单,开发两年现在才知道(流泪.jpg)。
记得切换到项目的根目录。
如果项目没有setup.py则会报下面这个错误:
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: D:\code\src\chia WARNING: You are using pip version 21.2.2; however, version 21.2.4 is available. You should consider upgrading via the 'D:\code\pyenvs\test111\Scripts\python.exe -m pip install --upgrade pip' command.
再通过 -i 指定pip源,安装项目依赖就是倒杯水的时间
0 评论
大哥整点话呗~