超简单的安装Python项目依赖的方法

  • 分类: Python
  • 发表日期:2021-08-31 15:42:00
  • 最后修改:2021-08-31 16:15:00

直接上命令:

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源,安装项目依赖就是倒杯水的时间

 

post
2021年7月9日 09:40 原创 草稿

针对情报平台的多种 es dsl 测试

post
2021年7月13日 09:36 原创
post
2021年7月30日 12:01 原创
post
2021年7月30日 12:15 原创
post
2021年7月30日 15:07 原创
post
2021年7月30日 15:13 原创
post
2021年7月30日 15:18 原创
post
2021年7月30日 15:24 原创
post
2021年7月30日 16:09 原创
post
2021年7月30日 16:02 原创
post
2021年8月16日 15:28 原创
post
2021年8月16日 20:01
post
2021年8月17日 12:07 原创
post
2021年10月8日 16:17
post
2021年10月13日 11:43
post
2021年10月21日 15:47 原创
post
2021年10月25日 11:27

0 评论

大哥整点话呗~