How to enable python modules on Linux?

I found this xgoogle python modules http://github.com/pkrumins/xgoogle , very interesting. How exactly should I include or install these files on Linux?

if i want to do something similar using xgoogle python module?

>>from xgoogle.search import GoogleSearch 

I know what we can use, import to use modules, but include an external module, what should I do? Should I install a module or what?

+3
source share
2 answers

You can do a normal installation dance:

python setup.py install

or simply include the files in a known directory and include this directory in PYTHONPATH:

$ export PYTHONPATH=/contains/modules:$PYTHONPATH

​​ Python: http://docs.python.org/install/

+5

/ python , .

0

Source: https://habr.com/ru/post/1767527/


All Articles