Cython not installed error on any Python version when installing pyRFC - Stack Overflow

admin2025-04-16  5

I have been following this guide to process SAP data via Python.

However, I get stuck on step 3 of PyRFC & Cython Installation.

C:\Users\XXX>pip install C:\Users\XXX\Downloads\PyRFC-2.0.4.tar.gz
Processing c:\users\XXX\downloads\pyrfc-2.0.4.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      Cython not installed.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I always get an error that cython is not installed. I have tried it on both 3.13.1amd64 and 3.8.3.

I have tried all kinds of installments of Cython, however I cannot get it running.

I have been following this guide to process SAP data via Python.

https://community.sap.com/t5/technology-blogs-by-members/connecting-python-with-sap-step-by-step-guide/ba-p/13452893

However, I get stuck on step 3 of PyRFC & Cython Installation.

C:\Users\XXX>pip install C:\Users\XXX\Downloads\PyRFC-2.0.4.tar.gz
Processing c:\users\XXX\downloads\pyrfc-2.0.4.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      Cython not installed.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I always get an error that cython is not installed. I have tried it on both 3.13.1amd64 and 3.8.3.

I have tried all kinds of installments of Cython, however I cannot get it running.

Share Improve this question edited Feb 4 at 8:02 Sandra Rossi 13.8k6 gold badges25 silver badges56 bronze badges asked Feb 4 at 2:31 user29483556user29483556 1 1
  • By default pip will do "build isolation" - when it installs the wheel it creates a new Python environment just for things the wheel depends on. Cython won't be in that environment (and PySAP clearly doesn't give its build dependencies correctly). You might be able to run pip install --no-build-isolation ... which should use your regular Python environment – DavidW Commented Feb 4 at 8:01
Add a comment  | 

1 Answer 1

Reset to default 0

From what I checked there is no definitive solution to this, but you can try upgrading pip or installing python-dotenv or passing --no-build-isolation when installing. (Solutions taken from https://github.com/pypa/packaging-problems/issues/721 and https://github.com/numpy/numpy/issues/24377)

Also I think https://github.com/nuncjo/cython-installation-windows might be a better guide for you to go through.

转载请注明原文地址:http://www.anycun.com/QandA/1744742368a86972.html