So you are already familiar with Python and are wondering how to try some Generative AI projects on your PC.

You are aware that you need to guide-python/#how-to-install-python-dependencies, but each project has a different approach.

  1. Install Python 🐍
  2. Get a F/OSS IDE
  3. Find a project that you want to try

Top 2 Ways to Manage Python Dependencies

Venv’s

python -m venv scrapegraphai
# !python -m venv embedchain_venv
#Unix
#!source embedchain_venv/bin/activate
#Windows
#.\embedchain_venv\Scripts\activate

#deactivate

#Get-ExecutionPolicy
#Set-ExecutionPolicy RemoteSigned
#Set-ExecutionPolicy Restricted

!pip install embedchain

pip list pip freeze > requirements.txt #put the current ones in a file

pip install -r requirements.txt

Containers

Other Ways to Manage Py Dependencies

Python Post

Conda

  • Pro’s of Conda as Package Manager
    • You can choose the Python version

Pyenv

https://youtu.be/Wjrdr0NU4Sk?t=1028

With Astral-sh

A new python package manager written in Rust - https://www.youtube.com/watch?v=fr3ksdNxDXgs https://docs.astral.sh/ruff/ https://pypi.org/project/uv/ https://github.com/astral-sh/uv

Written in Rust, btw

UV

pip install uv
uv venv  # Create a virtual environment at .venv.
# On macOS and Linux.
source .venv/bin/activate

# On Windows.
.venv\Scripts\activate

https://pypi.org/project/streamlit/#history

uv pip install streamlit
#uv pip install -r requirements.txt
conda --version
# conda create --name embedchain python=3.11
# conda activate embedchain
conda install numpy

FAQ

Python IDE for AI Projects

  • VSCodium
flatpak install flathub com.vscodium.codium

How to install Python

  • From Ubuntu’s APT Repository:
sudo apt update
sudo apt install python3
python3 --version
  • Or With the PPA:
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.12
python3 --version