845 浏览
0

C:\Users\Administrator>py -3.9 -m pip install tqsdk
Collecting tqsdk
Using cached tqsdk-3.3.0-py3-none-win32.whl (3.8 MB)
Collecting requests
Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting scipy
Using cached scipy-1.10.1.tar.gz (42.4 MB)
Installing build dependencies … done
Getting requirements to build wheel … done
Installing backend dependencies … 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]
+ meson setup –prefix=F:\python\Python39-32 C:\Users\Administrator\AppData\Local\Temp\pip-install-vl045v41\scipy_c872ec6e8e0a4c639d55b235fdfda986 C:\Users\Administrator\AppData\Local\Temp\pip-install-vl045v41\scipy_c872ec6e8e0a4c639d55b235fdfda986\.mesonpy-atswd1ui\build –native-file=C:\Users\Administrator\AppData\Local\Temp\pip-install-vl045v41\scipy_c872ec6e8e0a4c639d55b235fdfda986\.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
The Meson build system
Version: 1.0.1
Source dir: C:\Users\Administrator\AppData\Local\Temp\pip-install-vl045v41\scipy_c872ec6e8e0a4c639d55b235fdfda986
Build dir: C:\Users\Administrator\AppData\Local\Temp\pip-install-vl045v41\scipy_c872ec6e8e0a4c639d55b235fdfda986\.mesonpy-atswd1ui\build
Build type: native build
Project name: SciPy
Project version: 1.10.1
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): [[‘icl’], [‘cl’], [‘cc’], [‘gcc’], [‘clang’], [‘clang-cl’], [‘pgcc’]]
The following exception(s) were encountered:
Running `icl “”` gave “[WinError 2] 系统找不到指定的文件。”
Running `cl /?` gave “[WinError 2] 系统找不到指定的文件。”
Running `cc –version` gave “[WinError 2] 系统找不到指定的文件。”
Running `gcc –version` gave “[WinError 2] 系统找不到指定的文件。”
Running `clang –version` gave “[WinError 2] 系统找不到指定的文件。”
Running `clang-cl /?` gave “[WinError 2] 系统找不到指定的文件。”
Running `pgcc –version` gave “[WinError 2] 系统找不到指定的文件。”

A full log can be found at C:\Users\Administrator\AppData\Local\Temp\pip-install-vl045v41\scipy_c872ec6e8e0a4c639d55b235fdfda986\.mesonpy-atswd1ui\build\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.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

C:\Users\Administrator>

大神门帮忙看看,装了几个版本,都是这个问题

李思恒 已回答的问题 2023年3月23日
0

是什么系统装的,把整个python环境和相关库删了,然后换一个国内源比如清华源试试

李思恒 已回答的问题 2023年3月23日
您正在查看1个答案中的1个,单击此处查看所有答案。