无法进行pip安装--在可编辑模式下没有dep

  • 本文关键字:模式 编辑 dep pip 安装 pip
  • 更新时间 :
  • 英文 :


如何在可编辑模式下安装带有pip的包,同时不安装其依赖项?

我尝试了--no-deps--no-dependencies:

$ pip install -e --no-deps .
ERROR: --no-deps is not a valid editable requirement. It should 
either be a path to a local project or a VCS URL (beginning with svn+, 
git+, hg+, or bzr+).
$ pip install -e --no-dependencies .
ERROR: --no-dependencies is not a valid editable requirement. It should 
either be a path to a local project or a VCS URL (beginning with svn+, 
git+, hg+, or bzr+).

但我总是出错。

省略-e--no-deps作品:

$ pip install -e .
$ pip install --no-deps .

pip在这里有点古怪。在-e选项之前必须有--no-deps选项:

pip install --no-deps -e .

从技术上讲,文档将CCD_;选项";。

最新更新