Heroku在requirements.txt中使用uncontain模块部署python 3错误

问题描述

我将我的应用程序部署到 Heroku 并且我已经准备了我的requirement.txt,但是在我部署时出现了这个错误

$ git push heroku master
Counting objects: 20,done.
Delta compression using up to 4 threads.
Compressing objects: 100% (17/17),done.
Writing objects: 100% (20/20),9.17 KiB | 2.29 MiB/s,done.
Total 20 (delta 3),reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Python app detected
remote: -----> Installing python-3.6.13
remote: -----> Installing pip 20.1.1,setuptools 47.1.1 and wheel 0.34.2
remote: -----> Installing sqlite3
remote: -----> Installing requirements with pip
remote:        Collecting amqp==5.0.5
remote:          Downloading amqp-5.0.5-py3-none-any.whl (51 kB)
remote:        Processing /Users/runner/miniforge3/conda-bld/anyio_1612745561342/work/dist
remote:        ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/Users/runner/miniforge3/conda-bld/anyio_1612745561342/work/dist'
remote:        
remote:  !     Push rejected,Failed to compile Python app.
remote: 
remote:  !     Push Failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to sch-upd-cvd-dsh.

这是我的需求文件

APScheduler==3.7.0
cachetools==4.2.1
certifi==2020.12.5
chardet==4.0.0
decorator==4.4.2
future==0.18.2
google-auth==1.27.0
google-auth-oauthlib==0.4.2
gspread==3.7.0
gspread-dataframe==3.2.1
gspread-pandas==2.2.3
idna==2.10
numpy==1.20.1
oauthlib==3.1.0
pandas==1.2.2
pyasn1==0.4.8
pyasn1-modules==0.2.8
python-dateutil==2.8.1
pytz==2021.1
requests==2.25.1
requests-oauthlib==1.3.0
rsa==4.7.1
six==1.15.0
tzlocal==2.1
urllib3==1.26.3

我想知道我没有要求安装 amqp,但它自动要求。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)