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.
Created on 2014年06月09日 14:54 by Justin.Engel, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (6) | |||
|---|---|---|---|
| msg220098 - (view) | Author: Justin Engel (Justin.Engel) | Date: 2014年06月09日 14:54 | |
Venv virtual environments don't work with spaces in the path. (env) C:\My Directory\path > pip -V Fatal error in launcher: Unable to create process using '""C:\My Directory\path\env\Scripts\python.exe"" "C:\My Directory\path\env\Scripts\pip.exe" -V' |
|||
| msg220100 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年06月09日 15:30 | |
This *can't* work on Linux (see issue 20622). I don't know if it is possible to make it work on Windows, but I wonder: even if it is should we do so, since the point of the launcher is to make shebang lines work on Windows more or less how they do on Unix? (The counter argument is that paths with spaces are *much* more common on Windows.) |
|||
| msg220126 - (view) | Author: Eryk Sun (eryksun) * (Python triager) | Date: 2014年06月09日 23:06 | |
The py.exe launcher relies on manual quoting in the shebang line. That's the case for the shebang embedded in this pip executable. The problem is the "simple launcher" used by distlib 0.1.8. It always quotes the executable, even if it's already quoted. This is fixed in distlib 0.1.9, which should be updated in the next release of pip. https://bitbucket.org/pypa/distlib/issue/47 As a workaround, you can use `python -m pip`. |
|||
| msg228526 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2014年10月05日 02:09 | |
Note that this is also tricky to test - we *don't* currently activate the venv in the test suite, instead relying on a "-m" invocation. However, I think this error shows that a new automated test is needed that covers the activation case, as there are some additional code paths exercised in that situation that aren't currently being adequately covered. |
|||
| msg228529 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2014年10月05日 02:31 | |
Also reducing the priority back to "normal" - the docs at https://docs.python.org/3/installing/ already specifically recommend the "python -m pip" spelling because it's the most universal. Calling "pip" directly is known to fail in a variety of situations. For example, at system level on *nix systems, it invokes the Python 2 version - you have to call "pip3" to get the Python 3 version. On Windows, if the Scripts directory isn't on PATH, calling pip directly also doesn't work. This bug just adds another scenario to that existing list. (I filed https://github.com/pypa/python-packaging-user-guide/issues/107 to suggest also making the "pip -> python -m pip" switch in PyPUG examples) |
|||
| msg272086 - (view) | Author: Vinay Sajip (vinay.sajip) * (Python committer) | Date: 2016年08月06日 10:13 | |
I'll close this as it doesn't seem to be a Python bug. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:04 | admin | set | github: 65898 |
| 2016年08月06日 10:13:03 | vinay.sajip | set | status: open -> closed resolution: not a bug messages: + msg272086 stage: test needed -> resolved |
| 2014年10月05日 02:31:34 | ncoghlan | set | priority: critical -> normal messages: + msg228529 |
| 2014年10月05日 02:09:46 | ncoghlan | set | messages:
+ msg228526 stage: needs patch -> test needed |
| 2014年10月04日 21:08:46 | pitrou | set | priority: normal -> critical nosy: + paul.moore, ncoghlan, dstufft, Marcus.Smith stage: needs patch versions: + Python 3.5 |
| 2014年06月09日 23:06:32 | eryksun | set | nosy:
+ eryksun messages: + msg220126 |
| 2014年06月09日 15:30:29 | r.david.murray | set | nosy:
+ vinay.sajip, r.david.murray messages: + msg220100 |
| 2014年06月09日 14:54:27 | Justin.Engel | create | |