[Python] Any method to read rds in Python without pyreadr? Or method to get pyreadr package to...

Discussão em 'Python' iniciado por Stack, Março 11, 2025.

  1. Stack

    Stack Membro Participativo

    Can you please advise if there is a method to read RDS file by python without using pyreadr package? I tried installing it via pip, however I received an error that I have non-14 version of visual studio. However after installing latest VS version (and latest VS community), error still existed :( Do you know how to overcome it? Can base python read RDS files somehow?

    I tried installing pyreadr, however pip shows an error in visual studio version, even though this is fine i.e. 14+....

    I used in command line:

    pip install pyreadr


    The error I got:

    Building wheels for collected packages: pyreadt

    Building wheel for pyreadr (pyproject.toml)...error

    error: subprocess-existed-with_error

    Building wheel for pyreadr (pyproject.toml) did not run successfully. exit code 1

    warning: pyreadr\librdata.pyx:149:15: noexcept clause is ignored for function returning Python object

    then I get:

    Warning: Package 'pyreadr.libs.librdata.src' is absent from the packages configuration. (...)

    building 'pyreadr.librdata' extension

    error: Microsoft Visual C++ 1.0 or greater is required (...) Failed building wheel for pyreadr

    ERROR ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyreadr)

    I am using Windows 10 x64, 8 core CPU, pip 24.3.1, Spyder 6.03, Python 3.13/Qt 5.152/PyQt5 5.15.

    Thank you in advance for help and advise.

    Continue reading...

Compartilhe esta Página