Before that,I have been so install and use pip on the macOS:
1 2 3 |
sudo easy_install pip3 pip3 install my_package |
later,This method is ineffective,Become such:
1 2 3 4 |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py pip install my_package |
Finally one day,I need to update it prompted pip,then:
1 2 3 4 5 6 7 |
pip3 install --upgrade pip3 ... ... TypeError: 'module' object is not callable |
After the query,I found that Python is to install this package:
1 |
python -m pip install stdlib_list --user |
For Python3,Still use pip rather than pip3 ,That is:
1 |
python3 -m pip install stdlib_list --user |
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 LogStudio: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
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.
Pip seems likely to upgrade to a version of this 😂😂 but I always seem to have nothing pip install problem
Today encounter,Quite desperate,I was a key upgrade to the newest version due to ......
-。-