Ubuntu - How to install a Python module (BeautifulSoup) on Python 3.3 instead of Python 2.7?
- 阅读更多 关于 Ubuntu - How to install a Python module (BeautifulSoup) on Python 3.3 instead of Python 2.7?
I have this code (as written in BS4 documentaion): from bs4 import BeautifulSoup When I run the script (using python3) I get the error: ImportError: No module named 'bs4' So installed BeatifulSoup by: sudo pip install BeatifulSoup4 But when I try to run the script again I get the same error. Indeed BS4 is installed in: BeautifulSoup4 in /usr/local/lib/python2.7/dist-packages But I want to install and use it with python3.3 (as there are other module which are not working with python2.7). I tried with: virtualenv --python=/usr/bin/python2.7 /usr/bin/python3.3 and then install BS4 again, but