请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

安装pyenv出错

我用pip install pyenv 执行命令,结果出现下面的错误
Collecting pyenv
Downloading pyenv-0.0.1.tar.gz (1.4 kB)
Preparing metadata (setup.py) … done
Building wheels for collected packages: pyenv
Building wheel for pyenv (setup.py) … error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
running bdist_wheel
running build
D:\Anaconda3\Lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

          ********************************************************************************
          Please avoid running ``setup.py`` directly.
          Instead, use pypa/build, pypa/installer or other
          standards-based tools.

          See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
          ********************************************************************************

  !!
    self.initialize_options()
  installing to build\bdist.win-amd64\wheel
  running install
  ############################ NOTE ############################
  We are sorry, but this package is not installable with pip.

  Please read the installation instructions at:

  https://github.com/pyenv/pyenv#installation
  ##############################################################

  [end of output]

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

正在回答 回答被采纳积分+3

1回答

tomiezhang 2024-04-05 11:16:03

windows安装环境问题,试一下官方的安装器:https://github.com/pyenv/pyenv-installer/blob/master/bin/pyenv-installer

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信