Normal,You will encounter this error when installing a Python package,This package must be a package containing C ++ code。
This is due to incompatibility after macOS update,In General,The maintainer of this package should already be compatible with this particular situation:
1 2 |
if platform.system() == 'Darwin': extra_compile_args += ['-mmacosx-version-min=10.7', '-stdlib=libc++'] |
So that it can be successfully compiled on macOS。
But if you are using PyPy,Maybe even if the maintainer includes this sentence,You cannot successfully install the corresponding package,At this time, you need to manually specify the compiler:
1 |
sudo CFLAGS=-stdlib=libc++ pip_pypy3 install your-package |
CFLAGS=-stdlib=libc++ Specify the compiler to use,Avoid PyPy ignore setup.py Some settings in。
Original article written by LogStudio:R0uter's Blog » clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
Reproduced Please keep the source and description link:https://www.logcg.com/archives/3369.html
Finally solved the problem of installing plyvel c++ editor。Many thanks