gpt4 book ai didi

python - 为什么我无法安装 pyenv?

转载 作者:太空宇宙 更新时间:2023-11-03 14:45:10 26 4
gpt4 key购买 nike

问题:

我在 Windows 10 计算机上使用 python 2.7。

当我运行时

pip install pyenv

我收到如下所示的错误。

这是我遇到的唯一一个无法成功安装的 pip 模块。我不知道为什么会发生这种情况。有什么想法吗?

错误消息:

pip install pyenv
Collecting pyenv
Downloading pyenv-20150113.1.tar.gz
Building wheels for collected packages: pyenv
Running setup.py bdist_wheel for pyenv: started

Running setup.py bdist_wheel for pyenv: finished with status 'error'
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\u sers\\user\\appdata\\local\\temp\\pip-build-_6j2tq\\pyenv\\setup.py';f=getattr(tokenize, 'open', open )(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_w heel -d c:\users\user\appdata\local\temp\tmprb9n7epip-wheel- --python-tag cp27:
running bdist_wheel
running build
installing to build\bdist.win32\wheel
running install
Cloning into 'C:/Users/user/.pyenv'...
Cloning into 'C:/Users/user/.pyenv/plugins/pyenv-doctor'...
Cloning into 'C:/Users/user/.pyenv/plugins/pyenv-installer'...
Cloning into 'C:/Users/user/.pyenv/plugins/pyenv-pip-rehash'...
Cloning into 'C:/Users/user/.pyenv/plugins/pyenv-update'...
Cloning into 'C:/Users/user/.pyenv/plugins/pyenv-virtualenv'...
Cloning into 'C:/Users/user/.pyenv/plugins/pyenv-which-ext'...

WARNING: seems you still have not added 'pyenv' to the load path.

# Load pyenv automatically by adding
# the following to your profile:

export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\user\appdata\local\temp\pip-build-_6j2tq\pyenv\setup.py", line 33, in <module>
cmdclass=dict(install=PyenvInstall),
File "c:\python27\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "c:\python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "c:\python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\wheel\bdist_wheel.py", line 257, in run
self.distinfo_dir)
File "c:\python27\lib\site-packages\wheel\bdist_wheel.py", line 393, in egg2dist
raise ValueError(err)
ValueError: Egg metadata expected at build\bdist.win32\wheel\.\pyenv-20150113.1-py2.7.egg-info but not found

----------------------------------------
Failed building wheel for pyenv
Running setup.py clean for pyenv
Failed to build pyenv
Installing collected packages: pyenv
Running setup.py install for pyenv: started
Running setup.py install for pyenv: finished with status 'error'
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\ \users\\user\\appdata\\local\\temp\\pip-build-_6j2tq\\pyenv\\setup.py';f=getattr(tokenize, 'open', op en)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" insta ll --record c:\users\user\appdata\local\temp\pip-wjwco5-record\install-record.txt --single-version-ex ternally-managed --compile:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: option --single-version-externally-managed not recognized

----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\user\\appdata \\local\\temp\\pip-build-_6j2tq\\pyenv\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.rea d().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\mse dmon\appdata\local\temp\pip-wjwco5-record\install-record.txt --single-version-externally-managed --compi le" failed with error code 1 in c:\users\user\appdata\local\temp\pip-build-_6j2tq\pyenv\

最佳答案

“pypi”page of pyvenv提及:

The PyPi support is not tested by many users yet, so the direct way ist still recommended if you want to play it safe.

该软件包的作者建议使用他们的专用 installation script .

关于python - 为什么我无法安装 pyenv?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46280205/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com