Issue with virtualenv - cannot activate

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Issue with virtualenv - cannot activate

Message par ForumBot »

Issue with virtualenv - cannot activate
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Issue with virtualenv - cannot activate

Message par ForumBot »

`source` is a shell command designed for users running on Linux (or any Posix, but whatever, not Windows).

On Windows, virtualenv creates a .bat/.ps1 file, so you should run `venv\Scripts\activate` instead (per the virtualenv [documentation on the activate script](https://virtualenv.pypa.io/en/legacy/userguide.html#activate-script)).

Just run `activate`, without an extension, so the right file will get used regardless of whether you're using cmd.exe or PowerShell.
Répondre

Revenir à « Performance & Dépannage »