![获取 setup.py 和 project.toml 时出错](https://linux22.com/image/1026237/%E8%8E%B7%E5%8F%96%20setup.py%20%E5%92%8C%20project.toml%20%E6%97%B6%E5%87%BA%E9%94%99.png)
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