143 浏览
0

C:\Users\Administrator>pip install tqsdk -U -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host=pypi.tuna.tsinghua.edu.cn
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting tqsdk
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9a/e4/eae7e48f3b91f04350aac966aad4ca432863d6b158ac05bde9494791b1d2/tqsdk-3.8.0-py3-none-any.whl (1.8 MB)
Collecting websockets>=8.1 (from tqsdk)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ff/83/de1f7709376dc3ca9b7eeb4b9a07b4526b14876b6d372a4dc62312bebee0/websockets-15.0.1-cp312-cp312-win32.whl (176 kB)
Collecting requests (from tqsdk)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl (64 kB)
Collecting numpy (from tqsdk)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2b/93/df59a5a3897c1f036ae8ff845e45f4081bb06943039ae28a3c1c7c780f22/numpy-2.2.4-cp312-cp312-win32.whl (6.3 MB)
Collecting pandas>=1.1.0 (from tqsdk)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9c/d6/9f8431bacc2e19dca897724cd097b1bb224a6ad5433784a44b587c7c13af/pandas-2.2.3.tar.gz (4.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
  ╰─> [12 lines of output]
      + meson setup C:\Users\Administrator\AppData\Local\Temp\pip-install-k8sbpj43\pandas_6b28950f70034f13a8a826098a28a835 C:\Users\Administrator\AppData\Local\Temp\pip-install-k8sbpj43\pandas_6b28950f70034f13a8a826098a28a835\.mesonpy-8_ou797l\build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\Administrator\AppData\Local\Temp\pip-install-k8sbpj43\pandas_6b28950f70034f13a8a826098a28a835\.mesonpy-8_ou797l\build\meson-python-native-file.ini
      The Meson build system
      Version: 1.2.1
      Source dir: C:\Users\Administrator\AppData\Local\Temp\pip-install-k8sbpj43\pandas_6b28950f70034f13a8a826098a28a835
      Build dir: C:\Users\Administrator\AppData\Local\Temp\pip-install-k8sbpj43\pandas_6b28950f70034f13a8a826098a28a835\.mesonpy-8_ou797l\build
      Build type: native build
      Project name: pandas
      Project version: 2.2.3
       ..\..\meson.build:2:0: ERROR: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
       A full log can be found at C:\Users\Administrator\AppData\Local\Temp\pip-install-k8sbpj43\pandas_6b28950f70034f13a8a826098a28a835\.mesonpy-8_ou797l\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>

chaos 已回答的问题 2025年4月14日
0

可能是pandas库和python版本不兼容,试试更新一下python版本

chaos 发表新评论 2025年4月14日

欢迎加入官方群聊611806823一起讨论,也可以试试首页右边小助手答疑~