-1

Command: pip install pygco

Error:

Collecting pygco
  Using cached pygco-0.0.16.tar.gz (21 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: cython in c:\users\j\appdata\local\programs\python\python311\lib\site-packages (from pygco) (0.29.24)
Building wheels for collected packages: pygco
  Building wheel for pygco (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      C:\Users\j\AppData\Local\Programs\Python\Python311\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\j\AppData\Local\Temp\pip-install-zvg3vm3x\pygco_fc7073e00ec646719f7eb86fdc9f7009\gco_python.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      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]

I tried to install the pygco model, but I keep encountering this issue every time

error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      C:\Users\j\AppData\Local\Programs\Python\Python311\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\j\AppData\Local\Temp\pip-install-zvg3vm3x\pygco_fc7073e00ec646719f7eb86fdc9f7009\gco_python.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      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]
Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
  • The solution is in the error message: "*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/*" – Gino Mempin Aug 26 '23 at 22:59

0 Answers0