I am using this weird SuSE machine. I need to install a python package in my python 2.7. I downloaded it from the site and then untar it and cd to the directory.. Tried:cd /python-package_Pyxnat/python2.7 setup.py installI am getting following output:/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'  warnings.warn(msg)/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'summary'  warnings.warn(msg)running installrunning buildrunning build_pyrunning install_librunning install_egg_infoRemoving /usr/local/lib/python2.7/site-packages/pyxnat-1.0.0.0-py2.7.egg-infoWriting /usr/local/lib/python2.7/site-packages/pyxnat-1.0.0.0-py2.7.egg-infoError after importing pyxnat package:>>> import pyxnatTraceback (most recent call last):  File <stdin>, line 1, in <module>  File pyxnat/__init__.py, line 13, in <module>    from .core import Interface  File pyxnat/core/__init__.py, line 4, in <module>    from .interfaces import Interface  File pyxnat/core/interfaces.py, line 8, in <module>    import requestsImportError: No module named requestsWhy am I not able to import python package even after installing it?
Install Python package in linux OpenSUSe
package management;python;opensuse
You installed the package, but not its dependencies. That is something running python setup.py install will not do for you, you better try a package manager like pip in which case you don't have download pyxnat first:pip install pyxnatwhich will get you all dependencies specified for pyxnat, not just the requests packages. Alternatively you can do:pip install -e .in the untarred pyxnat directory.If you don't have pip installed use your package manager to install (probably called python-pip) or use the instructions here.I second @Digisec recommendation of using a virtualenv, especially if your python version is used by some system programs as well.