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

  • Thread starter Thread starter Swamp Thing
  • Start date Start date
  • Tags Tags
    install
Click For Summary
To install the Python package kiwiclient.py from the GitHub repository directly into a virtual environment (venv) using an IDE like PyCharm or VSCode, the most straightforward method is through the terminal. First, activate the venv in the terminal and then execute the command: pip install git+https://github.com/jks-prv/kiwiclient. For users on Python 3, it's recommended to use pip3. If Python 2.7 is not installed, pip will default to pip3, ensuring compatibility with Python 3. For those less familiar with Python, PyCharm or VSCode may require additional setup to run terminal commands effectively within the IDE.
Swamp Thing
Insights Author
Messages
1,035
Reaction score
771
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 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 Greg Bernhardt

Similar threads

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