mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 03:39:27 +08:00
On macOS with Homebrew Python, `Path(sys.executable).resolve()` follows the venv symlink back to the system interpreter. PEP 668 then blocks pip installs with "externally-managed-environment", causing the setup tour to fail. Swap the check order so the unresolved venv path is preferred when it exists, falling back to the resolved path only when necessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>