Skip to content

get-pip failing for embeddable Python on Windows 10 #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
csboling opened this issue Apr 16, 2018 · 2 comments
Closed

get-pip failing for embeddable Python on Windows 10 #22

csboling opened this issue Apr 16, 2018 · 2 comments

Comments

@csboling
Copy link

csboling commented Apr 16, 2018

On Windows 10, here is a script snippet that worked until recently to get an embeddable Python install and install pip in it.

set -ex

rm -rf Python35/
mkdir Python35/
curl https://www.python.org/ftp/python/3.5.2/python-3.5.2-embed-amd64.zip > Python35/python-3.5.2.zip

pushd Python35
unzip python-3.5.2.zip
popd

curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
./Python35/python get-pip.py

However, this now gives an error:

+ ./Python35/python get-pip.py
ERROR: To modify pip, please run the following command:
C:\...\Python35\python.exe -m pip

and this suggestion is not possible because pip is not yet installed.

My current workaround is to replace curl https://bootstrap.pypa.io/get-pip.py > get-pip.py with

rm -rf get-pip
git clone https://github.com/pypa/get-pip
pushd get-pip
git checkout f135a3e
cp get-pip.py ..
popd

since f135a3e seems to be the most recent commit which works.

@pradyunsg
Copy link
Member

Quoting @pfmoore:

This is a consequence of pypa/pip#5219 - we have a fix and will be releasing 10.0.1 in the near future. In the meantime, you can work around this by renaming get-pip.py to something without pip in the name (such as gp.py)

@pradyunsg
Copy link
Member

This should have been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants