简体   繁体   中英

“AttributeError: module 'pip' has no attribute 'main'” when installing python libraries

I have this problem with Python ( version 3.9 ) and Visual Studio 2019.

AttributeError: module 'pip' has no attribute 'main'

Can anybody help me?

This problem might be because you are not using the latest version of pip, or because you did not upgrade correctly. Use the following command to upgrade. See here for more information.

python3 -m pip install --user --upgrade pip==20.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM