AntonKueltz / fastecdsa

Python library for fast elliptic curve crypto
https://pypi.python.org/pypi/fastecdsa
The Unlicense
264 stars 78 forks source link

Error while installing ecdsa #84

Closed rohit-goswami closed 2 years ago

rohit-goswami commented 2 years ago

src/curveMath.h:4:10: fatal error: Python.h: No such file or directory

include

            ^~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  [end of output]

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

× Encountered error while trying to install package. ╰─> fastecdsa

note: This is an issue with the package mentioned above, not pip.

rohit-goswami commented 2 years ago

[SOLVED]

I tried using sudo apt-get install python3.7-dev and then reinstalling solved the problem.