【问题标题】:Heroku pip install failing to install billy-apiHeroku pip install 无法安装 billy-api
【发布时间】:2018-09-19 07:31:35
【问题描述】:

我试图通过 GitHub 在我的 heroku 服务器上安装更新版本的 bitly-api,因为我们遇到了从 2.7.15 到 3.6.6 的问题,所以我添加了 git+git:https://URLOFGIT.GIT,我似乎得到以下错误。什么意思?

我需要强制它使用 pip3 吗?

-----> Python app detected
-----> Found python-2.7.15, removing
-----> Installing python-3.6.6
-----> Installing pip
-----> Installing requirements with pip
       Collecting git+git:https://github.com/bitly/bitly-api-python.git (from -r /tmp/build_c254deea58fb0d0ccb947f1819f45b29/requirements.txt (line 25))
         Cloning git:///https://github.com/bitly/bitly-api-python.git to /tmp/pip-tibxul79-build
       fatal: unable to connect to :
       : Name or service not known

       Command "git clone -q git:///https://github.com/bitly/bitly-api-python.git /tmp/pip-tibxul79-build" failed with error code 128 in None
 !     Push rejected, failed to compile Python app.
 !     Push failed

【问题讨论】:

    标签: python python-3.x github heroku


    【解决方案1】:

    以下是在 requirements.txt 中提供 GitHub URL 的正确方法
    https://github.com/bitly/bitly-api-python/archive/v0.3.zip

    参考:https://stackoverflow.com/a/24811490/3007402(见最后一行)

    【讨论】:

    • 然后我收到这样的错误Cannot unpack file /tmp/pip-hn9iz7hb-unpack/bitly-api-python.git (downloaded from /tmp/pip-uu8dd6k5-build, content-type: text/html; charset=utf-8); cannot detect archive format remote: Cannot determine archive format of /tmp/pip-uu8dd6k5-build remote: ! Push rejected, failed to compile Python app.
    猜你喜欢
    • 2018-09-23
    • 2015-12-17
    • 1970-01-01
    • 2019-10-14
    • 2016-04-29
    • 1970-01-01
    • 2017-08-10
    • 2018-01-05
    • 1970-01-01
    相关资源
    最近更新 更多