Pandas/Numpy in Ubuntu

Hi! I am looking for support to make Pandas working in PyPy3 under Ubuntu. Is there a BKM for this? pypy3 -m pip install pandas fails with: /build_src.py", line 377, in generate_sources source = func(extension, build_dir) File "numpy/core/setup.py", line 422, in generate_config_h moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir) File "numpy/core/setup.py", line 48, in check_types out = check_types(*a, **kw) File "numpy/core/setup.py", line 281, in check_types "install {0}-dev|{0}-devel.".format(python)) SystemError: Cannot compile 'Python.h'. Perhaps you need to install pypy-dev|pypy-devel. the python-dev is installed: ~# locate Python.h /usr/include/python2.7/Python.h /usr/include/python3.8/Python.h

On 3/7/21 10:04 pm, Александр Рауд wrote:
This is insufficient. You need to follow the instructions and install *pypy3-dev*, not python3-dev. This will install header files in /usr/lib/pypy3. Unless you are interested in compiling the entire scientific python stack from source I would recommend you use conda. They provide pre-compiled binary packages. conda create -n pypy3.7 -c conda-forge pypy conda activate pypy3.7 # now your prompt should show (pypy3.7)$ conda install -c conda-forge pandas Matti

On 3/7/21 10:04 pm, Александр Рауд wrote:
This is insufficient. You need to follow the instructions and install *pypy3-dev*, not python3-dev. This will install header files in /usr/lib/pypy3. Unless you are interested in compiling the entire scientific python stack from source I would recommend you use conda. They provide pre-compiled binary packages. conda create -n pypy3.7 -c conda-forge pypy conda activate pypy3.7 # now your prompt should show (pypy3.7)$ conda install -c conda-forge pandas Matti
participants (4)
-
Matti Picus
-
Tobias Pape
-
Yury V. Zaytsev
-
Александр Рауд