I installed pip (
pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)). My python version is 2.7.
apt-get install python-pygame and got a success message. But when I try to import it in
python, getting the following message:
ashish@Ashish-Notebook:~$ python Python 2.7.11 (default, Jun 6 2016, 07:21:54) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pygame Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named pygame >>>
Similarly, I installed Beautiful Soup by
pip install BeautifulSoup and can't import it anywhere. Moreover when I again try to install, I get this message:
Requirement already satisfied (use --upgrade to upgrade): BeautifulSoup in /usr/local/lib/python2.7/dist-packages Cleaning up... ashish@Ashish-Notebook:~$
Moreover when i get a list of installed packages (by pip list). I can see pygame and beautifulsoup in that list.