-1

I am trying to download BeautifulSoup for Python. However, when I use this in command prompt;

pip install beautifulsoup4

I receive this error;

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

Am I doing this wrong? Thanks for any help.

Autumn
  • 9
  • 2
  • Did you install pip? What version of python? – Phix Mar 26 '21 at 00:03
  • You could use the full path to your pip binary. – Mike Scotty Mar 26 '21 at 00:05
  • Clearly you are doing something wrong, or it would work the way you expect. The problem is the same as if you were told that anything else were `not recognized as an internal or external command, operable program or batch file`. You don't have a programming question; you have a question about how to use your computer. – Karl Knechtel Mar 26 '21 at 00:10
  • How do I use the full path to my pip binary? – Autumn Mar 26 '21 at 00:56
  • hello there! you should first try to search for the error...a similar question exists [here](https://stackoverflow.com/questions/23708898/pip-is-not-recognized-as-an-internal-or-external-command?page=1&tab=votes#tab-top) in StackOverflow. – Shubhang Gupta Mar 28 '21 at 13:56

4 Answers4

0

I believe using the command

python -m pip install beautifulsoup4

would be the preferred method. I had similar problems before. If that doesn't work i'd be glad to help further.

Also a quick search returned 'pip' is not recognized as an internal or external command which may be of more use.

  • Thanks for the help! When I try to run the above code, I get the error `Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.` Any fixes? – Autumn Mar 26 '21 at 05:03
  • @Autumn I'm rather new to this aswell but I would recommend you ensure you have python downloaded and appended to your systems PATH environment variable. That way your system can find python when you call it as above. As most posts suggest, going to [link] (https://www.python.org/) and following the download instructions should correct the issue. When downloading there should be an option you can check to add python to your PATH environment variable. – Conor Ladrigan Mar 26 '21 at 15:26
  • By opening the Python downloader and modifying to add Python to environment variables, the code worked. thanks! – Autumn Mar 26 '21 at 17:21
  • No problem. Glad to be of some help. – Conor Ladrigan Mar 26 '21 at 17:47
0

Check if Python is installed. If it's not installed, goto Python and Get the Latest Version. If you want to install a older version, I'd prefer Python 3.7.5 or Python 3.6.8

If Python is already installed, Re-Install it and try again.

DevX
  • 16
  • 3
0

Alright so I found a fix:

  1. Go to the Python installer
  2. Click 'modify'
  3. Click 'next'
  4. Check 'Add Python to environment variables'
  5. Click 'install'

I hope this works for anyone else.

Autumn
  • 9
  • 2
0

You may want to verify which version of Python you have running. I had a similar issue (I'm using Mac) and the fix was using "pip3" in place of "pip" for the commands.

example: pip3 intall (module)

Not sure if this will help, but it helped me ha ha.

UXOL
  • 76
  • 6