gpt4 book ai didi

英雄错误 : Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory

转载 作者:行者123 更新时间:2023-12-05 02:51:59 25 4
gpt4 key购买 nike

当我尝试 git push heroku master 时出现这个错误当我点击链接时,我收到这条消息“方法不允许”我该怎么做才能解决这个问题?错误从这一行开始

remote:          Downloading heroku-0.1.4.tar.gz (10 kB)
remote: Processing /tmp/build/80754af9/idna_1593446292537/work
remote: ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/tmp/build/80754af9/idna_1593446292537/work'
remote:
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to bonney.
remote:
To https://git.heroku.com/bonney.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/bonney.git'

这是我的requirements.txt

asgiref==3.2.10
beautifulsoup4==4.9.1
brotlipy==0.7.0
bs4==0.0.1
certifi==2020.6.20
cffi==1.14.0
chardet==3.0.4
cryptography==2.9.2
dj-database-url==0.5.0
Django==3.0.8
django-heroku==0.3.1
gunicorn==20.0.4
heroku==0.1.4
idna @ file:///tmp/build/80754af9/idna_1593446292537/work
psycopg2 @ file:///tmp/build/80754af9/psycopg2_1594305108220/work
pycparser==2.20
pyOpenSSL==19.1.0
PySocks==1.7.1
python-dateutil==1.5
pytz==2020.1
requests @ file:///tmp/build/80754af9/requests_1592841827918/work
six==1.15.0
soupsieve==2.0.1
sqlparse==0.3.1
urllib3==1.25.9
whitenoise==5.1.0

最佳答案

按照以下步骤:

  1. 检查你的包 --> conda list(我用的是 conda env)
  2. requirements.txt 中编辑我检查过的包
  3. ex.psycopg2 @ file:///tmp/build/80754af9/psycopg2_1594305108220/work--> psycopg2==2.8.5
  4. 然后提交所有更改
  5. -推送到heroku(我用的是heroku)

关于英雄错误 : Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62847282/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com