Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96044

Re: Need Help w. PIP!

References (2 earlier) <3b82cc84-d51b-4b62-bf84-47a06c585bc3@googlegroups.com> <mailman.120.1441336314.8327.python-list@python.org> <7c793e45-3a4c-4b37-8111-ed16382e1551@googlegroups.com> <CACL+1at+Bhst=E_hRCfPbfF687B2EDkw+KN1yZTyyS9c=MQK7Q@mail.gmail.com> <CABcoaSB=w+6QZqwGbJSvvxyY8Cukz3P2HfYBLtp9c0+FH2XXjA@mail.gmail.com>
From eryksun <eryksun@gmail.com>
Date 2015-09-04 17:48 -0500
Subject Re: Need Help w. PIP!
Newsgroups comp.lang.python
Message-ID <mailman.159.1441433067.8327.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, Sep 4, 2015 at 5:10 PM, Steve Burrus <steveburrus28@gmail.com> wrote:
> so what is my hopefully sinple solution anyway? i do n't see myself anytime
> soon getting off of Build 10074 of Win 10.

Script wrappers such as pip.exe are simple versions of the py launcher
that execute an embedded script. For example, here's the script
embedded in pip.exe on my system:

    #!"C:\Program Files\Python34\python.exe"
    # -*- coding: utf-8 -*-
    import re
    import sys
    from pip import main
    if __name__ == '__main__':
        sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
        sys.exit(main())

So, as with py.exe, the child python.exe process has to be assigned to
a job object. That won't work as long as you're using build 10074 of
Windows 10. But you can still run pip using `python -m pip`.

Also, since the py launcher doesn't work on your system, you'll have
to ensure that scripts are associated with python.exe / pythonw.exe
instead of py.exe / pyw.exe. If you installed for all users you can do
that in an elevated command prompt (cmd.exe) using the ftype command:

    ftype Python.File="C:\Python34\python.exe" "%1" %*
    ftype Python.NoConFile="C:\Python34\pythonw.exe" "%1" %*

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Need Help w. PIP! Steve Burrus <steveburrus28@gmail.com> - 2015-09-03 15:20 -0700
  Re: Need Help w. PIP! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-04 01:05 +0100
    Re: Need Help w. PIP! Steve Burrus <steveburrus28@gmail.com> - 2015-09-03 18:04 -0700
      Re: Need Help w. PIP! MRAB <python@mrabarnett.plus.com> - 2015-09-04 02:44 +0100
      Re: Need Help w. PIP! Chris Angelico <rosuav@gmail.com> - 2015-09-04 11:55 +1000
        Re: Need Help w. PIP! Steve Burrus <steveburrus28@gmail.com> - 2015-09-03 20:07 -0700
          Re: Need Help w. PIP! Chris Angelico <rosuav@gmail.com> - 2015-09-04 13:16 +1000
      Re: Need Help w. PIP! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-04 04:04 +0100
      Re: Need Help w. PIP! Chris Angelico <rosuav@gmail.com> - 2015-09-04 13:08 +1000
      Re: Need Help w. PIP! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-04 04:11 +0100
        Re: Need Help w. PIP! Steve Burrus <steveburrus28@gmail.com> - 2015-09-04 09:35 -0700
          Re: Need Help w. PIP! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-04 21:55 +0100
          Re: Need Help w. PIP! eryksun <eryksun@gmail.com> - 2015-09-04 17:48 -0500
          Re: Need Help w. PIP! eryksun <eryksun@gmail.com> - 2015-09-04 16:50 -0500
      Re: Need Help w. PIP! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-04 04:27 +0100
      Re: Need Help w. PIP! Chris Angelico <rosuav@gmail.com> - 2015-09-04 13:32 +1000
        Re: Need Help w. PIP! wxjmfauth@gmail.com - 2015-09-04 01:13 -0700
      Re: Need Help w. PIP! Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-04 09:14 -0400
      Re: Need Help w. PIP! Chris Warrick <kwpolska@gmail.com> - 2015-09-04 16:30 +0200
  Re: Need Help w. PIP! "ast" <nomail@invalid.com> - 2015-09-04 08:16 +0200
    Re: Need Help w. PIP! "ast" <nomail@invalid.com> - 2015-09-04 08:24 +0200
  Re: Need Help w. PIP! Steve Burrus <steveburrus28@gmail.com> - 2015-09-04 09:04 -0700
    Re: Need Help w. PIP! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-04 21:46 +0100
    Re: Need Help w. PIP! MRAB <python@mrabarnett.plus.com> - 2015-09-05 01:55 +0100
    Re: Need Help w. PIP! Rob Hills <rhills@medimorphosis.com.au> - 2015-09-05 10:19 +0800
      Re: Need Help w. PIP! Steve Burrus <steveburrus28@gmail.com> - 2015-09-04 20:07 -0700
        Re: Need Help w. PIP! eryksun <eryksun@gmail.com> - 2015-09-05 01:30 -0500
    Re: Need Help w. PIP! Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-05 10:14 +0200
      Re: Need Help w. PIP! Terry Reedy <tjreedy@udel.edu> - 2015-09-09 01:53 -0400
      Reply to author, reply to list, reply to all (was: Need Help w. PIP!) Ben Finney <ben+python@benfinney.id.au> - 2015-09-09 16:09 +1000
      Re: Reply to author, reply to list, reply to all Ben Finney <ben+python@benfinney.id.au> - 2015-09-09 17:20 +1000
      Re: Reply to author, reply to list, reply to all (was: Need Help w. PIP!) Chris Angelico <rosuav@gmail.com> - 2015-09-09 17:24 +1000
      Re: Reply to author, reply to list, reply to all Ben Finney <ben+python@benfinney.id.au> - 2015-09-09 17:38 +1000
      Re: Reply to author, reply to list, reply to all Terry Reedy <tjreedy@udel.edu> - 2015-09-09 04:16 -0400

csiph-web