简体   繁体   中英

Installing pip using command prompt raises error

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.

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.

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.

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.

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.

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