[Python] cannot install noise, tried everything

Discussão em 'Python' iniciado por Stack, Novembro 28, 2024.

  1. Stack

    Stack Membro Participativo

    Trying to get a script to run. Need noise module to install it. Can't.

    Running "pip install noise" produces:

    Collecting noise
    Using cached noise-1.2.2.zip (132 kB)
    Installing build dependencies ... done
    Getting requirements to build wheel ... done
    Preparing metadata (pyproject.toml) ... done
    Building wheels for collected packages: noise
    Building wheel for noise (pyproject.toml) ... error
    error: subprocess-exited-with-error

    × Building wheel for noise (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [12 lines of output]
    running bdist_wheel
    running build
    running build_py
    creating build\lib.win-amd64-cpython-312\noise
    copying .\perlin.py -> build\lib.win-amd64-cpython-312\noise
    copying .\shader.py -> build\lib.win-amd64-cpython-312\noise
    copying .\shader_noise.py -> build\lib.win-amd64-cpython-312\noise
    copying .\test.py -> build\lib.win-amd64-cpython-312\noise
    copying .\__init__.py -> build\lib.win-amd64-cpython-312\noise
    running build_ext
    building 'noise._simplex' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for noise
    Failed to build noise
    ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (noise)`


    Try installing Build Tools. Ensure W10 SDK is checked. Install. Run again. Same error. Try downloading and using prebuilt wheel.

    Run "pip install noise-1.2.3-cp312-cp312-win_arm64.whl"

    ERROR: noise-1.2.3-cp312-cp312-win_arm64.whl is not a supported wheel on this platform.

    Not really a programmer. At my wit's end.

    Continue reading...

Compartilhe esta Página