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

Discussion Overview

The discussion revolves around installing the Python package kiwiclient.py from a GitHub repository into a virtual environment (venv) using IDEs like PyCharm or VSCode. It includes inquiries about direct installation methods versus cloning the repository and installing from there, as well as considerations for users with limited proficiency in Python and related tools.

Discussion Character

  • Technical explanation, Homework-related

Main Points Raised

  • One participant seeks guidance on installing the kiwiclient.py package directly from GitHub into a venv without cloning the repository.
  • Another participant suggests that installation can be done straightforwardly from the terminal by activating the venv and using the command: pip install git+https://github.com/jks-prv/kiwiclient.
  • A participant advises using pip3 if the user is on Python 3.
  • Another participant questions whether pip3 is automatically used if Python 2.7 is not installed.

Areas of Agreement / Disagreement

There is no consensus on the best method for installation, as participants provide different approaches and clarify conditions related to Python versions.

Contextual Notes

Participants express varying levels of proficiency with Python, PyCharm, and git, which may affect their ability to follow the suggested methods. The discussion does not resolve the best approach for users with limited skills.

Swamp Thing
Insights Author
Messages
1,047
Reaction score
786
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