【问题标题】:why is "pip3 --help" failing?为什么“pip3 --help”失败了?
【发布时间】:2019-10-18 03:10:58
【问题描述】:

崩溃后我正在重建系统:Ubuntu 16.04LTS。

$pip3 with any cmnd-line option fails as follows:

Traceback (most recent call last):
  File "/usr/local/bin/pip3", line 11, in <module>
    sys.exit(main())
TypeError: 'module' object is not callable

FWIW,我的最终目标是将 iPython 升级到使用 Python 3.6+,然后重新安装 Jupyter。

建议?

【问题讨论】:

  • 尝试做pip3 uninstall pip3然后重新安装pip
  • 同样的结果。 (同样的错误信息。)
  • iPython 不会“使用”或“升级到”Python 版本。您会将 iPython 安装到特定版本的 Python...那么python3 -m pip --help 显示了什么?
  • pip 帮助页面内容:(/usage, /commands, /general options)。
  • 听起来您的 pip3 脚本可能与您的实际 pip 版本不同步。

标签: python python-3.x jupyter-notebook ipython


【解决方案1】:

我遇到了同样的问题,this answer 为我解决了这个问题:

python3 -m pip uninstall pip

【讨论】:

  • 经过几条死胡同后确认。谢谢。
猜你喜欢
  • 2021-04-08
  • 1970-01-01
  • 2014-06-01
  • 2012-09-16
  • 1970-01-01
  • 2015-03-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多