Error when installing cmake for python windows – Code Utility

Error When Installing Cmake For Python Windows – Code Utility

I’ve windows 10 and recent Python 3.6.1.
I used to be making an attempt to put in bundle Cmake 0.6.0 (wanted for one other bundle, atari-py) utilizing

pip set up cmake

however I’m getting an error.

I’ve these packages put in: pip,scikit-build, setuptools, wheel, pybdist.
I do have a international image in my account title (lesson learnt), but it surely works high-quality when installing different packages. I’m not a talented 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: began
  Running setup.py bdist_wheel for cmake: completed with standing 'error'
  Complete output from command C:PythonPython36-32python.exe -u -c "import setuptools, tokenize;__file__='C:UsersČejkisAppDataLocalTemppycharm-packaging1cmakesetup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:UsersEJKIS~1AppDataLocalTemptmp3br7eri7pip-wheel- --python-tag cp36:
  Traceback (most up-to-date name final):
    File "C:PythonPython36-32libsite-packagesskbuildsetuptools_wrap.py", line 405, in setup
      cmkr = cmaker.CMaker()
    File "C:PythonPython36-32libsite-packagesskbuildcmaker.py", line 67, in __init__
      "Problem with the CMake installation, aborting build.")

  Problem with the CMake set up, aborting construct.

  ----------------------------------------
  Running setup.py clear for cmake
Failed to construct cmake
Installing collected packages: cmake
  Running setup.py set up for cmake: began
    Running setup.py set up for cmake: completed with standing 'error'
    Complete output from command C:PythonPython36-32python.exe -u -c "import setuptools, tokenize;__file__='C:UsersČejkisAppDataLocalTemppycharm-packaging1cmakesetup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" set up --record C:UsersEJKIS~1AppDataLocalTemppip-5ql_x35g-recordinstall-record.txt --single-version-externally-managed --compile:
    Traceback (most up-to-date name final):
      File "C:PythonPython36-32libsite-packagesskbuildsetuptools_wrap.py", line 405, in setup
        cmkr = cmaker.CMaker()
      File "C:PythonPython36-32libsite-packagesskbuildcmaker.py", line 67, in __init__
        "Problem with the CMake installation, aborting build.")

    Problem with the CMake set up, aborting construct.

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

  Failed constructing wheel for cmake
Command "C:PythonPython36-32python.exe -u -c "import setuptools, tokenize;__file__='C:UsersČejkisAppDataLocalTemppycharm-packaging1cmakesetup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" set up --record C:UsersEJKIS~1AppDataLocalTemppip-5ql_x35g-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersČejkisAppDataLocalTemppycharm-packaging1cmake

python -m pip set up --upgrade pip

after which you’ll be able to run

READ :  What is Lyft cancellation policy?

pip3 set up cmake

This works for me on Pyhton 3.8

if the above solutions of pip3 or pip set up cmake don’t work strive

sudo apt-get set up cmake

As of in the present day, CMake wheels for python 3.6 can be found and pip set up cmake is predicted to work.

Background

At the time of your first submit, there have been no wheels for python 3.6, pip was rightfully making an attempt to construct the wheel utilizing the supply distribution.

Considering that:

… you bought the overall error message Problem with the CMake set up, aborting construct.

References:

Installing atari-py on windows

Looking on the documentation and open pull requests of the corresponding mission, it appear like windows shouldn’t be supported. See https://github.com/openai/atari-py

If you wish to assist the mission and enhance their windows assist, let me know and I might attempt to offer you some steering to create a pull request and simplify their construct system.

Eventually I put in cmake 0.8 from a binary file from their webpage.
I initially wished to put in bundle atari-py that wanted cmake. I downloaded that from git and in cmd with administrator rights I ran

python set up setup.py

which labored.

python setup.py set up

nonetheless didn’t work. Unfortunately I can’t give any additional rationalization.

READ :  Which Gaming Motherboard Is the Best for You

I simply downloaded VS Code with C++ libraries and that did the trick, I used to be capable of set up CMake. (I used to be on Windows 10 btw)

Leave a Reply

Your email address will not be published. Required fields are marked *