Xcode6.4安装CommandLineTools

本文介绍了一种在Xcode 6.4及以上版本中安装CommandLineTools的方法。由于直接通过Xcode的偏好设置无法找到该工具,文章提供了一个替代方案:通过Xcode的菜单栏打开更多开发者工具,并从官方网站下载对应的版本。

因为编译FFMPEG需要用到CommandLineTools,所以需要安装这个工具,但是网上都说在Xcode上Preferences > Downloads > Components 中安装。但是根本找不到这个工具。

这里提供Xcode6.4(往上的版本应该也可以)安装CommandLineTools的办法



进入Xcode,菜单栏->Xcode->Open Developer Tool,点击More Developer Tools...,到官网上下载,下载的时候注意版本和Xcode对应

(.venv) PS D:\PycharmProjects\pythonProject4> pip install scikit-learn==0.23.2 Collecting scikit-learn==0.23.2 Downloading scikit-learn-0.23.2.tar.gz (7.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.2/7.2 MB 10.5 MB/s 0:00:00 Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [63 lines of output] Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX" and platform_python_implementation == "CPython"' don't match your environment Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX" and platform_python_implementation != "CPython"' don't match your environment Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment Collecting setuptools Using cached setuptools-80.9.0-py3-none-any.whl.metadata (6.6 kB) Collecting wheel Using cached wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB) Collecting Cython>=0.28.5 Downloading cython-3.1.4-cp312-cp312-win_amd64.whl.metadata (5.1 kB) Collecting numpy==1.17.3 Downloading numpy-1.17.3.zip (6.4 MB) ---------------------------------------- 6.4/6.4 MB 10.6 MB/s 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error Preparing metadata (pyproject.toml) did not run successfully. exit code: 1 [25 lines of output] Running from numpy source directory. <string>:418: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates Traceback (most recent call last): File "D:\PycharmProjects\pythonProject4\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module> main() File "D:\PycharmProjects\pythonProject4\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\pythonProject4\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 175, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\v\AppData\Local\Temp\pip-build-env-wllh6wa5\overlay\Lib\site-packages\setuptools\build_meta.py", line 374, in prepare_metadata_for_build_wheel self.run_setup() File "C:\Users\v\AppData\Local\Temp\pip-build-env-wllh6wa5\overlay\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "C:\Users\v\AppData\Local\Temp\pip-build-env-wllh6wa5\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 443, in <module> File "<string>", line 422, in setup_package File "C:\Users\v\AppData\Local\Temp\pip-install-u5gldzm0\numpy_2c497d51b8b642f08971ea76b9e40226\numpy\distutils\__init__.py", line 6, in <module> from . import ccompiler File "C:\Users\v\AppData\Local\Temp\pip-install-u5gldzm0\numpy_2c497d51b8b642f08971ea76b9e40226\numpy\distutils\ccompiler.py", line 111, in <module> replace_method(CCompiler, 'find_executables', CCompiler_find_executables) ^^^^^^^^^ NameError: name 'CCompiler' is not defined. Did you mean: 'ccompiler'? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed Encountered error while generating package metadata. See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. (.venv) PS D:\PycharmProjects\pythonProject4>
最新发布
09-28
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值