0

When I look up tutorials on Python almost every one starts with "Start of with pip install bs4" but they never tell me about how. Because when I write "pip install bs4" in my cmd the answer I get is only

'pip' is not recognized as an internal or external command, operable program or batch file.

I've tried running "pip install bs4" in PyCharm as well but nothing works.

I am a totally a beginner, which you probably already noticed, and just want to get beautifulsoup.

  • you can folllow this: https://phoenixnap.com/kb/install-pip-windows – ranifisch Nov 21 '19 at 20:03
  • What is the name of your Python executable? And are you on Windows or Linux? – Ellis Nov 21 '19 at 20:03
  • 3
    Possible duplicate of ['pip' is not recognized as an internal or external command](https://stackoverflow.com/questions/23708898/pip-is-not-recognized-as-an-internal-or-external-command) – phd Nov 21 '19 at 20:12
  • 2
    https://stackoverflow.com/search?q=%5Bpip%5D+is+not+recognized+as+an+internal+or+external+command%2C+operable+program+or+batch+file – phd Nov 21 '19 at 20:12

2 Answers2

2

I'm going to assume you're on Windows since your error message contains "batch file". Try:

py -m pip install bs4

The -m flag will import the pip module, and allow you to run the install command. If running py doesn't work, try the absolute path to your python.exe.

Ellis
  • 549
  • 7
  • 27
1

This is the official site that shows you how to download and install python pip

pretty much just download the file, open up the command prompt, cd to file directory and run it with:

python get-pip.py
voiys
  • 199
  • 3
  • 12