For a Debian-like distribution of Linux, it may be installed via the following command: Some distributions might have it preinstalled for you or it might be present in a system-level package. If you have Python 2.7.9 or greater installed, then pip will already be present. This brings us to one more essential piece of the puzzle-the pip Python package installer. While the use of this particular public PyPI repository is not a requirement (it's even possible to set up your own personal package index), most Python developers will expect to find their packages here. Once the package has been created, most developers will choose to upload their newly minted package to PyPI-the official source of nearly all Python packages-using the built-in tools that are provided by setuptools itself. If you purchased this book elsewhere, you can visit and register to have the files e-mailed directly to you. You can download the example code files from your account at for all the Packt Publishing books you have purchased. Once you've created a module on your local filesystem and ensured that it is in your system's PYTHONPATH, including it in a newly created project is as simple as specifying the import, which is as follows: In the Python world, as you may know already, the fundamental unit of a reusable set of source files is that of a Python module (a file that contains definitions and statements). For some, this chain of dependencies can become an unmanageable mess, where the slightest alteration to any of the libraries in the chain can cause a cascade of incompatibilities that would bring further development to a screeching halt. Once created, these packages of source files may then be included in other projects and so forth. In the case of a Flask application (and more generally, that of a Python application), most dependencies are comprised of specially organized and annotated source files. Generally, a dependency of a software project consists of a library or component that is required for the project to function correctly. One of the great difficulties in modern software development is that of dependency management. Chapter 1. Starting on the Right Foot – Using Virtualenv
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |