Skip to content

构建时,安装依赖报错 #7

Description

@lzj242

使用2.8.3版本。
感觉安装了很多不是该项目的包以及其他的“垃圾”包
=== QPyPack Build Diagnostics ===
QPyPack Ver : 2.8.3
OS Platform : Windows 10 (AMD64)
Host Python : 3.10.11 (64-bit) - F:\单工具\python打包\QPyPack_Portable\QPyPack_Portable.exe
Target Py : D:/Desktop/DutyDisplay/.venv/Scripts/python.exe
Build Engine: Nuitka (OneFile: True, NoConsole: True, LiteMode: False)
Workspace : D:/Desktop/DutyDisplay

[INFO] 分析源码与依赖...
[INFO] 执行预构建环境检查...
[WARN] 项目位于云同步目录,可能锁定构建文件。
[INFO] 初始化构建环境...
[INFO] Python 路径: D:/Desktop/DutyDisplay/.venv/Scripts/python.exe
[INFO] 创建隔离虚拟环境 (.qpypack_venv_mainv6_671ceb_py3.8.10_x86)...
[INFO] 更新 pip...
[INFO] 使用原生 AST 引擎扫描依赖...
[INFO] 解析项目依赖...
依赖声明 (4): customtkinter, openpyxl, pyinstaller, xlrd
扫描发现 (49): --builtin--, --main--, --pypy--, -abcoll, -manylinux, -typeshed, -winreg, android, attrs, backports, colorama, com, cryptography, ctags, cython, dl, docutils, dummy-thread, filelock, google, htmlentitydefs, htmlparser, httplib, ipython, ipywidgets, java, jnius, keyring, ntlm, numpy, openpyxl, ordereddict, org, pillow, pip, pyopenssl, pywin32, redis, setuptools, socks, sphinx, stringio, thread, urllib2, urllib3-secure-extra, urlparse, wincertstore, xlrd, xmlrpclib
自动补齐 (47): --builtin--, --main--, --pypy--, -abcoll, -manylinux, -typeshed, -winreg, android, attrs, backports, colorama, com, cryptography, ctags, cython, dl, docutils, dummy-thread, filelock, google, htmlentitydefs, htmlparser, httplib, ipython, ipywidgets, java, jnius, keyring, ntlm, numpy, ordereddict, org, pillow, pip, pyopenssl, pywin32, redis, setuptools, socks, sphinx, stringio, thread, urllib2, urllib3-secure-extra, urlparse, wincertstore, xmlrpclib
引擎依赖 (2): nuitka==4.1.3, zstandard
[INFO] 安装依赖 (53): --builtin--, --main--, --pypy--, -abcoll, -manylinux, -typeshed, -winreg, android, attrs, backports, colorama, com, cryptography, ctags, customtkinter==5.2.2, cython, dl, docutils, dummy-thread, filelock, google, htmlentitydefs, htmlparser, httplib, ipython, ipywidgets, java, jnius, keyring, ntlm, nuitka==4.1.3, numpy, openpyxl==3.1.2, ordereddict, org, pillow, pip, pyinstaller==5.13.2, pyopenssl, pywin32, redis, setuptools, socks, sphinx, stringio, thread, urllib2, urllib3-secure-extra, urlparse, wincertstore, xlrd==1.2.0, xmlrpclib, zstandard
Usage: main.py [options]

ERROR: Invalid requirement: --main--
main.py: error: no such option: --main--

[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
Usage: main.py [options]

ERROR: Invalid requirement: --main--
main.py: error: no such option: --main--

[WARN] 指定版本安装失败,尝试自动匹配兼容版本...
ERROR: Could not find a version that satisfies the requirement urlparse (from versions: none)
ERROR: No matching distribution found for urlparse
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement urlparse (from versions: none)
ERROR: No matching distribution found for urlparse
[WARN] 包 'urlparse' 安装失败,已跳过...
ERROR: Could not find a version that satisfies the requirement org (from versions: none)
ERROR: No matching distribution found for org
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement org (from versions: none)
ERROR: No matching distribution found for org
[WARN] 包 'org' 安装失败,已跳过...
ERROR: Could not find a version that satisfies the requirement ntlm (from versions: none)
ERROR: No matching distribution found for ntlm
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement ntlm (from versions: none)
ERROR: No matching distribution found for ntlm
[WARN] 包 'ntlm' 安装失败,已跳过...
ERROR: Could not find a version that satisfies the requirement backports (from versions: none)
ERROR: No matching distribution found for backports
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement backports (from versions: none)
ERROR: No matching distribution found for backports
[WARN] 包 'backports' 安装失败,已跳过...

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: --main--
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: --main--
[WARN] 包 '--main--' 安装失败,已跳过...

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: -m
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: -m
[WARN] 包 '-manylinux' 安装失败,已跳过...
ERROR: Could not find a version that satisfies the requirement htmlentitydefs (from versions: none)
ERROR: No matching distribution found for htmlentitydefs
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement htmlentitydefs (from versions: none)
ERROR: No matching distribution found for htmlentitydefs
[WARN] 包 'htmlentitydefs' 安装失败,已跳过...
ERROR: Could not find a version that satisfies the requirement xmlrpclib (from versions: none)
ERROR: No matching distribution found for xmlrpclib
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement xmlrpclib (from versions: none)
ERROR: No matching distribution found for xmlrpclib
[WARN] 包 'xmlrpclib' 安装失败,已跳过...
ERROR: Could not find a version that satisfies the requirement com (from versions: none)
ERROR: No matching distribution found for com
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement com (from versions: none)
ERROR: No matching distribution found for com
[WARN] 包 'com' 安装失败,已跳过...
ERROR: Could not find a version that satisfies the requirement java (from versions: none)
ERROR: No matching distribution found for java
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement java (from versions: none)
ERROR: No matching distribution found for java
[WARN] 包 'java' 安装失败,已跳过...

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: --builtin--
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: --builtin--
[WARN] 包 '--builtin--' 安装失败,已跳过...

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: -a
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: -a
[WARN] 包 '-abcoll' 安装失败,已跳过...
ERROR: Could not find a version that satisfies the requirement urllib2 (from versions: none)
ERROR: No matching distribution found for urllib2
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement urllib2 (from versions: none)
ERROR: No matching distribution found for urllib2
[WARN] 包 'urllib2' 安装失败,已跳过...

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: --pypy--
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: --pypy--
[WARN] 包 '--pypy--' 安装失败,已跳过...
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [22 lines of output]

  You need Cython to compile Pyjnius.
  
  
  Traceback (most recent call last):
    File "D:\Desktop\DutyDisplay\.qpypack_venv_mainv6_671ceb_py3.8.10_x86\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
      main()
    File "D:\Desktop\DutyDisplay\.qpypack_venv_mainv6_671ceb_py3.8.10_x86\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:\Desktop\DutyDisplay\.qpypack_venv_mainv6_671ceb_py3.8.10_x86\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
      return hook(config_settings)
    File "C:\Users\XuanMo\AppData\Local\Temp\pip-build-env-dbkxbscg\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
    File "C:\Users\XuanMo\AppData\Local\Temp\pip-build-env-dbkxbscg\overlay\Lib\site-packages\setuptools\build_meta.py", line 303, in _get_build_requires
      self.run_setup()
    File "C:\Users\XuanMo\AppData\Local\Temp\pip-build-env-dbkxbscg\overlay\Lib\site-packages\setuptools\build_meta.py", line 521, in run_setup
      super().run_setup(setup_script=setup_script)
    File "C:\Users\XuanMo\AppData\Local\Temp\pip-build-env-dbkxbscg\overlay\Lib\site-packages\setuptools\build_meta.py", line 319, in run_setup
      exec(code, locals())
    File "<string>", line 53, in <module>
  ModuleNotFoundError: No module named 'Cython'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel 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.
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [22 lines of output]

  You need Cython to compile Pyjnius.
  
  
  Traceback (most recent call last):
    File "D:\Desktop\DutyDisplay\.qpypack_venv_mainv6_671ceb_py3.8.10_x86\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
      main()
    File "D:\Desktop\DutyDisplay\.qpypack_venv_mainv6_671ceb_py3.8.10_x86\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:\Desktop\DutyDisplay\.qpypack_venv_mainv6_671ceb_py3.8.10_x86\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
      return hook(config_settings)
    File "C:\Users\XuanMo\AppData\Local\Temp\pip-build-env-t52b4c84\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
    File "C:\Users\XuanMo\AppData\Local\Temp\pip-build-env-t52b4c84\overlay\Lib\site-packages\setuptools\build_meta.py", line 303, in _get_build_requires
      self.run_setup()
    File "C:\Users\XuanMo\AppData\Local\Temp\pip-build-env-t52b4c84\overlay\Lib\site-packages\setuptools\build_meta.py", line 521, in run_setup
      super().run_setup(setup_script=setup_script)
    File "C:\Users\XuanMo\AppData\Local\Temp\pip-build-env-t52b4c84\overlay\Lib\site-packages\setuptools\build_meta.py", line 319, in run_setup
      exec(code, locals())
    File "<string>", line 53, in <module>
  ModuleNotFoundError: No module named 'Cython'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel 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.
[WARN] 包 'jnius' 安装失败,已跳过...

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: -w
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/

Usage:
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] -r [package-index-options] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] [-e] ...
D:\Desktop\DutyDisplay.qpypack_venv_mainv6_671ceb_py3.8.10_x86\Scripts\python.exe -m pip install [options] <archive url/path> ...

no such option: -w
[WARN] 包 '-winreg' 安装失败,已跳过...
ERROR: Could not find a version that satisfies the requirement android (from versions: none)
ERROR: No matching distribution found for android
[INFO] 切换备用 PyPI 源: https://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement android (from versions: none)
ERROR: No matching distribution found for android
[WARN] 包 'android' 安装失败,已跳过...
WARNING: Package 'wincertstore' has an invalid Requires-Python: Invalid specifier: '<3.4.*'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions