randy3k / radian

A 21 century R console
MIT License
1.96k stars 73 forks source link

Installation of radian fails: Running setup.py install for rchitect did not run successfully. #392

Open fmartelg opened 1 year ago

fmartelg commented 1 year ago

Given that I have R 4.2.2 installed on my Windows 11 machine as well as Python 3.11.1 When I type pip3 install -U radian in a PowerShell terminal Then I get an error:

Collecting radian Downloading radian-0.6.4.tar.gz (53 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.8/53.8 kB 1.4 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting rchitect<0.4.0,>=0.3.39 Downloading rchitect-0.3.39.tar.gz (32 kB) Preparing metadata (setup.py) ... done Collecting prompt_toolkit<3.1,>=3.0.15 Downloading prompt_toolkit-3.0.36-py3-none-any.whl (386 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 386.4/386.4 kB 6.1 MB/s eta 0:00:00 Collecting pygments>=2.5.0 Downloading Pygments-2.14.0-py3-none-any.whl (1.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 14.1 MB/s eta 0:00:00 Collecting wcwidth Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB) Collecting cffi>=1.10.0 Using cached cffi-1.15.1-cp311-cp311-win_amd64.whl (179 kB) Collecting six>=1.9.0 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Installing collected packages: wcwidth, six, pygments, pycparser, prompt_toolkit, cffi, rchitect, radian DEPRECATION: rchitect is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for rchitect ... error error: subprocess-exited-with-error

× Running setup.py install for rchitect did not run successfully. │ exit code: 1 ╰─> [44 lines of output] C:\Users\JOE DOE\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( WARNING: The wheel package is not available. running install C:\Users\JOE DOE\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win-amd64-cpython-311 creating build\lib.win-amd64-cpython-311\rchitect copying rchitect\callbacks.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect\completion.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect\console.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect\dispatch.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect\interface.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect\py_tools.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect\repl.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect\setup.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect\types.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect\utils.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect\xptr.py -> build\lib.win-amd64-cpython-311\rchitect copying rchitect__init__.py -> build\lib.win-amd64-cpython-311\rchitect creating build\lib.win-amd64-cpython-311\rchitect\reticulate copying rchitect\reticulate\path.py -> build\lib.win-amd64-cpython-311\rchitect\reticulate
copying rchitect\reticulate\py_config.py -> build\lib.win-amd64-cpython-311\rchitect\reticulate copying rchitect\reticulate__init__.py -> build\lib.win-amd64-cpython-311\rchitect\reticulate copying rchitect\reticulate\config.R -> build\lib.win-amd64-cpython-311\rchitect\reticulate
creating build\lib.win-amd64-cpython-311\rchitect\src copying rchitect\src\gil.c -> build\lib.win-amd64-cpython-311\rchitect\src copying rchitect\src\gil.h -> build\lib.win-amd64-cpython-311\rchitect\src copying rchitect\src\libR.c -> build\lib.win-amd64-cpython-311\rchitect\src × Encountered error while trying to install package. ╰─> rchitect

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

I installed the wheel package but still get an error.

Kyuancn commented 1 year ago

same problem, said I need MS C++ 14.0 or above