pip -e: No magic underscore to dash replacement

前端 未结 2 609
刺人心
刺人心 2021-02-04 00:18

Somewhere underscores get changed to dashes, if you install with a git repo with \"pip install -e ...\".

Is there any way to stop this?

I want to automate stuff.

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 00:53

    Note that the answer above is incorrect. The exact regex from the code is re.sub('[^A-Za-z0-9.]+', '-', name). But if you try pip install foo!bar you get a big parse error so this isn't really true either.

提交回复
热议问题