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

About the Author

R0uter's Blog

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

Comments

  1. I and my friends happened to be looking through the best ideas found on your web blog while the sudden I had an awful suspicion I never thanked the web site owner for those strategies. Those ladies came for this reason very interested to learn them and already have sincerely been tapping into these things. Many thanks for being quite thoughtful and then for choosing variety of important issues millions of individuals are really needing to learn about. My very own sincere apologies for not saying thanks to you earlier.

Leave a Reply

Your email address will not be published.