pip3“类型错误:‘模块’对象不可调用";更新后 [英] pip3 "TypeError: 'module' object is not callable" after update

查看:46
本文介绍了pip3“类型错误:‘模块’对象不可调用";更新后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Python 新手,我想在我的控制台中安装 Jupyter Notebook 我输入以下内容:

I am new in Python, I wanna install Jupyter Notebook in my console I enter the following:

pip3 install --upgrade pip 

之后我使用pip3安装其他库出错,控制台打印:

after that I have a error to use pip3 install other library, the console print:

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

我不知道我必须做什么.

I don't know what I have to do.

我使用 sudo autoremove python3-pip 之后我使用 sudo apt install python3-pip

I use sudo autoremove python3-pip after that I use sudo apt install python3-pip

推荐答案

来自 链接 by Bram,我刚刚运行了 python3 -m pip uninstall pip,然后它又开始工作了.

From the link by Bram, I just ran python3 -m pip uninstall pip, and it started to work again.

这篇关于pip3“类型错误:‘模块’对象不可调用";更新后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆