Installing Pip for PyPy on Windows

68 views Asked by At

Can someone help me out with this issue. I am trying to install Pip on Windows to use with PyPy, but I am somehow unable to do it.

Here is what I have tried so far:

C:\>pypy3 --version
Python 3.10.13 (fc59e61cfbff, Jan 14 2024, 16:27:58)
[PyPy 7.3.15 with MSC v.1929 64 bit (AMD64)]

C:\>pypy3 -m pip install tqdm
C:\Program Files (x86)\PyPy\pypy3.10-v7.3.15-win64\pypy3.exe: No module named pip (to install pip, you need to run once "C:\Program Files (x86)\PyPy\pypy3.10-v7.3.15-win64\pypy3.exe -m ensurepip")

C:\>"C:\Program Files (x86)"\PyPy\pypy3.10-v7.3.15-win64\pypy3.exe -m ensurepip
Defaulting to user installation because normal site-packages is not writeable
Looking in links: c:\Users\karlv\AppData\Local\Temp\tmpgk258d80
Processing c:\users\karlv\appdata\local\temp\tmpgk258d80\setuptools-65.5.0-py3-none-any.whl
Processing c:\users\karlv\appdata\local\temp\tmpgk258d80\pip-23.0.1-py3-none-any.whl
Installing collected packages: setuptools, pip
Successfully installed pip-24.0 setuptools-69.2.0

C:\>pypy3 -m pip install tqdm
C:\Program Files (x86)\PyPy\pypy3.10-v7.3.15-win64\pypy3.exe: No module named pip (to install pip, you need to run once "C:\Program Files (x86)\PyPy\pypy3.10-v7.3.15-win64\pypy3.exe -m ensurepip")

I also tried installing the get-pip.py file into the source files as well:

C:\Program Files (x86)\PyPy\pypy3.10-v7.3.15-win64>"C:\Program Files (x86)\PyPy\pypy3.10-v7.3.15-win64\pypy3.exe" "C:\Program Files (x86)\PyPy\pypy3.10-v7.3.15-win64\get-pip.py"
Defaulting to user installation because normal site-packages is not writeable
Collecting pip
  Using cached pip-24.0-py3-none-any.whl.metadata (3.6 kB)
Collecting setuptools
  Using cached setuptools-69.2.0-py3-none-any.whl.metadata (6.3 kB)
Collecting wheel
  Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Using cached pip-24.0-py3-none-any.whl (2.1 MB)
Using cached setuptools-69.2.0-py3-none-any.whl (821 kB)
Using cached wheel-0.43.0-py3-none-any.whl (65 kB)
Installing collected packages: wheel, setuptools, pip
Successfully installed pip-23.0.1 setuptools-65.5.0 wheel-0.43.0

Still no luck. Any help would be much appreciated!

1

There are 1 answers

2
TAN On

Are you trying to add C:\Program Files (x86)\PyPy\pypy3.10-v7.3.15-win64\bin to PATH? As your command pip should be installed to the path of bin.