pip - Fejl ved installation af secp256k1 bibliotek på windows

Indlæg af Hanne Mølgaard Plasc

Problem



Jeg forsøger at installere secp256k1 biblioteket på min Windows 10 64-bit maskine, og jeg modtager følgende fejl


C:UsersuserDownloadshttp-ftp>pip3 install secp256k1
Collecting secp256k1
  Using cached https://files.pythonhosted.org/packages/52/62/d7bf3829e126e517e253d2e22a63511c54bbaac34d7ddea316cde040fc49/secp256k1-0.13.2.tar.gz
Requirement already satisfied: cffi>=1.3.0 in c:usersuserappdatalocalprogramspythonpython36libsite-packages (from secp256k1) (1.11.5)
Requirement already satisfied: pycparser in c:usersuserappdatalocalprogramspythonpython36libsite-packages (from cffi>=1.3.0->secp256k1) (2.18)
Building wheels for collected packages: secp256k1
  Running setup.py bdist\_wheel for secp256k1 ... error
  Complete output from command c:usersuserappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;\_\_file\_\_='C:\Users\user\AppData\Local\Temp\pip-install-ewfjmjoy\secp256k1\setup.py';f=getattr(tokenize, 'open', open)(\_\_file\_\_);code=f.read().replace('
', '
');f.close();exec(compile(code, \_\_file\_\_, 'exec'))" bdist\_wheel -d C:UsersuserAppDataLocalTemppip-wheel-p9ijp41o --python-tag cp36:
  0.28
  Using bundled libsecp256k1
  running bdist\_wheel
  running build
  running build\_py
  creating build
  creating buildlib.win-amd64-3.6
  creating buildlib.win-amd64-3.6secp256k1
  copying secp256k1\_\_init\_\_.py -> buildlib.win-amd64-3.6secp256k1
  copying secp256k1\_\_main\_\_.py -> buildlib.win-amd64-3.6secp256k1
  running build\_clib
  error: [WinError 193] \%1 is not a valid Win32 application

  ----------------------------------------
  Failed building wheel for secp256k1
  Running setup.py clean for secp256k1
Failed to build secp256k1
Installing collected packages: secp256k1
  Running setup.py install for secp256k1 ... error
    Complete output from command c:usersuserappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;\_\_file\_\_='C:\Users\user\AppData\Local\Temp\pip-install-ewfjmjoy\secp256k1\setup.py';f=getattr(tokenize, 'open', open)(\_\_file\_\_);code=f.read().replace('
', '
');f.close();exec(compile(code, \_\_file\_\_, 'exec'))" install --record C:UsersuserAppDataLocalTemppip-record-y6bxnsr0install-record.txt --single-version-externally-managed --compile:
    0.28
    Using bundled libsecp256k1
    running install
    running build
    running build\_py
    creating build
    creating buildlib.win-amd64-3.6
    creating buildlib.win-amd64-3.6secp256k1
    copying secp256k1\_\_init\_\_.py -> buildlib.win-amd64-3.6secp256k1
    copying secp256k1\_\_main\_\_.py -> buildlib.win-amd64-3.6secp256k1
    running build\_clib
    error: [WinError 193] \%1 is not a valid Win32 application

    ----------------------------------------
Command "c:usersuserappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;\_\_file\_\_='C:\Users\user\AppData\Local\Temp\pip-install-ewfjmjoy\secp256k1\setup.py';f=getattr(tokenize, 'open', open)(\_\_file\_\_);code=f.read().replace('
', '
');f.close();exec(compile(code, \_\_file\_\_, 'exec'))" install --record C:UsersuserAppDataLocalTemppip-record-y6bxnsr0install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersuserAppDataLocalTemppip-install-ewfjmjoysecp256k1


Eventuelle forslag, hvad der kan være forkert, og hvordan man retter det? Jeg forsøgte med pip3 og easy\_install også, men intet synes at fungere.

Bedste reference