Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku错误:由于环境错误,无法安装程序包:[Errno 2]没有此类文件或目录_Heroku - Fatal编程技术网

Heroku错误:由于环境错误,无法安装程序包:[Errno 2]没有此类文件或目录

Heroku错误:由于环境错误,无法安装程序包:[Errno 2]没有此类文件或目录,heroku,Heroku,我在尝试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 pa

我在尝试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

请按照以下步骤操作:

检查您的软件包->康达列表我使用的康达环境 在requirements.txt中编辑与我检查的匹配的包 ex.psycopg2@file:///tmp/build/80754af9/psycopg2_1594305108220/work ->psycopg2==2.8.5 然后提交所有更改 -推到heroku我用过heroku
请按照以下步骤操作:

检查您的软件包->康达列表我使用的康达环境 在requirements.txt中编辑与我检查的匹配的包 ex.psycopg2@file:///tmp/build/80754af9/psycopg2_1594305108220/work ->psycopg2==2.8.5 然后提交所有更改 -推到heroku我用过heroku
在requirements.txt中,删除

伊德娜@file:///tmp/build/80754af9/idna_1593446292537/work psycopg2@file:///tmp/build/80754af9/psycopg2_1594305108220/work 请求@file:///tmp/build/80754af9/requests_1592841827918/work

然后通过GitAdd添加需求 并承诺


然后在requirements.txt中运行push to heroku

,删除

伊德娜@file:///tmp/build/80754af9/idna_1593446292537/work psycopg2@file:///tmp/build/80754af9/psycopg2_1594305108220/work 请求@file:///tmp/build/80754af9/requests_1592841827918/work

然后通过GitAdd添加需求 并承诺

然后运行push到heroku