Search code examples
pythongithubpycharm

Install Python package from GitHub using PyCharm


I created a VirtualEnv in PyCharm to install my Python packages. I wanted to install this fork of the django project from GitHub.

https://github.com/django-nonrel/django

For packages available from PyPI I would normally use the built-in search tool in PyCharm, but I'm not sure how to correctly install it into the VirtualEnv within PyCharm from GitHub. Would anyone know how to do this?


Solution

  • Please see Gord Thompson's answer for an approach to get this working with Pycharm.

    Here's an alternative of how to get this to work without it:

    Clone the repository:

    git clone https://github.com/django-nonrel/django.git my_folder
    

    The install it manually into your virtualenv:

    cd my_folder
    python setup.py build
    python setup.py install