Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

271
Views
Install pip on pypy

I want to speed up my program so i'm trying to setup pypy + psycopg2cffi. This program opens a xml, parses it and then insert some data in a database. I'm using currently python3, postgresql and psycopg2 but this approaches is really slow. So i want to try run my program with pypy + psycopg2cffi. I have python 3 and pypy, and i want to install psycopg2cffi so i ran this command:

pip install psycopg2cffi psycopg2cffi-compat 

But psycopg2cffi was only installed on python because when i try to import psycopg2cffi on pypy this is the error i get:

ImportError: No module named psycopg2cffi

So i think i need to install pip first but i can figure out how to do this.

How can i install it on pypy? Thank you.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

You can also try this (if it's not disabled in your Linux distribution):

pypy -m ensurepip
over 4 years ago · Santiago Trujillo Report

0

Download the pip-installer and execute it with pypy:

wget https://bootstrap.pypa.io/get-pip.py
./pypy get-pip.py

For usage try,

pypy -m pip install validators
over 4 years ago · Santiago Trujillo Report

0

For me, "pypy -m ensurepip" didn't work with a pypy3 installed with apt-get under Kubuntu 20.04. Probably disabled in the repository, as comments point in @SebMa answer. I was trying to run sympy with pypy3, so I needed pip working with pypy3. I managed to get it working with pypy3 installed with Anaconda:

conda config --set channel_priority strict
conda create -n pypy3 -c conda-forge pypy3.6
conda activate pypy3
pypy3 -m ensurepip
pypy3 -m pip install sympy

This question and its answers were also helpful: How to create a Conda environment that uses PyPy?

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!