You are not logged in.
Hello,
I have to do some heavy computation with python (mostly various CRF and other model training).
I though I'll give Pypy a try. Unfortunately, I was not able to build scipy via "pypy setup.py scipy".
My question is : what is the recommended way for installing packages ?
I read something about a pip command for pypy. Where can I found it ?
Thanks !
Offline
$ pacman -Ss scipy
community/python-scipy 0.14.0-1
SciPy is open-source software for mathematics, science, and engineering.
community/python-statsmodels 0.6.1-1
Statistical computations and models for use with SciPy
community/python2-scipy 0.14.0-1
SciPy is open-source software for mathematics, science, and engineering.
community/python2-statsmodels 0.6.1-1
Statistical computations and models for use with SciPypython-pip and python2-pip are in extra.
$ pacman -Ss pip
core/libpipeline 1.4.0-1 [installed]
a C library for manipulating pipelines of subprocesses in a flexible and convenient
way
extra/epiphany 3.14.2-1 (gnome)
A GNOME web browser based on the WebKit rendering engine.
extra/gnu-netcat 0.7.1-5
GNU rewrite of netcat, the network piping application
extra/python-pip 1.5.6-2
An easy_install replacement for installing pypi python packages
extra/python2-pip 1.5.6-2
An easy_install replacement for installing pypi python packagesOffline
python-pip and python2-pip are in extra.
Actually, I am not sure installing pip like that is the recommended approach anymore with python 3.4+. See https://docs.python.org/3/installing/in … ling-index. Pip is already included in python 3.4 (although not as an explicit command) and it seems you invoke it as that guide says. If you invoke pyvenv (the python 3.4 native and already included version of virtualenv) the it installs an explicit pip binary in your virtual environment which is how it is recommended people should be installing packages.
Offline
But aren't module for CPython ?
I want to use scipy with http://pypy.org/ !
Offline
I'm not sure how one would implement scipy using pypy.
Edit: Re-read the thread. I wasn't answering filippo's question with my original answer.
Last edited by thisoldman (2014-12-14 22:30:09)
Offline
I had a similar problem a few days ago and found this script by forum member Blue Peppers to be very useful, which can create PKGBUILDs for pypy packages:
https://github.com/bluepeppers/pip2arch
see also:
https://bbs.archlinux.org/viewtopic.php?pid=900867
Offline
I do not believe pypy supports scipy (too much cpython code). I believe it does not even fully support numpy yet. More info
Offline
The recommended way if to use a virtualenv. You can set it up from the standard python virtualenv package. pip will be installed in the virtual environment when you make it and then you just pip the package you want in the virtual environment without messing your system. For details see: http://pypy.readthedocs.org/en/latest/install.html
As for scipy, I think it is not compatible with pypy, because it uses modules written in C. Pypy has beta compatibility with C modules but I don't think scipy will work.
Last edited by olive (2014-12-15 14:08:34)
Offline
The recommended way if to use a virtualenv. You can set it up from the standard python virtualenv package. pip will be installed in the virtual environment when you make it and then you just pip the package you want in the virtual environment without messing your system. For details see: http://pypy.readthedocs.org/en/latest/install.html
As for scipy, I think it is not compatible with pypy, because it uses modules written in C. Pypy has beta compatibility with C modules but I don't think scipy will work.
Ok, thanks, I will try with a virtualenv.
Offline