Skip to content

Instantly share code, notes, and snippets.

@RednibCoding
Created June 21, 2018 06:50
Show Gist options
  • Save RednibCoding/e074834394dc94e795eac15a3ca69537 to your computer and use it in GitHub Desktop.
Save RednibCoding/e074834394dc94e795eac15a3ca69537 to your computer and use it in GitHub Desktop.
How to install a Python package from github using Pycharm
"""
After loading the project (which was associated with the virtual environment that you want to update),
open PyCharm's Terminal window (Alt+F12, or View > Tool Windows > Terminal) and then use the following command:
"""
pip install git+URL_to_repository
"""
Where "URL_to_repository" is the package you want to install.
Example:
Let's say you want to install the kivy framework from "https://github.com/kivy/kivy".
Open this link in your browser and click the green button "Clone or download", then copy the URL.
After you copied the URL, you go to PyCharm, open your project with the desired virtual environment(venv) you want to update,
open PyCharm's Terminal window (Alt+F12, or View > Tool Windows > Terminal) and then use the following command:
"""
pip install git+https://github.com/kivy/kivy.git
"""
And thats it!
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment