This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author grahamd
Recipients Henning.von.Bargen, Leslie, M.Kerr, eric.snow, grahamd, methane, ncoghlan, pitrou, pyscripter, steve.dower, vstinner
Date 2020-04-15.23:39:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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

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:24grahamdsetrecipients: + grahamd, ncoghlan, pitrou, vstinner, pyscripter, methane, eric.snow, steve.dower, Henning.von.Bargen, Leslie, M.Kerr
2020-04-15 23:39:24grahamdsetmessageid: <>
2020-04-15 23:39:24grahamdlinkissue22213 messages
2020-04-15 23:39:24grahamdcreate