获取 setup.py 和 project.toml 时出错

获取 setup.py 和 project.toml 时出错

pip
我使用错误时收到以下错误:

pip install -r requirements-dev.txt .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/yashashwi
ERROR: file:///home/yashashwi does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
Defaulting to user installation because normal site-packages is not writeable
ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.

答案1

此错误与 ubuntu 版本无关。正如错误所明确指出的那样,pip在当前目录中找不到任何setup.py内容(您正在使用 传递它)。只需从命令末尾删除该点即可: pyproject.toml.pip install -r requirements-dev.txt

相关内容