0

Got the following error (partly) when installing pylatex py pip install pylatex(Python3.10, MacOS). How can I fix it?

Building wheel for pylatex (setup.py) ... error error: subprocess-exited-with-error

python setup.py bdist_wheel did not run successfully. exit code: 1 [70 lines of output] /usr/local/lib/python3.10/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options !!


Usage of dash-separated 'install-data' will not be supported in future ... File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'wheel.bdist_wheel' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pylatex Running setup.py clean for pylatex Failed to build pylatex ERROR: Could not build wheels for pylatex, which is required to install pyproject.toml-based projects

I ran pip install pylatex or pip install pylatex==1.3.1

And tried pip install --upgrade setuptools wheel but did not work.

1 Answers1

0

Try:
pip install setuptools wheel
and
python -m pip install --upgrade pip

Then:
python -m pip install pylatex
or
py -m pip install pylatex