[Tutor] Virtual environment question
Jim
jf_byrnes at comcast.net
Tue Mar 13 17:35:02 EDT 2018
On 03/12/2018 08:44 PM, eryk sun wrote:
> On Tue, Mar 13, 2018 at 1:31 AM, Jim <jf_byrnes at comcast.net> wrote:
>> On 03/12/2018 04:04 AM, eryk sun wrote:
>>>
>>> On Mon, Mar 12, 2018 at 12:44 AM, Jim <jf_byrnes at comcast.net> wrote:
>>>>
>>>> home = /usr/bin
>>>> include-system-site-packages = false
>>>
>>> [...]
>>>>
>>>> resp = opener.open(request, timeout=self._timeout)
>>>> File "/usr/lib/python3.5/urllib/request.py", line 466, in open
>>>
>>> This is normal. Virtual environments are not isolated from the standard
>>> library.
>>
>> Interesting. All I know about virtual environments is what I read on the
>> net. I always see them recommended as a way to keep from messing up the
>> default python, so I thought isolation was their purpose.
>
> You're thinking of isolating packages that are installed in
> site-packages, not the standard library. There's no point in copying
> and recompiling the entire standard library in every virtual
> environment.
Just curious. So do they share parts of the standard libray? What
happens if the version of python I have in a virtual environment is
totally different than any python available from the os? Say version 3
vs version 2 in the os.
Regards, Jim
More information about the Tutor
mailing list