Answer the question
In order to leave comments, you need to log in
Python-virtualenv, where are the standard modules?
Good afternoon.
Tell me, why, when creating a new environment, the standard modules of the system, which, in theory, go together with the interpreter, are not transferred?
Namely threading and _thread. Those. if I create an environment: virtualenv --python=python3 NAME
And import the module in this environment:
python -c "import threading; print(threading.__file__)"
/usr/lib/python3.2/threading.py
Answer the question
In order to leave comments, you need to log in
To quote from the documentation: "It creates an environment that has its own installation directories, that doesn't share libraries with other virtualenv environments (and optionally doesn't access the globally installed libraries either)."
Reading further, we find www.virtualenv.org/en/latest/virtualenv.html#using... . Profit!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question