Domanda

I am trying to install BeautifulSoup4 and having trouble with pip. I have installed pip but when I go to run pip install BeautifulSoup nothing happens. Just a new line comes up on CMD

e.g.

C:\Python27\Scripts>pip install BeautifulSoup

C:\Python27\Scripts>

Anyone have any ideas? This is Windows 7 btw. May well be something obvious I'm missing as I'm really new to Python. Thanks in advance.

Edit: I should also add that when I then try from bs4 import BeautifulSoup I get the following error:- ImportError: No module named bs4

È stato utile?

Soluzione

Try these troubleshooting steps

1.Be sure you've followed all of these instructions carefully.

2.Check your path environmental variables to make sure you can run python from the command line.

3.Check your python DIRECTORY for the SCRIPTS folder. Look there to see if pip is there. I'm not 100 percent for sure but I think you must have pip here for it to be able to run from the command line.

By the way:

4.If you have python 3.4 or later, pip may already be installed.

if all else fails....

5.download this and run this in an admin cmd window:

    python get-pip.py

6.try running the update commands if nothing else has worked.

    pip install -U setuptools

7.er....switch to easy_install

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top