运行后:"git push heroku master“
要将存储库克隆/部署到heroku,我得到了以下结果,并以错误终止:
计算对象数: 5109,完成。使用最多4个线程的增量压缩.
:::
:::
:::
:::
:::
remote: Collecting msgpack==0.6.2
remote: Downloading msgpack-0.6.2-cp36-cp36m-manylinux1_x86_64.whl (249 kB)
remote: Collecting phonenumbers
remote: Downloading phonenumbers-8.12.6-py2.py3-none-any.whl (2.6 MB)
remote: ERROR: Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r /tmp/build_6a369dea83d988aeccf65fbf7cb98921/requirements.txt (line 33)) (from versions: none)remote: ERROR:找不到pkg- /tmp/build_6a369dea83d988aeccf65fbf7cb98921/requirements.txt ==0.0.0的匹配分发版(来自-r remote(第33行))
我在存储库中的requirments.txt说:
requirments.txt:
:::
:::
:::
MarkupSafe==1.1.1
msgpack==0.6.2
phonenumbers
pkg-resources==0.0.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
:::
:::
:::“”“
发布于 2020-06-28 17:58:52
没有包pkg-resources。该包是setuptools的一部分。您不能从requirements.txt安装pkg-resources,但如果需要,您可以升级setuptools。
https://stackoverflow.com/questions/62616822
复制相似问题