尽管 pip、setuptools 是最新的,但在 Windows 上安装 Soundcloud 时出现问题

问题描述 投票:0回答:1

我正在一台 Windows 计算机上工作,我想在其中安装 soundcloud 库。

我当前的设置:

C:\Users\gmeun\Desktop\ProjetsPython\soundcloud>pip list
Package    Version
---------- -------
ez-setup   0.9
pip        23.2.1
setuptools 68.0.0
wheel      0.41.0

我的Python版本:

C:\Users\gmeun\Desktop\ProjetsPython\soundcloud>python
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32

当我尝试安装 soundcloud 软件包时,我得到:

C:\Users\gmeun\Desktop\ProjetsPython\soundcloud>pip install soundcloud
Collecting soundcloud
  Using cached soundcloud-0.5.0.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
Collecting fudge>=1.0.3 (from soundcloud)
  Using cached fudge-1.1.1.tar.gz (87 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in fudge setup command: use_2to3 is invalid.
      [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.

python setup.py egg_info did not run successfully
似乎是由于未安装潜在过时的pip或setuptools或ez-setup;所以我尝试更新所有内容,但我已经指向可用的最新版本...

由于 Fudge 似乎也被使用,我尝试 pip install fudge 并得到了相同的

python setup.py egg_info did not run successfully
错误...

C:\Users\gmeun\Desktop\ProjetsPython\soundcloud>pip install --upgrade pip setuptools
Requirement already satisfied: pip in c:\users\gmeun\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (23.2.1)
Requirement already satisfied: setuptools in c:\users\gmeun\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (68.0.0)

当我尝试升级软糖时:

C:\Users\gmeun\Desktop\ProjetsPython\soundcloud>pip install --upgrade fudge
Collecting fudge
  Using cached fudge-1.1.1.tar.gz (87 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in fudge setup command: use_2to3 is invalid.
      [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.

我的设置有什么问题吗?仅供参考,我没有使用任何虚拟机或虚拟环境

python soundcloud
1个回答
0
投票

您的 python 版本和 soundcloud 软件包似乎存在一些兼容性问题。 尝试升级 pip、setuptools 和 fudge,然后再次安装 souncloud

pip install --upgrade pip setuptools
pip install --upgrade fudge
pip install soundcloud

希望有帮助

© www.soinside.com 2019 - 2024. All rights reserved.