开发者社区> 问答> 正文

heroku推送被拒绝,无法编译Python应用

我使用“ Flask” python框架创建了一个python应用程序。我使用了以下文档https://devcenter.heroku.com/articles/python

当我运行这个:

git push heroku主 推送到heroku后出现以下错误。

Counting objects: 8, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (8/8), 1.62 KiB, done.
Total 8 (delta 0), reused 0 (delta 0)

-----> Python app detected
-----> No runtime.txt provided; assuming python-2.7.4.
-----> Preparing Python runtime (python-2.7.4)
-----> Installing Distribute (0.6.36)
-----> Installing Pip (1.3.1)
-----> Installing dependencies using Pip (1.3.1)
       Downloading/unpacking BeautifulSoup==3.2.1 (from -r requirements.txt (line 1))
         Downloading BeautifulSoup-3.2.1.tar.gz
         Running setup.py egg_info for package BeautifulSoup

       Downloading/unpacking CDApplet==1.0 (from -r requirements.txt (line 2))
         Could not find any downloads that satisfy the requirement CDApplet==1.0 (from -r requirements.txt (line 2))
       No distributions at all found for CDApplet==1.0 (from -r requirements.txt (line 2))
       Storing complete log in /app/.pip/pip.log

 !     Push rejected, failed to compile Python app

To git@heroku.com:frozen-brushlands-5131.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:frozen-brushlands-5131.git'

任何帮助表示赞赏。

展开
收起
祖安文状元 2020-02-23 15:57:53 1033 0
1 条回答
写回答
取消 提交回答
  • 似乎没有一个名为CDApplet的Python包。当您的Heroku应用尝试安装CDApplet时,它将失败并显示此错误。

    我在本地尝试过,也找不到名为CDApplet的Python包。

    2020-02-23 15:58:09
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载