pip3 install --user meson报ssl错误

正确的做法是:
参考文章:https://mesonbuild.com/Quick-guide.html
sudo apt-get install python3 python3-pip python3-setuptools python3-wheel ninja-build

然后安装
pip3 install --user meson

pip install airtest -i https://mirrors.aliyun.com/pypi/simple/ Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting airtest Using cached https://mirrors.aliyun.com/pypi/packages/4c/b6/88ef6f39e35255bc6fa4067bf5eaba57e241cbe8094f31c71d8367f32d02/airtest-1.3.6.tar.gz (49.6 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting Jinja2>=2.8 (from airtest) Downloading https://mirrors.aliyun.com/pypi/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl (134 kB) Requirement already satisfied: Pillow>=3.4.0 in c:\program files\python312-arm64\lib\site-packages (from airtest) (10.4.0) Requirement already satisfied: requests>=2.11.1 in c:\users\wenjluo\appdata\roaming\python\python312-arm64\site-packages (from airtest) (2.32.5) Collecting six<=1.16.0,>=1.9.0 (from airtest) Using cached https://mirrors.aliyun.com/pypi/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting mss==6.1.0 (from airtest) Using cached https://mirrors.aliyun.com/pypi/packages/d7/5f/77dece686b8d08a17430e169e936722693712b8cf1ee638caa8b1cb6452b/mss-6.1.0-py3-none-any.whl (76 kB) Collecting numpy<2.0 (from airtest) Using cached https://mirrors.aliyun.com/pypi/packages/65/6e/09db70a523a96d25e115e71cc56a6f9031e7b8cd166c1ac8438307c14058/numpy-1.26.4.tar.gz (15.8 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [21 lines of output] + C:\Program Files\Python312-arm64\python.exe C:\Users\AppData\Local\Temp\pip-install-7h35my59\numpy_91515063e652444e8f29a08a6526b761\ vendored-meson\meson\meson.py setup C:\Users\AppData\Local\Temp\pip-install-7h35my59\numpy_91515063e652444e8f29a08a6526b761 C:\Users\wenjluo \AppData\Local\Temp\pip-install-7h35my59\numpy_91515063e652444e8f29a08a6526b761\.mesonpy-vh_hj_r6 -Dbuildtype=release -Db_ndebug=if-release -Db_vscr t=md --native-file=C:\Users\AppData\Local\Temp\pip-install-7h35my59\numpy_91515063e652444e8f29a08a6526b761\.mesonpy-vh_hj_r6\meson-python-native-file.ini The Meson build system Version: 1.2.99 Source dir: C:\Users\AppData\Local\Temp\pip-install-7h35my59\numpy_91515063e652444e8f29a08a6526b761 Build dir: C:\Users\AppData\Local\Temp\pip-install-7h35my59\numpy_91515063e652444e8f29a08a6526b761\.mesonpy-vh_hj_r6 Build type: native build Project name: NumPy Project version: 1.26.4 WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe ..\meson.build:1:0: ERROR: Unknown compiler(s): [[&#39;icl&#39;], [&#39;cl&#39;], [&#39;cc&#39;], [&#39;gcc&#39;], [&#39;clang&#39;], [&#39;clang-cl&#39;], [&#39;pgcc&#39;]] The following exception(s) were encountered: Running `icl ""` gave "[WinError 2] The system cannot find the file specified" Running `cl /?` gave "[WinError 2] The system cannot find the file specified" Running `cc --version` gave "[WinError 2] The system cannot find the file specified" Running `gcc --version` gave "[WinError 2] The system cannot find the file specified" Running `clang --version` gave "[WinError 2] The system cannot find the file specified" Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified" Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified" A full log can be found at C:\Users\AppData\Local\Temp\pip-install-7h35my59\numpy_91515063e652444e8f29a08a6526b761\.mesonpy-vh_hj_r6\meson-logs\meson-log.txt [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. ╰─> numpy note: This is an issue with the package mentioned above, not pip. hint: See above for details.
11-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值