Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

pip install from github repository with optional dependency

I am installing python packages from GiTHub repository via ssh like following.

pip install pandas@git+ssh://git@github.com/pandas-dev/pandas.git@main

In addition to this, I want to install test dependencies of packages.
I know that I can install package from PYPI server with following,

pip install pandas[test]

but I want to install directory from GitHub via SSH.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I couldn’t find an option for such additional dependency in a document.

>Solution :

You can do it using following command:

pip install "pandas[test] @ git+https://github.com/pandas-dev/pandas@main"
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading