#no activate script in python venv

1 messages · Page 1 of 1 (latest)

wind lintel
#

I have created a new virtual environment

python -m venv venv

but there is not activate script in the Scripts folder.

weak wasp
#

msys2/mingw python uses the unix convention, so its in bin/activate (Scripts/activateis for official/msvc python)

wanton haven
#

There is an open issue about supporting both though

wind lintel
#

bin/activate is for Bash and I don't use Bash. I can't use Activate.ps1 either because I used cmd. Also VScode probably expects Scripts/activate on Windows to automatically enable the virtual environment.

Where can I find the issue? This should be fixed.

weak wasp
#

if i had to guess, bin for unix convention, but when they ported to windows it might sound unfamiliar to windows users

#

ah oops, never mind yeah there is no batch in bin

wind lintel
#

A quick fix is to copy activate.bat and deactivate.bat from git repo to C:\msys64\ucrt64\lib\python3.12\venv\scripts\nt. The installation step in PKGBUILD should be fixed. Do I need to create PR? I would rather if someone familiar with Python did it.