Python中文
首页
教程
问答
标签
搜索
登录
注册
我无法在Heroku上注册我的Django项目
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我今天将python版本从3.6.4更新到3.6.5。这是因为,在向Heroku发布的过程中,它推荐3.6.5版本。因此,确定了以下功率壳含量。在</p> <pre><code>Writing objects: 100% (35/35), 11.68 KiB | 0 bytes/s, done. Total 35 (delta 3), reused 0 (delta 0) remote: Compressing source files... done. remote: -----> Python app detected remote: ! The latest version of Python 3 is python-3.6.5 (you are using ÿþpython-3.6.5, which is unsupported). remote: ! We recommend upgrading by specifying the latest version (python-3.6.5). remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes remote: -----> Installing ÿþpython-3.6.5 remote: ! Requested runtime (ÿþpython-3.6.5) is not available for this stack (heroku-16). remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: remote: ! Push rejected to XXXXXXXX. remote: To https://git.heroku.com/XXXXXXXX.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/XXXXXXXX.git </code></pre> <p>将<code>runtime.txt</code>文件更改为UTF-8后,我现在得到以下错误:</p> ^{pr2}$ <p>为什么<code>python-3.6.5</code>被拒绝?这不正是Heroku所说的默认版本吗?在</p> <hr/> <p>你是我的好帮手。谢谢大家!在</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>不是这个!太荒谬了!<strong>我刚刚删除了运行时.txt文件</strong>。。。Heroku很好地部署了我的Django项目。当然有应用程序错误,但是。。。谢谢您!每个人都告诉我一些有用的东西。顺便说一句,我还是不知道为什么会正常部署。是否有理由删除运行时.txt文件?在</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何在python中从数据帧列中删除分类值?
10 回答
如何在python中从数据帧列表中删除引号
10 回答
如何在python中从数据帧创建列表
8 回答
如何在Python中从数据帧创建嵌套的JSON
1 回答
如何在Python中从数据帧显示wordcloud
8 回答
如何在Python中从数据帧的时间戳中删除字符
9 回答
如何在Python中从数据帧绘制简单绘图?
9 回答
如何在python中从数据帧行提取具有特定长度的范围?
3 回答
如何在python中从数据帧设置dict中的值
4 回答
如何在Python中从数据库中获得一个结果
1 回答
如何在python中从数据框中绘制分类条形图
6 回答
如何在Python中从数据框中选择特定细节?
6 回答
如何在python中从数据集中删除unicode
5 回答
如何在python中从数据集中删除某些数值?
9 回答
如何在python中从数据集中选择行
5 回答
如何在Python中从数组中删除元素
6 回答
如何在python中从数组中删除单个倒逗号?
5 回答
如何在python中从数组中删除对象?
7 回答
如何在python中从数组中删除引号
2 回答
如何在python中从数组中删除所有最小值
10 回答