How to install pip on wine?

I fail to install pip by:

# install wine and python
sudo apt-get install wine winetricks
winetricks python
# try to install pip
winetricks pip

BTW, there is no pip.exe under Python26/Scripts.

~/.wine/drive_c/Python26/Scripts$ ls
pywin32_postinstall.py pywin32_postinstall.pyc pywin32_postinstall.pyo
1

2 Answers

Newer Python versions already include pip. Choose the proper version from Download Python (for me, python-2.7.10.msi) and install it on wine by:

$ wine msiexec /i log.txt

To install Python packages on wine, for instance,

$ wine python.exe Scripts/pip.exe install pyinstaller
Successfully installed pyinstaller-3.1.1 pypiwin32-219

Refer to this post Build a Windows executable from Python scripts on Linux for the detailed description.

The above answer gets it right but for those who want to install Python 3 for Windows, pip is included and it can also be executed from the python binary.

wine python -m pip install pyinstaller

Follow this guide:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like