Try import bs4
. It’s unfortunate there’s no correspondence between PyPI package name and import name. After that the class names are the same as before eg. soup = bs4.BeautifulSoup(doc)
will work.
If that still doesn’t work, try pip install
again and note the path to the package install. Then in your python console run import sys
and print sys.path
to make sure that the path is there.
You might need to explicitly specify pip-2.7
or switch to easy_install
(or easy_install-2.7
)
Related Posts:
- How do I update\upgrade pip itself from inside my virtual environment?
- How do I update\upgrade pip itself from inside my virtual environment?
- How to install pip with Python 3?
- How to update/upgrade a package using pip?
- bash: pip: command not found
- How to uninstall a package installed with pip install –user
- ImportError: No module named pip
- ImportError: No module named pip
- How do I install pip on macOS or OS X?
- How can I install pip on Windows?
- ImportError: No module named tensorflow
- Where does pip install its packages?
- Where does pip install its packages?
- How to install python3 version of package via pip on Ubuntu?
- Could not install packages due to an EnvironmentError:
- Could not find a version that satisfies the requirement tensorflow
- “Defaulting to user installation because normal site-packages is not writeable” python message
- Could not find a version that satisfies the requirement tensorflow
- How to install pytorch in Anaconda with conda or pip?
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- Configuring so that pip install can work from github
- import opencv vs import cv2
- No module named ‘psycopg2’
- How to pip or easy_install tkinter on Windows
- Conda uninstall one package and one package only
- Error after upgrading pip: cannot import name ‘main’
- filename.whl is not supported wheel on this platform
- How to remove \xa0 from string in Python?
- What is the meaning of [:] in python [duplicate]
- Understand the Find() function in Beautiful Soup
- Permission denied error by installing matplotlib
- Updating matplotlib in virtualenv with pip
- ImportError: cannot import name main when running pip –version command in windows7 32 bit
- filename.whl is not a supported wheel on this platform
- What is the difference between pip and conda?
- bash: pip: command not found
- How to know the version of pip itself
- How to install pip3 on Windows?
- “ImportError: no module named ‘requests'” after installing with pip
- How do I install the yaml package for Python?
- ModuleNotFoundError: No module named ‘matplotlib’
- error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat
- AttributeError: Module Pip has no attribute ‘main’
- pg_config executable not found
- Can I force pip to reinstall the current version?
- How can I install Python’s pip3 on my Mac?
- Removing pip’s cache?
- setup script exited with error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- Could not find a version that satisfies the requirement
- No module named pkg_resources
- What is the purpose of “pip install –user …”?
- How to upgrade all Python packages with pip
- How do I remove all packages installed by PIP?
- What is the easiest way to remove all packages installed by pip?
- How to get pip to work behind a proxy server
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- Using Pip to install packages to Anaconda Environment
- How to install multiple python packages at once using pip
- How are Pipfile and Pipfile.lock used?
- Checking whether pip is installed?
- AttributeError: Module Pip has no attribute ‘main’
- pg_config executable not found
- ‘Pip’ is Not Recognized as an Internal or External Command windows 10 CMD
- How to reinstall a pip package even if it exists
- How can I install Python’s pip3 on my Mac?
- ImportError: No Module Named bs4 (BeautifulSoup)
- Difference between BeautifulSoup and Scrapy crawler?
- No module named “Torch”
- Why does “pip install” inside Python raise a SyntaxError?
- clang error: unknown argument: ‘-mno-fused-madd’ (python package installation failure)
- ‘pip install’ fails for every package (“Could not find a version that satisfies the requirement”) [duplicate]
- How do I install a pip package globally instead of locally?
- python mpl_toolkits installation issue
- Using BeautifulSoup to search HTML for string
- UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xa0′ in position 20: ordinal not in range(128)
- Pipenv: Command Not Found
- BeautifulSoup getting href
- How to find elements by class
- Pip – Fatal error in launcher: Unable to create process using ‘”‘
- How can I from bs4 import BeautifulSoup?
- python pip on Windows – command ‘cl.exe’ failed
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- pip install -r requirements.txt [Errno 2] No such file or directory: ‘requirements.txt’
- pip: no module named _internal
- Zsh: Conda/Pip installs command not found
- ImportError: No module named ‘yaml’
- pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/
- Find which version of package is installed with pip
- How to run Pip commands from CMD
- How to install PyGame on Python 3.4?
- BeautifulSoup and lxml.html – what to prefer?
- Get an attribute value based on the name attribute with BeautifulSoup
- Django Rest Framework — no module named rest_framework
- UnicodeEncodeError: ‘charmap’ codec can’t encode characters
- python NameError: name ‘file’ is not defined
- python BeautifulSoup parsing table
- pip3 error – ‘_NamespacePath’ object has no attribute ‘sort’
- ImportError: No module named Crypto.Cipher