Install pkg from Github to Python 'venv' under VSCode or Pycharm

  • Context: Python 
  • Thread starter Thread starter Swamp Thing
  • Start date Start date
  • Tags Tags
    install
Click For Summary
SUMMARY

The discussion focuses on installing the Python package kiwiclient.py from the GitHub repository jks-prv/kiwiclient into a virtual environment (venv) using IDEs like PyCharm or VSCode. The recommended method is to activate the venv in the terminal and execute the command pip install git+https://github.com/jks-prv/kiwiclient. Users on Python 3 should use pip3 to ensure compatibility, as it automatically defaults to pip3 if Python 2.7 is not installed.

PREREQUISITES
  • Basic understanding of Python virtual environments (venv)
  • Familiarity with command-line interface operations
  • Knowledge of using pip for package management
  • Basic understanding of Git and GitHub
NEXT STEPS
  • Learn how to create and manage Python virtual environments using venv
  • Research the use of pip for installing packages from GitHub repositories
  • Explore the features and functionalities of PyCharm and VSCode for Python development
  • Understand Git commands for cloning repositories and managing version control
USEFUL FOR

This discussion is beneficial for Python developers, particularly those using Raspberry Pi OS, who are looking to install packages directly from GitHub into their virtual environments using PyCharm or VSCode.

Swamp Thing
Insights Author
Messages
1,047
Reaction score
780
I would like to install the Python package kiwiclient.py from this github repo :
https://github.com/jks-prv/kiwiclient
into a venv using an IDE like PyCharm or VSCode.

Is there a way to do this directly without cloning the repo locally?
If not, what are the steps to clone and install into a project's venv?

I am not particularly proficient in either Python, PyCharm or git so I would appreciate a detailed guide with few prerequisite skills.
Platform: Raspberry Pi OS
 
Last edited:
Technology news on Phys.org
This would be straightforward if you do it from the terminal. Activate the venv in the terminal first. Then run:
Code:
pip install git+https://github.com/jks-prv/kiwiclient

Source.
 
  • Like
Likes   Reactions: Swamp Thing and Greg Bernhardt
Greg Bernhardt said:
Use pip3 if on Python3
Doesn't it automatically use pip3 if Python 2.7 is not installed?
 
  • Like
Likes   Reactions: Greg Bernhardt

Similar threads

  • · Replies 15 ·
Replies
15
Views
8K
  • · Replies 3 ·
Replies
3
Views
3K