Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[功能异常] rookiepy安装失败 #233

Open
a1004201125 opened this issue Mar 17, 2025 · 2 comments
Open

[功能异常] rookiepy安装失败 #233

a1004201125 opened this issue Mar 17, 2025 · 2 comments
Assignees

Comments

@a1004201125
Copy link

PS E:\DATA\Project\XHS-Downloader-master> pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting textual>=1.0.0 (from -r requirements.txt (line 1))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/07/81/9df1988c908cbba77f10fecb8587496b3dff2838d4510457877a521d87fd/textual-2.1.2-py3-none-any.whl (680 kB)
Collecting pyperclip>=1.9.0 (from -r requirements.txt (line 2))
Using cached pyperclip-1.9.0-py3-none-any.whl
Collecting lxml>=5.3.0 (from -r requirements.txt (line 3))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/80/83/8c54533b3576f4391eebea88454738978669a6cad0d8e23266224007939d/lxml-5.3.1-cp313-cp313-win_amd64.whl (3.8 MB)
Collecting PyYAML>=6.0.2 (from -r requirements.txt (line 4))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl (156 kB)
Collecting aiosqlite>=0.20.0 (from -r requirements.txt (line 5))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f5/10/6c25ed6de94c49f88a91fa5018cb4c0f3625f31d5be9f771ebe5cc7cd506/aiosqlite-0.21.0-py3-none-any.whl (15 kB)
Requirement already satisfied: click>=8.1.7 in c:\program files\python\python313\lib\site-packages (from -r requirements.txt (line 6)) (8.1.8)
Collecting rookiepy>=0.5.6 (from -r requirements.txt (line 7))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/52/b7/b75e3bb8cdd0210a0ffb106002b678170c9a3a50ae1dc1c9bc1f701b4452/rookiepy-0.5.6.tar.gz (45 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting httpx>=0.28.0 (from httpx[socks]>=0.28.0->-r requirements.txt (line 8))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl (73 kB)
Collecting fastapi>=0.112.1 (from -r requirements.txt (line 9))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b3/5d/4d8bbb94f0dbc22732350c06965e40740f4a92ca560e90bb566f4f73af41/fastapi-0.115.11-py3-none-any.whl (94 kB)
Collecting uvicorn>=0.30.6 (from -r requirements.txt (line 10))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/61/14/33a3a1352cfa71812a3a21e8c9bfb83f60b0011f5e36f2b1399d51928209/uvicorn-0.34.0-py3-none-any.whl (62 kB)
Collecting aiofiles>=24.1.0 (from -r requirements.txt (line 11))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a5/45/30bb92d442636f570cb5651bc661f52b610e2eec3f891a5dc3a4c3667db0/aiofiles-24.1.0-py3-none-any.whl (15 kB)
Collecting emoji>=2.14.0 (from -r requirements.txt (line 12))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/91/db/a0335710caaa6d0aebdaa65ad4df789c15d89b7babd9a30277838a7d9aac/emoji-2.14.1-py3-none-any.whl (590 kB)
Requirement already satisfied: markdown-it-py>=2.1.0 in c:\program files\python\python313\lib\site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual>=1.0.0->-r requirements.txt (line 1)) (3.0.0)
Requirement already satisfied: platformdirs<5,>=3.6.0 in c:\program files\python\python313\lib\site-packages (from textual>=1.0.0->-r requirements.txt (line 1)) (4.3.6)
Requirement already satisfied: rich>=13.3.3 in c:\program files\python\python313\lib\site-packages (from textual>=1.0.0->-r requirements.txt (line 1)) (13.7.0)
Requirement already satisfied: typing-extensions<5.0.0,>=4.4.0 in c:\program files\python\python313\lib\site-packages (from textual>=1.0.0->-r requirements.txt (line 1)) (4.12.2)
Requirement already satisfied: colorama in c:\program files\python\python313\lib\site-packages (from click>=8.1.7->-r requirements.txt (line 6)) (0.4.6)
Collecting anyio (from httpx>=0.28.0->httpx[socks]>=0.28.0->-r requirements.txt (line 8))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a1/ee/48ca1a7c89ffec8b6a0c5d02b89c305671d5ffd8d3c94acf8b8c408575bb/anyio-4.9.0-py3-none-any.whl (100 kB)
Requirement already satisfied: certifi in c:\program files\python\python313\lib\site-packages (from httpx>=0.28.0->httpx[socks]>=0.28.0->-r requirements.txt (line 8)) (2024.12.14)
Collecting httpcore==1.* (from httpx>=0.28.0->httpx[socks]>=0.28.0->-r requirements.txt (line 8))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/87/f5/72347bc88306acb359581ac4d52f23c0ef445b57157adedb9aee0cd689d2/httpcore-1.0.7-py3-none-any.whl (78 kB)
Requirement already satisfied: idna in c:\program files\python\python313\lib\site-packages (from httpx>=0.28.0->httpx[socks]>=0.28.0->-r requirements.txt (line 8)) (3.10)
Requirement already satisfied: h11<0.15,>=0.13 in c:\program files\python\python313\lib\site-packages (from httpcore==1.->httpx>=0.28.0->httpx[socks]>=0.28.0->-r requirements.txt (line 8)) (0.14.0)
Collecting starlette<0.47.0,>=0.40.0 (from fastapi>=0.112.1->-r requirements.txt (line 9))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a0/4b/528ccf7a982216885a1ff4908e886b8fb5f19862d1962f56a3fce2435a70/starlette-0.46.1-py3-none-any.whl (71 kB)
Collecting pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 (from fastapi>=0.112.1->-r requirements.txt (line 9))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f4/3c/8cc1cc84deffa6e25d2d0c688ebb80635dfdbf1dbea3e30c541c8cf4d860/pydantic-2.10.6-py3-none-any.whl (431 kB)
Collecting socksio==1.
(from httpx[socks]>=0.28.0->-r requirements.txt (line 8))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/37/c3/6eeb6034408dac0fa653d126c9204ade96b819c936e136c5e8a6897eee9c/socksio-1.0.0-py3-none-any.whl (12 kB)
Requirement already satisfied: mdurl~=0.1 in c:\program files\python\python313\lib\site-packages (from markdown-it-py>=2.1.0->markdown-it-py[linkify,plugins]>=2.1.0->textual>=1.0.0->-r requirements.txt (line 1)) (0.1.2)
Collecting linkify-it-py<3,>=1 (from markdown-it-py[linkify,plugins]>=2.1.0->textual>=1.0.0->-r requirements.txt (line 1))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/04/1e/b832de447dee8b582cac175871d2f6c3d5077cc56d5575cadba1fd1cccfa/linkify_it_py-2.0.3-py3-none-any.whl (19 kB)
Collecting mdit-py-plugins (from markdown-it-py[linkify,plugins]>=2.1.0->textual>=1.0.0->-r requirements.txt (line 1))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a7/f7/7782a043553ee469c1ff49cfa1cdace2d6bf99a1f333cf38676b3ddf30da/mdit_py_plugins-0.4.2-py3-none-any.whl (55 kB)
Collecting annotated-types>=0.6.0 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi>=0.112.1->-r requirements.txt (line 9))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl (13 kB)
Collecting pydantic-core==2.27.2 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi>=0.112.1->-r requirements.txt (line 9))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/71/47/82b5e846e01b26ac6f1893d3c5f9f3a2eb6ba79be26eef0b759b4fe72946/pydantic_core-2.27.2-cp313-cp313-win_amd64.whl (2.0 MB)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\program files\python\python313\lib\site-packages (from rich>=13.3.3->textual>=1.0.0->-r requirements.txt (line 1)) (2.19.1)
Requirement already satisfied: sniffio>=1.1 in c:\program files\python\python313\lib\site-packages (from anyio->httpx>=0.28.0->httpx[socks]>=0.28.0->-r requirements.txt (line 8)) (1.3.1)
Collecting uc-micro-py (from linkify-it-py<3,>=1->markdown-it-py[linkify,plugins]>=2.1.0->textual>=1.0.0->-r requirements.txt (line 1))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/37/87/1f677586e8ac487e29672e4b17455758fce261de06a0d086167bb760361a/uc_micro_py-1.0.3-py3-none-any.whl (6.2 kB)
Building wheels for collected packages: rookiepy
Building wheel for rookiepy (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for rookiepy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [46 lines of output]
Running maturin pep517 build-wheel -i C:\Program Files\Python\Python313\python.exe --compatibility off
鈿狅笍 Warning: project.version field is required in pyproject.toml unless it is present in the project.dynamic list
馃嵐 Building a mixed python/rust project
馃敆 Found pyo3 bindings
馃悕 Found CPython 3.13 at C:\Program Files\Python\Python313\python.exe
馃摗 Using build options features from pyproject.toml
warning: C:\Users\Administrator\AppData\Local\Temp\pip-install-ot_qx_9p\rookiepy_e088041e5f5f4b92976c21ab01b89625\rookie-rs\Cargo.toml: unused manifest key: example.0.include
Compiling proc-macro2 v1.0.89
Compiling unicode-ident v1.0.13
Compiling windows_x86_64_msvc v0.52.6
Compiling cfg-if v1.0.0
Compiling version_check v0.9.5
Compiling once_cell v1.20.2
Compiling typenum v1.17.0
Compiling target-lexicon v0.12.16
Compiling byteorder v1.5.0
Compiling autocfg v1.4.0
Compiling shlex v1.3.0
Compiling jobserver v0.1.32
Compiling heck v0.4.1
Compiling crunchy v0.2.2
Compiling syn v1.0.109
Compiling getrandom v0.2.15
Compiling libc v0.2.161
error: linker link.exe not found
|
= note: program not found

  note: the msvc targets depend on the msvc linker but `link.exe` was not found

  note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.

  note: VS Code is a different product, and is not sufficient.

  error: could not compile `windows_x86_64_msvc` (build script) due to 1 previous error
  warning: build failed, waiting for other jobs to finish...
  error: could not compile `proc-macro2` (build script) due to 1 previous error
  error: could not compile `typenum` (build script) due to 1 previous error
  error: could not compile `crunchy` (build script) due to 1 previous error
  error: could not compile `syn` (build script) due to 1 previous error
  error: could not compile `target-lexicon` (build script) due to 1 previous error
  error: could not compile `libc` (build script) due to 1 previous error
  馃挜 maturin failed
    Caused by: Failed to build a native library through cargo
    Caused by: Cargo build finished with "exit code: 101": `"cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-ot_qx_9p\\rookiepy_e088041e5f5f4b92976c21ab01b89625\\bindings\\python\\Cargo.toml" "--release" "--lib"`
  Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'C:\\Program Files\\Python\\Python313\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for rookiepy
Failed to build rookiepy
ERROR: Failed to build installable wheels for some pyproject.toml based projects (rookiepy)

@SinMu-L
Copy link

SinMu-L commented Mar 19, 2025

我windows上安装没有问题,我用的是虚拟环境,你试试虚拟环境呢?

@a1004201125
Copy link
Author

a1004201125 commented Mar 20, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants