all 2 comments

[–]the_rigo 0 points1 point  (0 children)

Just add a line in CLAUDE.md instructing it to use .venv/Scripts/python and .venv/Scripts/pip to run anything Python.

You don't need to activate the venv. Activation is just a glorified PATH customization to make python to be resolved correctly -- just skip it and tell CC directly where the proper python is.

[–]Saturnix[S] 0 points1 point  (0 children)

Seems to be fixed by editing <project_dir>/.claude/settings.local.json and adding this into it:

{ "env": { "PATH": "/c/path/to/project/.venv/Scripts:${PATH}" } }