[Python2.7.3] Arcgis install third-party libraries comes under python2.7.3 environment

0 python package mounting method

First, online access law

pip install 包名
pip install 包名 -i 国内源

Second, local installation method (download Well whl or .tar.gz file)

pip install 文件.whl 
python setup.py install

1 problem and purpose

1.1 problem

 From the start this morning to start trying to find, with a python2 environment, it could also accommodate arcgis comes arcpy not open source libraries and other third-party libraries that I use, such as pandas.
 [Python3.6.4 thing I read in the morning and comes Arcgis environment configuration problem Python2.7.3's] only address how in python environment without pip environment (such as 2.7.3 to install itself without pip), to install pip, but even installed a pip, use the first method 0, still can not use pip to install third-party libraries.
It will burst:
Here Insert Picture Description
such a problem.

1.2 Purpose

 Committed in arcgis comes python2.73 environment, install other third-party libraries. Because arcpy is not open source, if downloaded from the Internet on their own python2.73 environment, arcpy is not installed, so not vice versa. Comes only in arcgis python environment, you need to install third-party libraries.
 Although can be installed on the pip, but using online method pip install package name or wire mounting package names .whl so failed.
Just ask the Pei Xiao, probably understood as follows:
 PIP install the package name + way to download a third-party package, is take the form of online access to resources for downloading, but arcgis may restrict URL access, resulting in a could not fetch URL ...
 so, we want to access domestic mirroring resources, the specific use for the pip install the package name -i + domestic source
keyword search: pip domestic source   of domestic resources address

2 Solutions, such as installing pandas

1. The first is to download a file corresponding to 2.73 pandas.whl version Note: PANDAS-0.21.1-cp27-none-win32.whl
2. Then try to pip install pandas -i + domestic source when the burst depends on numpy version, you need to install the update
3. try to install the update numpy, but due to the limitations of arcgis, can not uninstall the old version of numpy, so the installation fails
4. try to install mandatory coverage numpy, the installation is successful

python -m pip install -U –force-reinstall pip -i + 国内源

5. Continue try to install pandas

pip install pandas -i +国内源

Burst still need to install additional dependent packages, as arcgis python environment comes with its own base package is not complete, so download one by one in the manner of domestic sources. Lack of Han make up what.
6. Install pandas success.

Guess you like

Origin blog.csdn.net/qq_40260867/article/details/84071858