Re: [pypy-dev] Pandas/Numpy in Ubuntu

2021-07-03 Thread Matti Picus


On 3/7/21 10:04 pm, Александр Рауд wrote:

the python-dev is installed:

~# locate Python.h

/usr/include/python2.7/Python.h

/usr/include/python3.8/Python.h



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

___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev


Re: [pypy-dev] Pandas/Numpy in Ubuntu

2021-07-03 Thread Tobias Pape
Hi


> On 3. Jul 2021, at 21:04, Александр Рауд  wrote:
> 
> Yes, please read my original message entirely :)

In your message your said

"the python-dev is installed"

But you need to install

pypy-dev 

as Yury (and the error message) point out.

Best regards
-Tobias

> 
> On Sat, Jul 3, 2021, 1:06 AM Yury V. Zaytsev  wrote:
> Did you install pypy-dev, as the error message says, and not python-dev?
> 
> Sent from my iPad
> 
>> On 3. Jul 2021, at 09:38, Александр Рауд  wrote:
>> 
>> 
>> 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
>> ___
>> pypy-dev mailing list
>> pypy-dev@python.org
>> https://mail.python.org/mailman/listinfo/pypy-dev
> ___
> pypy-dev mailing list
> pypy-dev@python.org
> https://mail.python.org/mailman/listinfo/pypy-dev


___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev


Re: [pypy-dev] Pandas/Numpy in Ubuntu

2021-07-03 Thread Александр Рауд
Yes, please read my original message entirely :)

On Sat, Jul 3, 2021, 1:06 AM Yury V. Zaytsev  wrote:

> Did you install pypy-dev, as the error message says, and not python-dev?
>
> Sent from my iPad
>
> On 3. Jul 2021, at 09:38, Александр Рауд  wrote:
>
> 
> 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
> ___
> pypy-dev mailing list
> pypy-dev@python.org
> https://mail.python.org/mailman/listinfo/pypy-dev
>
>
___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev


Re: [pypy-dev] Pandas/Numpy in Ubuntu

2021-07-03 Thread Yury V. Zaytsev
Did you install pypy-dev, as the error message says, and not python-dev?

Sent from my iPad

> On 3. Jul 2021, at 09:38, Александр Рауд  wrote:
> 
> 
> 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
> ___
> pypy-dev mailing list
> pypy-dev@python.org
> https://mail.python.org/mailman/listinfo/pypy-dev
___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev


[pypy-dev] Pandas/Numpy in Ubuntu

2021-07-03 Thread Александр Рауд
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
___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev