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 bstorm
Recipients bstorm, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-06-21.23:54:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561161256.11.0.32935812019.issue37369@roundup.psfhosted.org>
In-reply-to
Content
I am finding that, using Powershell on Windows 10 and the current version of Python 3.7.3 installed from the Microsoft Store, when I create a virtualenv via "python -m venv <name>" and activate it in Powershell with the Activate.ps1 script that is generated, pip fails with:

> pip freeze
Fatal error in launcher: Unable to create process using '"c:\users\<home>\<path-to-venv>\scripts\python.exe"  "C:\Users\<home>\<path-to-venv>\Scripts\pip.exe" freeze'

There are no spaces in my python path, and I cannot find any "simple workaround" that actually works online.  I am using pip 19.1.1 (current as of now).  This only happens with Powershell.  cmd.exe is able to use the virtualenv and pip just fine after using the activate.bat script.

If I activate in Powershell and run "python -m pip" or similar commands, including importing pip, I get a message that pip is not installed, which is interesting.

My Powershell version as installed is:
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      18917  1000

I also tried Powershell Core 6 with the same result.  This seems to be a consistent behavior of the resultant Activate.ps1 script, which is why I'm creating the issue here.  I didn't find quite a duplicate when I searched, but I could be wrong.
History
Date User Action Args
2019-06-21 23:54:16bstormsetrecipients: + bstorm, paul.moore, tim.golden, zach.ware, steve.dower
2019-06-21 23:54:16bstormsetmessageid: <1561161256.11.0.32935812019.issue37369@roundup.psfhosted.org>
2019-06-21 23:54:16bstormlinkissue37369 messages
2019-06-21 23:54:15bstormcreate