-1

I am trying to install face_recognition onto my system, and it keeps throwing syntax errors, I solved one but then I faced this one and I am not able to find any solution to this one

 File "c:\users\vaishn~1\appdata\local\temp\easy_install-ferdbv\numpy-1.22.3\setup.py", line 59
    raise RuntimeError(f'Cannot parse version {FULLVERSION}')
                                                           ^
SyntaxError: invalid syntax
wjandrea
  • 23,210
  • 7
  • 49
  • 68
  • 4
    What version of Python are you using? – Iain Shelvington May 18 '22 at 18:45
  • 1
    [f-strings](https://peps.python.org/pep-0498/) are only available in Python 3.6 or later. Which you should be using, since even 3.6 is no longer supported. – o11c May 18 '22 at 18:48
  • 3
    If you are getting syntax errors *in the code of a popular library* (and assuming you haven't edited it yourself - *don't try that!*), then that is a tech support question for the library, not really a question about programming. This is almost always because of a version conflict. In your case, you are trying to install the package for a version of Python that isn't supported by the package. `1.22.3` is the current version of Numpy as of this post; as it clearly says [on the PyPI page for the package](https://pypi.org/project/numpy/), Python 3.8 or higher is required. – Karl Knechtel May 18 '22 at 18:48
  • Wait, you already solved a syntax error? If you need to fix syntax errors to install a package, something's seriously wrong. In this case, as already mentioned, it looks like you're running an out-of-date Python version. Even if you "fixed" all the other syntax errors, there could still be other massive issues like incompatible data formats. – wjandrea May 18 '22 at 18:51

0 Answers0