I can't import requests library

Viewed 84

i cant import requests library and get this error:

import requests
  File "C:\Users\Tochka2061\AppData\Roaming\Python\Python310\site-packages\requests\__init__.py", line 45, in <module>
    from .exceptions import RequestsDependencyWarning
  File "C:\Users\Tochka2061\AppData\Roaming\Python\Python310\site-packages\requests\exceptions.py", line 11, in <module>
    from .compat import JSONDecodeError as CompatJSONDecodeError
  File "C:\Users\Tochka2061\AppData\Roaming\Python\Python310\site-packages\requests\compat.py", line 33, in <module>
    import simplejson as json
ValueError: source code string cannot contain null bytes

How i can solve it? Ive already tried to delete python and install it again, it didnt help.

0 Answers
Related