python - Installationsfejl kan ikke finde startinfo

Indlæg af Hanne Mølgaard Plasc

Problem



Hej!
Jeg forsøger at installere pyoptix i Windows og få denne fejl. Efter at have søgt efter installationsfejl, kan jeg ikke finde en løsning, hvordan man retter den. Dette er hvad jeg fik:


c:UsersXXXDownloadsPyOptiX-masterPyOptiX-master>python setup.py install
Traceback (most recent call last):
  File "setup.py", line 193, in <module>
    main()
  File "setup.py", line 156, in main
    sources, include\_dirs, library\_dirs, libraries = extension\_prebuild()
  File "setup.py", line 114, in extension\_prebuild
    optix\_lib\_path = search\_library(['liboptix.so'])
  File "setup.py", line 59, in search\_library
    populate\_ld\_paths()
  File "setup.py", line 40, in populate\_ld\_paths
    for line in check\_output\_sudo\_if\_fails(['ldconfig', '-vNX']).decode('utf8').splitlines():
  File "setup.py", line 32, in check\_output\_sudo\_if\_fails
    return check\_output(cmd)
  File "C:UsersXXXAppDataLocalProgramsPythonPython36libsubprocess.py", line 336, in check\_output
    **kwargs).stdout
  File "C:UsersXXXAppDataLocalProgramsPythonPython36libsubprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:UsersXXXAppDataLocalProgramsPythonPython36libsubprocess.py", line 707, in \_\_init\_\_
    restore\_signals, start\_new\_session)
  File "C:UsersXXXAppDataLocalProgramsPythonPython36libsubprocess.py", line 990, in \_execute\_child
    startupinfo)
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden

Bedste reference