0

when I run my python script, I get this error:

import win32crypt:
ImportError: DLL load failed: The specified module could not be found.

I'm on Windows 10 and I am using Python 2.7 because the project I am trying to run was made in python 2.7

I tried running the script and got this error.

I tried all the solutions in this thread too: Can't import win32crypt python module

except pip install pypiwin32: which returns this error:

  Using cached pypiwin32-223.tar.gz (622 bytes)
    ERROR: Command errored out with exit status 1:
     command: 'C:\Python27\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\matma\\appdata\\local\\temp\\pip-install-f4ecmx\\pypiwin32\\setup.py'"'"'; __file__='"'"'c:\\users\\matma\\appdata\\local\\temp\\pip-install-f4ecmx\\pypiwin32\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'c:\users\matma\appdata\local\temp\pip-pip-egg-info-tsajuh'
         cwd: c:\users\matma\appdata\local\temp\pip-install-f4ecmx\pypiwin32\
    Complete output (10 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Python27\lib\site-packages\setuptools\__init__.py", line 21, in <module>
        import setuptools.version
      File "C:\Python27\lib\site-packages\setuptools\version.py", line 1, in <module>
        import pkg_resources
      File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 1380
        raise SyntaxError(e) from e
                                ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

0 Answers0