作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我尝试 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
最佳答案
按照以下步骤:
conda list
(我用的是 conda env)requirements.txt
中编辑我检查过的包关于英雄错误 : Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62847282/
我是一名优秀的程序员,十分优秀!