Categories
Python

Proper use PIP to install Python package to avoid TypeError: ‘module’ object is not callable

Before,I have been so install and use pip on the macOS:

later,This method is ineffective,Become such:

Finally one day,I need to update it prompted pip,then:

After the query,I found that Python is to install this package:

For Python3,Still use pip rather than pip3 ,That is:

 

At last,Each write such a long command a lot of trouble,You can set an alias alias pip="python3 -m pip" Of course alias pip3="python3 -m pip"

For me,I use zsh,So I write to this alias ~/.zshrc .。

 

Other,When using the installation package --user Argument to avoid permissions issues。

Original article written by Gerber drop-off:R0uter's Blog » Proper use PIP to install Python package to avoid TypeError: ‘module’ object is not callable

Reproduced Please keep the source and description link:https://www.logcg.com/archives/3281.html

By R0uter's Blog

The non-declaration,I have written articles are original,Reproduced, please indicate the link on this page and my name。

2 replies on “Proper use PIP to install Python package to avoid TypeError: ‘module’ object is not callable”

Leave a Reply

Your email address will not be published. Required fields are marked *