Question: How can I install the entire package of PIP succesfully on my MacOS?
Situation: Mac OS Monterey (version 12.6) Python (3.10.7)
After having installed the latest version of Python I encountered error while trying to install the package for PIP. I gave the command> pip3 install notebook. The following error occured:
Using legacy 'setup.py install' for lxml, since package 'wheel' is not installed. Installing collected packages: lxml, jupyterlab-pygments, jupyter-core, jinja2, jedi, entrypoints, defusedxml, decorator, debugpy, cffi, bleach, beautifulsoup4, attrs, asttokens, stack-data, jupyter-client, jsonschema, argon2-cffi-bindings, nbformat, ipython, argon2-cffi, nbclient, ipykernel, nbconvert, notebook Running setup.py install for lxml ... error error: subprocess-exited-with-error
× Running setup.py install for lxml did not run successfully. │ exit code: 1 ╰─> [187 lines of output] .... .... h:37:2: error: architecture not supported #error architecture not supported ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. Compile failed: command '/usr/bin/clang' failed with exit code 1 creating var creating var/folders creating var/folders/xz creating var/folders/xz/qqlm2b0d5cj46mhqg_hsb4hc0000gn creating var/folders/xz/qqlm2b0d5cj46mhqg_hsb4hc0000gn/T cc -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/include/libxml2 -c /var/folders/xz/qqlm2b0d5cj46mhqg_hsb4hc0000gn/T/xmlXPathInitv15_hbxw.c -o var/folders/xz/qqlm2b0d5cj46mhqg_hsb4hc0000gn/T/xmlXPathInitv15_hbxw.o cc var/folders/xz/qqlm2b0d5cj46mhqg_hsb4hc0000gn/T/xmlXPathInitv15_hbxw.o -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lxml2 -o a.out error: command '/usr/bin/clang' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> lxml
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.