Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do I put in pip requirements file for a package not in pypi

Tags:

python

pip

heroku

I installed python google visualization api into my virtualenv with

pip install -U -f http://code.google.com/p/google-visualization-python/ gviz-api-py

What do I need to put in pip requirements.txt file so that Heroku can download and install it?

like image 625
derdo Avatar asked Feb 25 '13 02:02

derdo


People also ask

How do I apply a specific package to pip?

To install a specific version of a Python package you can use pip: pip install YourPackage==YourVersion . For example, if you want to install an older version of Pandas you can do as follows: pip install pandas==1.1.

What is the difference between pip and PyPi?

pip is the de facto package manager in the Python world. It can install packages from many sources, but PyPI is the primary package source where it's used. When installing packages, pip will first resolve the dependencies, check if they are already installed on the system, and, if not, install them.

What does pip install requirements do?

The pip install <package> command always looks for the latest version of the package and installs it. It also searches for dependencies listed in the package metadata and installs them to ensure that the package has all the requirements that it needs.


1 Answers

Try using the following in your requirements.txt:

-e svn+http://google-visualization-python.googlecode.com/svn/trunk#egg=google-visualization-python

OR

-e svn+http://google-visualization-python.googlecode.com/svn/trunk@26#egg=gviz_api.py-1.8.2-py2.7-dev_r26

Learn about installing from VCS using pip.

like image 52
arulmr Avatar answered Oct 30 '22 23:10

arulmr