python中tree安装_python – 无法使用pip安装elementtree

在尝试使用pip在Python环境中安装elementtree包时遇到错误,显示找不到匹配的版本。错误信息表明在pypi.python.org上没有找到elementtree的可用版本,导致安装失败。
摘要由CSDN通过智能技术生成

尝试使用pip安装elementtree包.收到以下错误:

(taximachine_env)vagrant@dev-gm:/opt/taxi/taxiconsole$pip install elementtree -vvv

Collecting elementtree

Getting page https://pypi.python.org/simple/elementtree/

1 location(s) to search for versions of elementtree:

* https://pypi.python.org/simple/elementtree/

Getting page https://pypi.python.org/simple/elementtree/

Analyzing links from page https://pypi.python.org/simple/elementtree/

Could not find a version that satisfies the requirement elementtree (from versions: )

Cleaning up...

No matching distribution found for elementtree

Exception information:

Traceback (most recent call last):

File "/opt/taxi/envs/taximachine_env/local/lib/python2.7/site-packages/pip/basecommand.py", line 211, in main

status = self.run(options, args)

File "/opt/taxi/envs/taximachine_env/local/lib/python2.7/site-packages/pip/commands/install.py", line 294, in run

requirement_set.prepare_files(finder)

File "/opt/taxi/envs/taximachine_env/local/lib/python2.7/site-packages/pip/req/req_set.py", line 334, in prepare_files

functools.partial(self._prepare_file, finder))

File "/opt/taxi/envs/taximachine_env/local/lib/python2.7/site-packages/pip/req/req_set.py", line 321, in _walk_req_to_install

more_reqs = handler(req_to_install)

File "/opt/taxi/envs/taximachine_env/local/lib/python2.7/site-packages/pip/req/req_set.py", line 461, in _prepare_file

req_to_install.populate_link(finder, self.upgrade)

File "/opt/taxi/envs/taximachine_env/local/lib/python2.7/site-packages/pip/req/req_install.py", line 250, in populate_link

self.link = finder.find_requirement(self, upgrade)

File "/opt/taxi/envs/taximachine_env/local/lib/python2.7/site-packages/pip/index.py", line 571, in find_requirement

'No matching distribution found for %s' % req

DistributionNotFound: No matching distribution found for elementtree

PyPI link返回以下响应:

Links for elementtree

Links for elementtree

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值