How to install beautiful soup 4 with python 2.7 on windows

后端 未结 4 2123
星月不相逢
星月不相逢 2020-12-01 03:57

I have windows vista with Python 2.7. I would like to install BeautifulSoup 4 but apparently I can\'t install Beautiful Soup just by copying the file into the site-packages

4条回答
  •  天命终不由人
    2020-12-01 04:06

    I feel most people have pip installed already with Python. On Windows, one way to check for pip is to open Command Prompt and typing in:

    python -m pip
    

    If you get Usage and Commands instructions then you have it installed. If python was not found though, then it needs to be added to the path. Alternatively you can run the same command from within the installation directory of python.

    If all is good, then this command will install BeautifulSoup easily:

    python -m pip install BeautifulSoup4
    

    Screenshot:

    N' now I see I need to upgrade my pip, which I just did :)

提交回复
热议问题