Can't install prettytable

2019-07-27 22:34发布

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

标签: python pip
2条回答
老娘就宠你
2楼-- · 2019-07-27 22:44

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
查看更多
相关推荐>>
3楼-- · 2019-07-27 22:59
pip install PrettyTable

or

pip3 install PrettyTable
查看更多
登录 后发表回答