Hi folks,
In this post I talk about how to pip install Python projects from source.
Let’s say you have a project that you can normally install via pip using a command like pip install someproject, but you want to make some customization to the project.
Here’s how to go about it.
- First, clone the project from Github.
- Make any modifications to the project source code as desired.
- Then change to the project’s root directory.
- Run the following command to install the project
pip install -e .
- If you have the project’s library already installed and you upgrade that version to the latest from your source code using command
pip install -e . -U
That’s all for now. Happy software development.