[issue43334] venv does not install libpython

Anup Parikh report at bugs.python.org
Fri Mar 12 16:09:58 EST 2021


Anup Parikh <anuppari at gmail.com> added the comment:

A typical python installation includes libpython libraries that C extensions can link to. Creating virtual environments with venv normally creates a replica of a python installation directory, including all the built in python modules. However, it doesn't seem to copy over the libpython libraries, so C extensions built with a venv activated can't seem to find the libpython (.so, .a, .dll) file to link against.

For example, compare the installation directory of python with the venv directory. The libpython .so/.a/.dll files are missing in the venv

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43334>
_______________________________________


More information about the Python-bugs-list mailing list