本文介绍了无法安装prettytable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法"pip install prettytable".安装它的最佳选择是什么?

I'm unable to "pip install prettytable". What is the best option for installing it?

% sudo pip -vvv install prettytable

Downloading/unpacking prettytable
  Getting page https://pypi.python.org/simple/prettytable/
  Could not fetch URL https://pypi.python.org/simple/prettytable/: 404 Client Error: Not Found
  Will skip URL https://pypi.python.org/simple/prettytable/ when looking for download links for prettytable
  Getting page https://pypi.python.org/simple/
  URLs to search for versions for prettytable:
  * https://pypi.python.org/simple/prettytable/
  Getting page https://pypi.python.org/simple/prettytable/
  Could not fetch URL https://pypi.python.org/simple/prettytable/: 404 Client Error: Not Found
  Will skip URL https://pypi.python.org/simple/prettytable/ when looking for download links for prettytable
  Could not find any downloads that satisfy the requirement prettytable

推荐答案

看来,prettytable模块在PyPI上不可用.您可以从 https://code.google.com/p/prettytable下载源代码/downloads/list ,然后安装该模块.

It looks like that prettytable module isn't available on PyPI.You can download a source code from https://code.google.com/p/prettytable/downloads/list and then install the module.

pip install https://pypi.python.org/packages/source/P/PrettyTable/prettytable-0.7.2.tar.bz2

这篇关于无法安装prettytable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-17 01:44