T
T
TORONTOADLER2022-04-07 18:09:10
Python
TORONTOADLER, 2022-04-07 18:09:10

Error installing hashlib?

Hello everyone, when installing hashlib, it gives an error

C:\Users\pc>pip install hashlib
Collecting hashlib
  Using cached hashlib-20081119.zip (42 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\pc\AppData\Local\Temp\pip-install-6tee7eo0\hashlib_f66c1f44a2204e07aa800b3ae287da48\setup.py", line 68
          print "unknown OS, please update setup.py"
                ^
      SyntaxError: Missing parentheses in call to 'print'. Did you mean print("unknown OS, please update setup.py")?
      [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

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


I inserted it as code, I don’t know if it’s possible or not.
When installing other libraries, everything goes without errors, sorry if this is some kind of stupid question, I just really don’t understand well, but I couldn’t find anything like that on the Internet

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2022-04-07
@TORONTOADLEER

hashlib is a standard library, you don't need to install it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question