Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I created my first Debian package today by following the accepted answer at this AskUbuntu question. Everything went fine, and it installed properly afterwards. However, my script is written in python and depends on the BeautifulSoup library.

My plan is to send the package to a friend who I am nearly certain does not have pip or the like installed. What is the best way to attach such a dependency to my package or ensure that it is installed along with the package?

share|improve this question
if you're rolling new packages, you really should depend on and import bs4 not beautifulsoup – RobotHumans Dec 28 '12 at 4:39
For Python dependencies that are not already packaged in Debian/Ubuntu I recommend this approach: – MestreLion Aug 11 '14 at 22:38
up vote 4 down vote accepted

BeautifulSoup package is in Ubuntu repositories as python-beautifulsoup. You need to specify that your package depends on it.

In the answer you linked to, have a look at debian/control file - there is Depends: section where you can specify package dependencies.

share|improve this answer
Thank you! That worked just fine! – dejay Dec 28 '12 at 4:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.