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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With