Message366570
For the record. Since virtualenv 20.0.0 (or there about) switched to the python -m venv style virtual environment structure, the C API for embedding when using a virtual environment is now completely broken on Windows. The same workaround used on UNIX doesn't work on Windows.
The only known workaround is in the initial Python code you load, to add:
import site
site.addsitedir('C:/some/path/to/pythonX.Y/Lib/site-packages')
to at least force it to use the site-packages directory from the virtual environment.
As to mod_wsgi, means that on Windows the WSGIPythonHome directive no longer works anymore and have to suggest that workaround instead. |
|
Date |
User |
Action |
Args |
2020-04-15 23:39:24 | grahamd | set | recipients:
+ grahamd, ncoghlan, pitrou, vstinner, pyscripter, methane, eric.snow, steve.dower, Henning.von.Bargen, Leslie, M.Kerr |
2020-04-15 23:39:24 | grahamd | set | messageid: <1586993964.21.0.733408086604.issue22213@roundup.psfhosted.org> |
2020-04-15 23:39:24 | grahamd | link | issue22213 messages |
2020-04-15 23:39:24 | grahamd | create | |
|