Skip to Content
Menu
This question has been flagged
3 Replies
6788 Views

hello i get this error after run   pip install -r requirements.txt

 command  for odoo17

 Using cached zope.event-5.0-py3-none-any.whl (6.8 kB)

Using cached zope.interface-6.1-cp310-cp310-win_amd64.whl (204 kB)

Using cached soupsieve-2.5-py3-none-any.whl (36 kB)

Building wheels for collected packages: libsass

  Building wheel for libsass (setup.py) ... error

  error: subprocess-exited-with-error


  × python setup.py bdist_wheel did not run successfully.

  │ exit code: 1

  ╰─> [19 lines of output]

      You probably need Visual Studio 2015 (14.0) or higher

      running bdist_wheel

      running build

      running build_py

      creating build

      creating build\lib.win-amd64-cpython-310

      copying pysassc.py -> build\lib.win-amd64-cpython-310

      copying sass.py -> build\lib.win-amd64-cpython-310

      copying sassc.py -> build\lib.win-amd64-cpython-310

      copying sasstests.py -> build\lib.win-amd64-cpython-310

      creating build\lib.win-amd64-cpython-310\sassutils

      copying sassutils\builder.py -> build\lib.win-amd64-cpython-310\sassutils

      copying sassutils\distutils.py -> build\lib.win-amd64-cpython-310\sassutils

      copying sassutils\wsgi.py -> build\lib.win-amd64-cpython-310\sassutils

      copying sassutils\_compat.py -> build\lib.win-amd64-cpython-310\sassutils

      copying sassutils\__init__.py -> build\lib.win-amd64-cpython-310\sassutils

      running build_ext

      building '_sass' extension

      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-buil

d-tools/

      [end of output]


  note: This error originates from a subprocess, and is likely not a problem with pip.

  ERROR: Failed building wheel for libsass

  Running setup.py clean for libsass

Failed to build libsass

ERROR: Could not build wheels for libsass, which is required to install pyproject.toml-based projects



 I already have visual studio 2022

Avatar
Discard
Best Answer

Hello,

You can find more suggestions on stackoverflow.

Try to google for "Pip error: Microsoft Visual C++ 14.0 is required"

One of the suggested solutions:

pip install --upgrade setuptools


Stanislav

Avatar
Discard
Author Best Answer

thank you I re install c++ tools and the problemed solved

Avatar
Discard
Best Answer

Hi,

Please go through our blog to know about how to install odoo 17


https://www.cybrosys.com/blog/how-to-setup-odoo-17-development-environment-using-pycharm-in-ubuntu-20-04

Hope it helps,

Avatar
Discard