Skip to main content

Python

This guide covers setting up Python development with Python and pip.

Installation

We recommend Python 3.12 or later.

# Using winget
winget install Python.Python.3.12

# Or using Chocolatey
choco install python

Or download the installer from python.org.

Verify Installation

python3 --version
pip3 --version

pip

pip is the package installer for Python. It handles dependency management from PyPI (Python Package Index).

Common pip Commands

# Install a package
pip install requests

# Install from requirements file
pip install -r requirements.txt

# Generate requirements file
pip freeze > requirements.txt

# Upgrade a package
pip install --upgrade requests

# Create a virtual environment
python -m venv venv

# Activate virtual environment (macOS/Linux)
source venv/bin/activate

# Activate virtual environment (Windows)
.\venv\Scripts\activate

Set Up pip with JFrog

  1. Go to https://p6m.jfrog.io
  2. Login
  3. Navigate to Profile → Set Me Up → PyPI
  4. Click Generate Token and Create Instructions
  5. Follow the instructions to configure your pip.conf or pip.ini:

Create or edit %APPDATA%\pip\pip.ini:

[global]
index-url = https://your-username:your-token@p6m.jfrog.io/artifactory/api/pypi/pypi/simple