The more Python development you do, though, the more packages you’re going to need. Pip makes installing libraries for your Python environment a breeze, and when you start developing your own packages it provides a way for you to declare dependencies so those dependent packages will get installed automatically as well. It integrates with PyPI, the Python Package Index, and lets you download and install a package from the package index without manually downloading the package, uncompressing it, running python setup.py install etc. Before We StartĪ brief note before we start… To make sure we’re all on the same page, pip is a Python package installer. Heck, when I was learning this I didn’t even know what pip was! Having gone through this process several times now, I decided to write it all down from the beginning in the hopes that it’ll be useful to someone in the future. Many guides I’ve seen out there assume either a) you’re working on Linux or UNIX or b) you already have pip/setuptools installed, or you know how to install packages and manage virtualenv. If you’re new to Python, getting up and running with pip and virtualenv can be a challenge, especially on Windows. ![]() Now, that’s all fine and dandy, but what is pip? And what is this virtualenv thing people keep telling me I should use? If you do any Python development, you’ll probably run into an awful lot of package installation instructions that read:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |