简体   繁体   English

在不支持pypi的heroku上安装python包

[英]install python package on heroku without pypi support

I am trying install a Django app on Heroku. 我正在尝试在Heroku上安装Django应用。 My app needs pyke3 . 我的应用程序需要pyke3 The recommended way for installing pyke3 is to download pyke3-1.1.1.zip https://sourceforge.net/projects/pyke/files/pyke/1.1.1/ and then install (into a virtualenv if desired) using the instructions on http://pyke.sourceforge.net/about_pyke/installing_pyke.html . 推荐的安装pyke3的方法是下载pyke3-1.1.1.zip https://sourceforge.net/projects/pyke/files/pyke/1.1.1/ ,然后按照以下说明进行安装(如果需要,安装到virtualenv中) http://pyke.sourceforge.net/about_pyke/installing_pyke.html How do I install pyke3 on heroku? 如何在heroku上安装pyke3? Is there a way to add this to the requirements.txt, and how will heroku know where to get the pyke3 zip file? 有没有一种方法可以将其添加到requirements.txt,heroku将如何知道在哪里获取pyke3 zip文件?

From pip's docs: 从pip的文档中:

pip supports installing from PyPI, version control, local projects, and directly from distribution files. pip支持从PyPI,版本控制,本地项目以及直接从分发文件进行安装。

So, pip supports installing packages directly from links. 因此,pip支持直接从链接安装软件包。 All you have to do is put the link to the required package in your requirements file. 您所要做的只是将指向所需软件包的链接放在需求文件中。

To download the package pyke3-1.1.1.zip , add this link in your requirements: 要下载软件包pyke3-1.1.1.zip ,请在您的需求中添加以下链接:

https://sourceforge.net/projects/pyke/files/pyke/1.1.1/pyke3-1.1.1.zip/download

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM