Python包安装问题:由于生成轮子时出错,无法安装“pickle5”,解决方案?

hts6caw3  于 2023-06-04  发布在  Python
关注(0)|答案(1)|浏览(1202)

我有我的软件包的问题,因为每次我想安装一些软件包,然后有时这个错误是显示出任何想法如何修复它?
我想安装pickle5(因为pickle不存在),每次我想安装它,然后错误显示
错误:

Building wheels for collected packages: pickle5
  Building wheel for pickle5 (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pickle5 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\pickle5
      copying pickle5\pickle.py -> build\lib.win-amd64-cpython-311\pickle5
      copying pickle5\pickletools.py -> build\lib.win-amd64-cpython-311\pickle5
      copying pickle5\__init__.py -> build\lib.win-amd64-cpython-311\pickle5
      creating build\lib.win-amd64-cpython-311\pickle5\test
      copying pickle5\test\pickletester.py -> build\lib.win-amd64-cpython-311\pickle5\test
      copying pickle5\test\test_pickle.py -> build\lib.win-amd64-cpython-311\pickle5\test
      copying pickle5\test\test_picklebuffer.py -> build\lib.win-amd64-cpython-311\pickle5\test
      copying pickle5\test\__init__.py -> build\lib.win-amd64-cpython-311\pickle5\test
      running build_ext
      building 'pickle5._pickle' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pickle5
Failed to build pickle5
ERROR: Could not build wheels for pickle5, which is required to install pyproject.toml-based projects
qq24tv8q

qq24tv8q1#

它说你需要安装Microsoft Visual C++ 14.0或更高版本才能构建pickle5包。
访问Microsoft C++ Build Tools页面并下载最新版本的安装程序。

相关问题