Forums

How to install pypy modules

I know to that in order to install python modules you enter

pip --user module_name

but pypy says no module error when i import while python2.7 would detect the module So how can I install a module to pypy

I don't use PyPy much, but according to some PyPy docs, the way of installing packages would be to do a

pypy -m pip install numpy

In the case of PythonAnywhere, you should do a

pypy -m pip install --user numpy

Alternatively you could install everything into a PyPy virtualenv instead of using the --user flag.