-1

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

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

Can anybody help me ?

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
  • Does it work with a production version of Python? – Klaus D. May 09 '20 at 23:22
  • 2
    Hello and welcome to SO ! Please, add more information, context so that the community could help you. For instance, paste the commands you used to install the desired libraries. – Littm May 10 '20 at 02:23
  • ..and how is this related to Visual Studio? Did you install it using Visual Studio? – Gino Mempin May 10 '20 at 08:17
  • Note that Python3.9 is still in [alpha/beta development](https://www.python.org/dev/peps/pep-0596/#schedule). It is not yet a standard release version. Unless you are testing/developing your own modules to support the new Python version, I recommend using Python 3.8 or 3.7 instead. – Gino Mempin May 10 '20 at 08:19

1 Answers1

1

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
Aaron Pradhan
  • 426
  • 5
  • 6