-2

I'm trying to install smartapi Python library

pip install smartapi

But it's throw error.....

  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.
 ╰─> PyCrypto

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

error image:
error image

My Python version is 3.10.2 and my pip version is 22.0.3

Luca Kiebel
  • 9,790
  • 7
  • 29
  • 44
shomya
  • 1
  • 1
  • 2
  • 1
    Well, as the error tells you, there's a problem with the package. Most likely the package authors are the ones to fix it. – Adriaan Mar 02 '22 at 09:22
  • 1
    Does this answer your question? [can't install pycrypto, python 3.10, how to fix?](https://stackoverflow.com/questions/69516513/cant-install-pycrypto-python-3-10-how-to-fix) – gre_gor Mar 02 '22 at 09:38

1 Answers1

0

PyCrypto is no longer supported. See https://stackoverflow.com/a/69516560/7976758 and https://stackoverflow.com/a/58077358/7976758 .

SmartAPI requires Python 2 (see the bottom of the left column). Try Python 2.7. Or find out a different package.

phd
  • 82,685
  • 13
  • 120
  • 165