A few questions regarding Pythons 'import' feature -


i downloaded beautiful soup , i've decided i'll make small library (is call them in python?) return results of movie given , imdb movie search.

my question is, how import thing work?

for example, downloaded beautifulsoup , is, .py file. file have in same folder python application (my project use library)?

for ubuntu, can search packages command

apt-cache search beautifulsoup 

this should yield

python-beautifulsoup - error-tolerant html parser python 

so easiest way install beautifulsoup ubuntu run

sudo apt-get install python-beautifulsoup 

once this, can put

import beautifulsoup  

in of scripts , python installation find module.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -