This project uses:
pyenvto manage the Python interpreter versionuvto create and manage the project virtual environment- a local
.venv/for project dependencies
The project pins Python with .python-version:
3.14.3
Install the required Python version with pyenv if needed:
pyenv install 3.14.3Create the virtual environment with uv:
cd /Users/guoshuang.dong/workspace/ai-work/start-learning
uv venv --python 3.14.3 .venvInstall dependencies:
uv pip install --python .venv/bin/python -r requirements.txtActivate the environment when working in a shell:
source .venv/bin/activate
python --versionPyCharm's package management tool expects pip to be importable from the selected interpreter.
If you recreate .venv with uv, run the following once so PyCharm can inspect installed packages correctly:
.venv/bin/python -m ensurepip --upgradeYou can verify it with:
.venv/bin/python -m pip --version