为什么python安装不了_为什么我不能安装pyenv?

这篇博客讲述了在尝试使用pip install pyenv时遇到的错误,主要问题在于构建wheel阶段的Eggmetadata缺失。文章详细记录了安装过程和错误输出,并提供了可能的解决方法,适合对Python环境管理器pyenv配置感兴趣的读者。
摘要由CSDN通过智能技术生成

pip install pyenvCollectingpyenvDownloadingpyenv-20150113.1.tar.gzBuildingwheelsforcollected packages:pyenvRunningsetup.py bdist_wheelforpyenv:startedRunningsetup.py bdist_wheelforpyenv:finishedwithstatus'error'Completeoutputfromcommand 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 installCloninginto'C:/Users/user/.pyenv'...Cloninginto'C:/Users/user/.pyenv/plugins/pyenv-doctor'...Cloninginto'C:/Users/user/.pyenv/plugins/pyenv-installer'...Cloninginto'C:/Users/user/.pyenv/plugins/pyenv-pip-rehash'...Cloninginto'C:/Users/user/.pyenv/plugins/pyenv-update'...Cloninginto'C:/Users/user/.pyenv/plugins/pyenv-virtualenv'...Cloninginto'C:/Users/user/.pyenv/plugins/pyenv-which-ext'...WARNING:seems you still havenotadded'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"",line1,inFile"c:\users\user\appdata\local\temp\pip-build-_6j2tq\pyenv\setup.py",line33,incmdclass=dict(install=PyenvInstall),File"c:\python27\lib\distutils\core.py",line151,insetup

dist.run_commands()File"c:\python27\lib\distutils\dist.py",line953,inrun_commands

self.run_command(cmd)File"c:\python27\lib\distutils\dist.py",line972,inrun_command

cmd_obj.run()File"c:\python27\lib\site-packages\wheel\bdist_wheel.py",line257,inrun

self.distinfo_dir)File"c:\python27\lib\site-packages\wheel\bdist_wheel.py",line393,inegg2distraiseValueError(err)ValueError:Eggmetadata expected at build\bdist.win32\wheel\.\pyenv-20150113.1-py2.7.egg-info butnotfound----------------------------------------Failedbuilding wheelforpyenvRunningsetup.py cleanforpyenvFailedto build pyenvInstallingcollected packages:pyenvRunningsetup.py installforpyenv:startedRunningsetup.py installforpyenv:finishedwithstatus'error'Completeoutputfromcommand 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-commandsor:-c cmd--help

error:option--single-version-externally-managednotrecognized----------------------------------------Command"c:\python27\python.exe -u -c "importsetuptools,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"failedwitherror code1inc:\users\user\appdata\local\temp\pip-build-_6j2tq\pyenv\

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值