为Python Windows安装cmake时出错 [英] Error when installing cmake for python windows

查看:160
本文介绍了为Python Windows安装cmake时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Windows 10和最新的Python 3.6.1.我正在尝试使用

I have windows 10 and fresh Python 3.6.1. I was trying to install package Cmake 0.6.0 (needed for another package, atari-py) using

pip install cmake

但是我遇到了错误.

我安装了以下软件包:pip,scikit-build,setuptools,wheel,pybdist.我的帐户名中确实有一个外国符号(经验教训),但是在安装其他软件包时可以正常使用.我不是熟练的Windows管理员.

I have these packages installed: pip,scikit-build, setuptools, wheel, pybdist. I do have a foreign symbol in my account name (lesson learnt), but it works fine when installing other packages. I am not a skilled windows administrator.

Collecting cmake
  Using cached cmake-0.6.0.tar.gz
Building wheels for collected packages: cmake
  Running setup.py bdist_wheel for cmake: started
  Running setup.py bdist_wheel for cmake: finished with status 'error'
  Complete output from command C:\Python\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Čejkis\\AppData\\Local\\Temp\\pycharm-packaging1\\cmake\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\EJKIS~1\AppData\Local\Temp\tmp3br7eri7pip-wheel- --python-tag cp36:
  Traceback (most recent call last):
    File "C:\Python\Python36-32\lib\site-packages\skbuild\setuptools_wrap.py", line 405, in setup
      cmkr = cmaker.CMaker()
    File "C:\Python\Python36-32\lib\site-packages\skbuild\cmaker.py", line 67, in __init__
      "Problem with the CMake installation, aborting build.")

  Problem with the CMake installation, aborting build.

  ----------------------------------------
  Running setup.py clean for cmake
Failed to build cmake
Installing collected packages: cmake
  Running setup.py install for cmake: started
    Running setup.py install for cmake: finished with status 'error'
    Complete output from command C:\Python\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Čejkis\\AppData\\Local\\Temp\\pycharm-packaging1\\cmake\\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\EJKIS~1\AppData\Local\Temp\pip-5ql_x35g-record\install-record.txt --single-version-externally-managed --compile:
    Traceback (most recent call last):
      File "C:\Python\Python36-32\lib\site-packages\skbuild\setuptools_wrap.py", line 405, in setup
        cmkr = cmaker.CMaker()
      File "C:\Python\Python36-32\lib\site-packages\skbuild\cmaker.py", line 67, in __init__
        "Problem with the CMake installation, aborting build.")

    Problem with the CMake installation, aborting build.

    ----------------------------------------

  Failed building wheel for cmake
Command "C:\Python\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Čejkis\\AppData\\Local\\Temp\\pycharm-packaging1\\cmake\\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\EJKIS~1\AppData\Local\Temp\pip-5ql_x35g-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Čejkis\AppData\Local\Temp\pycharm-packaging1\cmake\

推荐答案

如果上述对pip3或pip install cmake的回答不起作用,请尝试

if the above answers of pip3 or pip install cmake don't work try

sudo apt-get install cmake

sudo apt-get install cmake

这篇关于为Python Windows安装cmake时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆