[PYTHON] pip vs conda

Overview

I used to install the package with pip on windows7, but fiona didn't work because of GDAL. Make a note of how it worked

What is conda

conda is the command name for the installer for the package installer called anaconda. Generally, python installs packages under [\ lib \ site-packages] under [c: \ python27], but when anaconda is installed, it goes under [\ packages] under [c: \ anaconda2]. install. Not only python but also non-python packages such as qt and GDAL are included here. In other words, it's more like yum or apt-get than pip. Also, those who initially operated only with pip will install it twice.

However, in the case of a package that compiles and installs pip, it seems that there is still little track record in the windows7 64 environment. In other words, this is the case for fiona this time.

If this kind of compilation doesn't work, I usually go to the unofficial site and install it with whl, but this doesn't work either, so I moved to anaconda this time and it worked.

Know-how

Obviously, delete the path setting from c: \ python27; c: \ python27 \ scripts; c: \ anaconda2; c: \ anaconda2 \ scripts c: \ anaconda2; c: \ anaconda2 \ scripts That's it. If you look closely, anaconda also has pip, so if you pip with this setting, it will be installed on the anaconda side. At first, I didn't delete c: \ python27 \ scripts, so I was having trouble starting ipython's python2. To remove the original pip with this setting, use c: \ python27 \ script \ pip uninstall [package]

from now on

It seems that there is also a setting for switching the environment between python2 and python3, so I was thinking about switching to python3, so I highly recommend it.

Recommended Posts

conda vs. pip
pip vs conda
About package management with conda and pip
pip installation
1. Reinstall pip
pip memorandum
About pip
pip installation
pip installation
What is the difference between `pip` and` conda`?