April 2014
Beginner to intermediate
634 pages
15h 22m
English
We have several techniques to install a Python module or package:
setup.py and use the distribution utilities module, distutils, to install the package into Python's lib/site-packages directory. See Distributing Python Modules.PYTHONPATH environment variable to include our packages and modules. We can set this temporarily in a shell, or we can set it more permanently by editing our ~/.bash_profile or the system's /etc/profile. We'll take a look at this in a little more depth in the later section..pth files to add directories to the import path. These files can be located in the local directory or lib/site-packages to provide an indirect reference to a module or package. See ...