Reputation: 3819
What are the relative merits of installing python packages on windows using pip as opposed to using packaged installers (exe/msi)?
Upvotes: 3
Views: 872
Reputation: 42405
Native installers are used mainly when a package contains C extensions that need to be compiled. As you have to use the same compiler used to build Python itself and configure environment properly it's not something that many users see themselves doing. To avoid these problems they instead choose native installer. However, installing by running exe/msi installer directly doesn't allow to choose which Python instance to install a package in so you can't install in virtualenv. This seems like a major drawback of using native installers but only because many people are not aware of the fact that it is possible to use native installer to install in virtualenv - see Can I install Python windows packages into virtualenvs? (Unfortunately in this case you can't use pip as it doesn't handle installing binary packages).
To summarize:
Upvotes: 2
Reputation: 7109
For starters, some just wouldn't work for me (MySQLdb being the major culprit).
My new rule:
pip
or easy_install
If neither works for you, post a question on StackOverflow. You really have no benefit weighing the merits of one or the other; just get what you need in the manner that provides the least friction, and move on to more interesting things.
Upvotes: 3