Message 332892 - Python tracker

Message332892

Author Ray Donnelly
Recipients Ray Donnelly, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-01-02.20:30:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546461012.71.0.574979571732.issue35644@roundup.psfhosted.org>
In-reply-to
Content
Happy New Year!

I'm not sure if this is a misunderstanding on my part, a docs bug or a code bug.

At https://docs.python.org/3/library/venv.html we see:

"The solution for this problem is to create a virtual environment, a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages"

and

"This will create the tutorial-env directory if it doesn’t exist, and also create directories inside it containing a copy of the Python interpreter, the standard library, and various supporting files."

However, when testing with https://www.python.org/ftp/python/3.7.2/python-3.7.2-amd64.exe I see no Python interpreter (nor DLL) in my venv directory:

```
python.exe -m venv %TEMP%\venv
%TEMP%\venv\Scripts\activate.bat
dir %TEMP%\venv
```

gives:

```
 Directory of C:\Users\RDONNE~1\AppData\Local\Temp\venv

02/01/2019  19:38    <DIR>          .
02/01/2019  19:38    <DIR>          ..
02/01/2019  19:38    <DIR>          Include
02/01/2019  19:38    <DIR>          Lib
02/01/2019  19:38               121 pyvenv.cfg
02/01/2019  19:38    <DIR>          Scripts
               1 File(s)            121 bytes
               5 Dir(s)  912,281,780,224 bytes free
```

pyvenv.cfg contains:

```
home = C:\Users\rdonnelly\AppData\Local\Programs\Python\Python37
include-system-site-packages = false
version = 3.7.2
```

Further to this, after activating, I do not see the `venv` directory in `sys.path`:

```
python -c "import sys; print(sys.path)"
['',
 'C:\\Users\\rdonnelly\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip',
 'C:\\Users\\rdonnelly\\AppData\\Local\\Programs\\Python\\Python37\\DLLs',
 'C:\\Users\\rdonnelly\\AppData\\Local\\Programs\\Python\\Python37\\lib',
 'C:\\Users\\rdonnelly\\AppData\\Local\\Programs\\Python\\Python37',
 'C:\\Users\\rdonnelly\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']
```

From past experience, the old `virtualenv` project would copy the interpreter and DLL across.

Any help here would be appreciated!
History
Date User Action Args
2019-01-02 20:30:14Ray Donnellysetrecipients: + Ray Donnelly, paul.moore, tim.golden, zach.ware, steve.dower
2019-01-02 20:30:12Ray Donnellysetmessageid: <1546461012.71.0.574979571732.issue35644@roundup.psfhosted.org>
2019-01-02 20:30:12Ray Donnellylinkissue35644 messages
2019-01-02 20:30:12Ray Donnellycreate