SamLinBD 2020-06-20 10:10 采纳率: 0%
浏览 248

windows amd64下pip install opentimelineio出错,请问如何解决?

我想于windows10下使用kdenlive编辑视频并导出,但在导出步骤出错,显示缺少opentimelineio。
于是,我便按照其提示,进行pip install,可是总是在cmake编译环节出错。
pip安装其他的numpy之类的都没有问题。

我的计算机是amd64位处理器ryzen5-4500u,系统为windows10 1909 64位。

以下为错误信息:

copying contrib\opentimelineio_contrib\adapters\ffmpeg_burnins.pyc -> build\lib.win-amd64-3.8\opentimelineio_contrib\adapters
running build_ext
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:7 (project):
  Generator

    NMake Makefiles

  does not support platform specification, but platform

    x64

  was specified.


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!


 Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Sam Lin\AppData\Local\Temp\pip-install-gi3cs61c\opentimelineio\setup.py", line 358, in <module>
    setup(
  File "c:\program files\python38\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "c:\program files\python38\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "c:\program files\python38\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\Sam Lin\AppData\Local\Temp\pip-install-gi3cs61c\opentimelineio\setup.py", line 140, in run
    install.run(self)
  File "c:\program files\python38\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "c:\program files\python38\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "c:\program files\python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "c:\program files\python38\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "c:\program files\python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\Sam Lin\AppData\Local\Temp\pip-install-gi3cs61c\opentimelineio\setup.py", line 185, in run
    self.build()
  File "C:\Users\Sam Lin\AppData\Local\Temp\pip-install-gi3cs61c\opentimelineio\setup.py", line 213, in build
    subprocess.check_call(
  File "c:\program files\python38\lib\subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\Sam Lin\\AppData\\Local\\Temp\\pip-install-gi3cs61c\\opentimelineio', '-DPYTHON_EXECUTABLE=c:\\program files\\python38\\python.exe', '-DOTIO_PYTHON_INSTALL:BOOL=ON', '-DOTIO_PYTHON_OTIO_DIR=C:\\Users\\Sam Lin\\AppData\\Local\\Temp\\pip-install-gi3cs61c\\opentimelineio\\build\\lib.win-amd64-3.8\\opentimelineio\\', '-DCMAKE_INSTALL_PREFIX=c:\\program files\\python38\\Lib\\site-packages\\opentimelineio\\cxx-libs', '-DOTIO_CXX_NOINSTALL:BOOL=ON', '-A', 'x64']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Sam Lin\\AppData\\Local\\Temp\\pip-install-gi3cs61c\\opentimelineio\\setup.py'"'"'; __file__='"'"'C:\\Users\\Sam Lin\\AppData\\Local\\Temp\\pip-install-gi3cs61c\\opentimelineio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Sam Lin\AppData\Local\Temp\pip-record-z2tin4lu\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\program files\python38\Include\opentimelineio' Check the logs for full command output.

请问这个错误是由amd平台引起的吗?之前在intel处理器上使用kdenlive,就直接导出了,也没有提示缺失 opentimelineio。

  • 写回答

1条回答 默认 最新

  • threenewbee 2020-06-20 10:50
    关注
      does not support platform specification, but platform
    
        x64
    
      was specified.
    

    这个包不支持x64,只能支持32bit吧。

    评论

报告相同问题?

悬赏问题

  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler