点安装python软件包:找不到requirements.txt

时间:2020-04-30 08:06:18

标签: python path pip command requirements

我正在尝试安装gamry-parser(https://pypi.org/project/gamry-parser/)软件包。

但是,命令窗口无法在其查找的位置中找到requirements.txt。我试图搜索它正在我的计算机中搜索的路径,但似乎不存在( \ users \ name \ appdata \ local \ temp \ pip-install-rfy1sh \ gamry-parser \ setup。 py )。此外,requirements.txt实际上确实存在,但是不在此不存在的路径中。我收到以下错误:

IOError: [Errno 2] No such file or directory: 'requirements.txt'
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

谢谢。

1 个答案:

答案 0 :(得分:1)

gamry-parser 0.4.1 provides适用于Python 3的滚轮和将用于Python 2.7的源dist。我对其进行了测试-装有Python 3.7的轮子,没问题。

问题出在Python 2.7和源代码发行版上-sdist缺少requirements.txt。要解决此问题,他们需要添加文件MANIFEST.in

echo include requirements.txt > MANIFEST.in
git add MANIFEST.in
git commit -m "Add MANIFEST.in for sdist"

report the issue或发送拉取请求。

相关问题