求大神指导,在安装python-office出现错误

本人0基础小白,求大神指点,感恩!

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple python-office
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting python-office
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b5/35/525136f2df10b088cc703d396a6db0bf36352ef0a1966b3449e1f06b83b0/python_office-0.4.21-py3-none-any.wh
l (73 kB)
Collecting rich>=9.13.0 (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/be/be/1520178fa01eabe014b16e72a952b9f900631142ccd03dc36cf93e30c1ce/rich-13.7.0-py3-none-any.whl (240 kB
)
Collecting you-get (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f8/a2/572024d7f6291e780a8ef36b82351e6defa2cbcc5d599d6d1eedd5803191/you_get-0.4.1650-py3-none-any.whl (2
31 kB)
Collecting poimage (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c4/cc/2cece15adb10eb5742a17a73836ae53ceccdf963434faf0348957a6c4fe3/poimage-0.0.21-py3-none-any.whl (34 
kB)
Collecting poexcel (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c0/3b/034b0d58b48979a617377ff09264c279a0c9672f894f156a1b36bebdd3ec/poexcel-0.0.18-py3-none-any.whl (14 
kB)
Collecting pofile (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4e/f8/5898943ca88dd1d56c8f305500611bba0edc922520e607c8b539ab912521/pofile-0.1.1-py3-none-any.whl (13 kB
)
Collecting popdf (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/77/d2/fe29ae28c05f66dac4b4338bf0c286d2cfc358c011d29d6d47d23adefaa8/popdf-0.1.1-py3-none-any.whl (12 kB)
Collecting wftools (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f0/d6/07a93cdcf39019ec9f7841cd6e78638b36272d934497e5c54e259c297b3a/wftools-0.0.9-py3-none-any.whl (39 k
B)
Collecting povideo (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/61/9f/e0f5d491dd4ec17ff5f250fa3b664dd60ce89a38d6dee2fa585aa0517c39/povideo-0.0.7-py3-none-any.whl (10 k
B)
Collecting poprogress (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3f/1b/f92d53ff6aeafb771877af116f2667b922ca63f3418dc52d05bc55dd2c83/poprogress-0.0.2-py3-none-any.whl (5
.7 kB)
Collecting poocr (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/09/66/4ec1ed261c5c3b2e5d0466324fe4cfb1c4151cad3c300f98c9c9fc8f8fb1/poocr-0.1.4-py3-none-any.whl (13 kB)
Collecting poppt (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/36/0d/846b4c3c2d32ceae83cb0658936a69d6e927440d562ffd339cd19c2fadc9/poppt-0.1.1-py3-none-any.whl (9.3 kB
)
Collecting poword (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/0e/aa/bb1ba88b29ecab0b65138339fa0be40c24a720e2b41fb54de0d718180d54/poword-0.0.16-py3-none-any.whl (7.5 
kB)
Collecting search4file (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/de/3d/b59d5642004903817bbdc6ade7786c706f7c9106654171969fe6a05cc216/search4file-0.1.15-py3-none-any.whl 
(16 kB)
Collecting PyOfficeRobot (from python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1d/1d/90f2b67c8c54dedae8b4832855de13e8808eba941d6efdb6285bf9e72ad0/PyOfficeRobot-0.1.18-py3-none-any.wh
l (24 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=9.13.0->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.wh
l (87 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=9.13.0->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/97/9c/372fef8377a6e340b1704768d20daaded98bf13282b5327beb2e2fe2c7ef/pygments-2.17.2-py3-none-any.whl (1.
2 MB)
Collecting pandas (from poexcel->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/df/92/a3fa053c74198f9f0224b2c04dc74f41d2e14e30329c082f7a657f9ca4c5/pandas-2.1.3-cp312-cp312-win_amd64.w
hl (10.5 MB)
Collecting faker (from poexcel->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/cc/9a/74db0cf3115df2f71edcaf8d86ed556195ac31575212c20425820f81bfd0/Faker-20.1.0-py3-none-any.whl (1.7 M
B)
Collecting tqdm (from poexcel->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/00/e5/f12a80907d0884e6dff9c16d0c0114d81b8cd07dc3ae54c5e962cc83037e/tqdm-4.66.1-py3-none-any.whl (78 kB)
Collecting xlrd (from poexcel->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a6/0c/c2a72d51fe56e08a08acc85d13013558a2d793028ae7385448a6ccdfae64/xlrd-2.0.1-py2.py3-none-any.whl (96 
kB)
Collecting xlwt (from poexcel->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/44/48/def306413b25c3d01753603b1a222a011b8621aed27cd7f89cbc27e6b0f4/xlwt-1.3.0-py2.py3-none-any.whl (99 
kB)
Collecting xlwings (from poexcel->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c5/24/15eb0c0a3eed5b7d52c26854eccb9ba5d80e81ff96ad148a9339597ae3d9/xlwings-0.30.12.tar.gz (1.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting requests (from poexcel->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl (62
 kB)
Collecting openpyxl (from pofile->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6a/94/a59521de836ef0da54aaf50da6c4da8fb4072fb3053fa71f052fd9399e7a/openpyxl-3.1.2-py2.py3-none-any.whl 
(249 kB)
Collecting pillow (from poimage->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/32/e4/978865107d097dd9cb650331676d8dc29ed9fcd0aaab46486e9d6e5123f0/Pillow-10.1.0-cp312-cp312-win_amd64.
whl (2.6 MB)
Collecting alive-progress (from poimage->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d5/81/91e164705bdf4e2774cea59f566a41ab25f3c87affd716516fc8b03a4039/alive_progress-3.1.5-py3-none-any.wh
l (75 kB)
Collecting wordcloud (from poimage->python-office)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fe/f9/35e6f31e57c2f51351625045c9d1ad2fc33fe79cac21973f8985c7dbcbb9/wordcloud-1.9.2.tar.gz (222 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      Traceback (most recent call last):
        File "D:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "D:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel    
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-c7iyv6w1\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_
wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-c7iyv6w1\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires    
          self.run_setup()
        File "C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-c7iyv6w1\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-c7iyv6w1\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 13, in <module>
        File "C:\Users\Lenovo\AppData\Local\Temp\pip-install-nbbws11g\wordcloud_5c618fd434a7410888bb0af1cbb09a80\versioneer.py", line 1480, in get_version       
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "C:\Users\Lenovo\AppData\Local\Temp\pip-install-nbbws11g\wordcloud_5c618fd434a7410888bb0af1cbb09a80\versioneer.py", line 1412, in get_versions      
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Lenovo\AppData\Local\Temp\pip-install-nbbws11g\wordcloud_5c618fd434a7410888bb0af1cbb09a80\versioneer.py", line 342, in get_config_from_roo
t
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [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.
 

  • 9
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值