dashwood.net -

Ryan Stefan's Micro Blog

Installing from Github with pipenv - Fix pip on Linux

Jun 222019

Obviously not every pacakge on github is going to be available via pip, but downloading and installing manually clutters up your project directory. That kind of defeats the purpose of using pipenv in the first place. However, installing a package by using the git uri with pipenv is possible just like it is with pip. Here's what you type:

pipenv install -e git+git://github.com/user/project.git#egg=<project>

Pretty simple right? Here's an example of one that I've used recently just in case:

pipenv install -e git+git://github.com/miso-belica/sumy.git#egg=sumy 

Which is the command to install this package: https://github.com/miso-belica/sumy

 

If you have pipenv command not found use this to fix it:

sudo -H pip install -U pipenv

for scrapy with Python 3, you'll need

sudo apt-get install python3 python-dev python3-dev \
     build-essential libssl-dev libffi-dev \
     libxml2-dev libxslt1-dev zlib1g-dev \
     python-pip

with Python 2, you'll need

sudo apt-get install python-dev  \
     build-essential libssl-dev libffi-dev \
     libxml2-dev libxslt1-dev zlib1g-dev \
     python-pip

Comments