用pip install升级已安装的附加包, 以tabulate包为例

去pypi官网查看tabulate包的介绍, 发现tabulate 0.7.6才开始支持宽字符的美化打印.

而且还需要安装它的附加包: widechars

然而我的机器里的tabulate的版本是0.7.5.

下面是升级步骤以及log记录:

pip install --upgrade tabulate

pip install tabulate[widechars]

  1. C:\Documents and Settings\Administrator>pip help install
  2. Usage:
  3. pip install [options] <requirement specifier> [package-index-options] ...
  4. pip install [options] -r <requirements file> [package-index-options] ...
  5. pip install [options] [-e] <vcs project url> ...
  6. pip install [options] [-e] <local project path> ...
  7. pip install [options] <archive url/path> ...
  8. Description:
  9. Install packages from:
  10. - PyPI (and other indexes) using requirement specifiers.
  11. - VCS project urls.
  12. - Local project directories.
  13. - Local or remote source archives.
  14. pip also supports installing from "requirements files", which provide
  15. an easy way to specify a whole environment to be installed.
  16. Install Options:
  17. -c, --constraint <file> Constrain versions using the given constraints
  18. file. This option can be used multiple times.
  19. -e, --editable <path/url> Install a project in editable mode (i.e.
  20. setuptools "develop mode") from a local project
  21. path or a VCS url.
  22. -r, --requirement <file> Install from the given requirements file. This
  23. option can be used multiple times.
  24. -b, --build <dir> Directory to unpack packages into and build in.
  25. -t, --target <dir> Install packages into <dir>. By default this
  26. will not replace existing files/folders in
  27. <dir>. Use --upgrade to replace existing
  28. packages in <dir> with new versions.
  29. -d, --download <dir> Download packages into <dir> instead of
  30. installing them, regardless of what's already
  31. installed.
  32. --src <dir> Directory to check out editable projects into.
  33. The default in a virtualenv is "<venv
  34. path>/src". The default for global installs is
  35. "<current dir>/src".
  36. -U, --upgrade Upgrade all specified packages to the newest
  37. available version. The handling of dependencies
  38. depends on the upgrade-strategy used.
  1. C:\Documents and Settings\Administrator>pip install --upgrade tabulate
  2. Collecting tabulate
  3. Downloading tabulate-0.7.7-py2.py3-none-any.whl
  4. Installing collected packages: tabulate
  5. Found existing installation: tabulate 0.7.5
  6. Uninstalling tabulate-0.7.5:
  7. Successfully uninstalled tabulate-0.7.5
  8. Successfully installed tabulate-0.7.7

  1. C:\Documents and Settings\Administrator>pip install tabulate[widechars]
  2. Requirement already satisfied: tabulate[widechars] in d:\anaconda2\lib\site-packages
  3. Collecting wcwidth; extra == "widechars" (from tabulate[widechars])
  4. Using cached wcwidth-0.1.7-py2.py3-none-any.whl
  5. Installing collected packages: wcwidth
  6. Successfully installed wcwidth-0.1.7

用pip install升级已安装的包的附加包, 以tabulate包为例的更多相关文章

  1. 使用pip install 或者easy_install安装Python的各种包出现cc failed with exit status 1

    *:first-child { margin-top: 0 !important; } body > *:last-child { margin-bottom: 0 !important; } ...

  2. 当pip install不能正确安装的时候,try easy_install

    当pip install不能正确安装的时候,try easy_install 重复试了几次pip install -r requirements.txt,都在安装pillow的时候失败了,想找这个枕头 ...

  3. Android手机出现"已安装了存在签名冲突的同名数据包"的原因及解决办法

    http://blog.csdn.net/dyllove98/article/details/8830264 如果你不是开发者:如果你在android上更新一个已经安装过较早版本软件时,安装到最后一步 ...

  4. Android - "已安装了存在签名冲突的同名数据包",解决方法!

    错误提示:已安装了存在签名冲突的同名数据包. 解决方法:打开Android Studio,打开logcat,用usb线连接你出错的手机,识别出手机之后,在你的项目后面,点击“run”按钮,随后AS会提 ...

  5. Android手机 "已安装了存在签名冲突的同名数据包"

    如果你不是开发者:如果你在android上更新一个已经安装过较早版本软件时,安装到最后一步提示你:已安装了存在签名冲突的同名数据包,然后安装失败.这是因为旧版软件的签名信息与新版不一致造成的.你可以卸 ...

  6. 使用pip install mysqlclient命令安装mysqlclient失败?(基于Python)

    我们使用Django.flask等来操作MySQL,实际上底层还是通过Python来操作的.因此我们想要用Django来操作MySQL,首先还是需要安装一个驱动程序.在Python3中,驱动程序有多种 ...

  7. python 通过 pip 更新所有已安装的包

    较新的 pip 已经支持 list --outdated 了,所以记录一下新的方法: pip list --outdated --format=legacy |awk '{print $1}' |xa ...

  8. pip install 升级时候 出现报asciii码错误的问题。

    原因是pip安装python包会加载我的用户目录,我的用户目录恰好是中文的,ascii不能编码.解决办法是: python目录 Python27\Lib\site-packages 建一个文件site ...

  9. 三步升级已安装的 Android SDK 和 ADT 插件(转载)

    转载:http://www.tfan.org/update-adt-and-android-sdk-in-five-minutes/ 如何快速地把已安装的 Android SDK 及 Eclipse ...

随机推荐

  1. 树莓派与Arduino Leonardo使用NRF24L01无线模块通信之基于RF24库 (四) 树莓派单子节点查询

    考虑到项目的实际需要,树莓派作为主机,应该只在需要的时候查询特定节点发送的数据,因此接收到数据后需要根据头部判断是否是自己需要的数据,如果不是继续接收数据,超过一定时间未查询到特定节点的数据,则退出程 ...

  2. 由一个滑动条的任务需求产生一个对UISlider控件的探讨

    任务需求样式:

  3. iOS完整学习路线图-对知识的回顾/整理

    第一阶段:语言基础 Mac系统使用.常用UNIX指令.C语言.Objective-C语言.Foundation框架. 第二阶段:iOS基础 AppDelegate & UIApplicatio ...

  4. Nfs的简单了解

    近期在上传公司课件课程,上传的思路是,在45服务器上建立44服务器的nfs的连接,然后将43服务器上的课件拷贝到建立好的nfs上,再运行课件解析工具,解析整理好的excel即可完成课程的上传.在45服 ...

  5. 关闭SSD(固态硬盘)节能功能 提搞SSD性能

     此方法可以缓解比如QQ聊天时能明显感觉到打字过程不连续,0.1s左右的间歇停顿,操作系统并不会锁死,系统突然停止响应,硬盘灯狂闪,鼠标指针成为圆圈,点什么都没反应,这种状况可能会持续1-2分钟, ...

  6. DataRow数组根据指定列排序

    正序:DataRow[] datarow = datarow.OrderBy(x=>x["Ybrq"]).ToArray(); 倒序:DataRow[] datarow = ...

  7. delphi ERP框架

    之前做c/s架构,接了有家装饰的一个ERP项目,做了一个ERP框架,现在转后端开发了,这些东西还是蛮怀念的,就开源出来吧,有需要的同学可以参考. https://github.com/qianlnk/ ...

  8. python自动化之连接数据库

    # -*- coding: utf-8 -*- """ Created on Fri Mar 20 10:50:56 2015 @author: sl "&qu ...

  9. Python 变量(下)

    列表 列表是可修改的序列类型.所以列表不可以作为字典的键. >>> a = [1] >>> hash(a) Traceback (most recent call ...

  10. Gartner 2018 年WAF魔力象限报告:云WAF持续增长,Bot管理与API安全拥有未来

    Gartner 2018 年WAF魔力象限报告:云WAF持续增长,Bot管理与API安全拥有未来 来源 https://www.freebuf.com/articles/paper/184903.ht ...