1
我試圖安裝一個Python包點子,但它認爲我有不同版本的Mac比我實際做:PIP在Mac上安裝運行到版本錯誤
pip install root_numpy
Collecting root-numpy
Using cached root_numpy-4.4.1.tar.gz
Building wheels for collected packages: root-numpy
Running setup.py bdist_wheel for root-numpy ... error
Complete output from command /Users/mattzhang/py3_kernel/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/38/2_qkncsd1hlgd2871lnmrgw80000gn/T/pip-build-xexox4xy/root-numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/38/2_qkncsd1hlgd2871lnmrgw80000gn/T/tmpawn1rjqlpip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.5
creating build/lib.macosx-10.6-intel-3.5/root_numpy
copying root_numpy/__init__.py -> build/lib.macosx-10.6-intel-3.5/root_numpy
copying root_numpy/_array.py -> build/lib.macosx-10.6-intel-3.5/root_numpy
...
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
這裏的問題是,我使用優勝美地10.10.5版本,但pip認爲我使用的是10.6。我能做些什麼來糾正這個問題?