|
1 |
| -Title: Installation-Expert |
2 |
| -Date: 2018-04-21 11:27:50 |
3 |
| -Category: English |
4 |
| -Tags: Doc,English,Support |
5 |
| - |
6 |
| -# Installation, For Expert |
7 |
| - |
8 |
| -GeoPyTool can also be used as a module inside Python. |
9 |
| - |
10 |
| -# 1. MacOS |
11 |
| - |
12 |
| -## 1.1 Install Brew and python |
13 |
| - |
14 |
| -Go to [brew.sh](http://brew.sh/) to to install brew in MacOS. |
15 |
| - |
16 |
| -After the Installation of Brew, run the following commands to install python3: |
17 |
| -```Bash |
18 |
| -brew install python3 |
19 |
| -``` |
20 |
| -## 1.2 Install Needed Modules |
21 |
| - |
22 |
| -Then run the following commands to install some base modules: |
23 |
| -```Bash |
24 |
| -pip install cython |
25 |
| -pip install numpy |
26 |
| -pip install pandas |
27 |
| -pip install xlrd |
28 |
| -pip install matplotlib |
29 |
| -pip install BeautifulSoup4 |
30 |
| -pip install pyqt5 |
31 |
| -pip install scipy |
32 |
| -pip install scikit-learn |
33 |
| -pip install sympy |
34 |
| -pip install requests |
35 |
| -pip install pyopengl |
36 |
| -``` |
37 |
| - |
38 |
| -Or you may try to use one line command to install all the required modules: |
39 |
| -```Bash |
40 |
| -pip install cython numpy scipy matplotlib sympy pandas xlrd pyopengl BeautifulSoup4 pyqt5 scikit-learn requests |
41 |
| -``` |
42 |
| -## 1.3 Install GeoPyTool |
43 |
| - |
44 |
| -After all the modules above getting installed, run the following command to install GeoPyTool: |
45 |
| -```Bash |
46 |
| -pip install geopytool |
47 |
| -``` |
48 |
| - |
49 |
| - |
50 |
| -# 2. Linux |
51 |
| -Here we only take Ubuntu 16.04.4 for example. |
52 |
| - |
53 |
| -## 2.1 Update System to Latest |
54 |
| - |
55 |
| -Open Terminal, run the following commands to keep your system updated: |
56 |
| -```Bash |
57 |
| -apt update |
58 |
| -apt upgrade |
59 |
| -``` |
60 |
| -## 2.2 Instal python and pip |
61 |
| -Then run the following commands to install python and PIP for python: |
62 |
| -```Bash |
63 |
| -apt install python |
64 |
| -apt install python-pip |
65 |
| -``` |
66 |
| - |
67 |
| - |
68 |
| -## 2.3 Install Needed Modules |
69 |
| - |
70 |
| -Then run the following commands to install some base modules: |
71 |
| -```Bash |
72 |
| -pip install cython |
73 |
| -pip install numpy |
74 |
| -pip install pandas |
75 |
| -pip install xlrd |
76 |
| -pip install matplotlib |
77 |
| -pip install BeautifulSoup4 |
78 |
| -pip install pyqt5 |
79 |
| -pip install scipy |
80 |
| -pip install scikit-learn |
81 |
| -pip install sympy |
82 |
| -pip install requests |
83 |
| -pip install pyopengl |
84 |
| -``` |
85 |
| -Or you may try to use one line command to install all the required modules: |
86 |
| -```Bash |
87 |
| -pip install cython numpy scipy matplotlib sympy pandas xlrd pyopengl BeautifulSoup4 pyqt5 scikit-learn requests |
88 |
| -``` |
89 |
| -## 2.4 Install GeoPyTool |
90 |
| - |
91 |
| -After all the modules above getting installed, run the following command to install GeoPyTool: |
92 |
| -```Bash |
93 |
| -pip install geopytool |
94 |
| -``` |
95 |
| - |
96 |
| - |
97 |
| -# 3. Windows |
98 |
| -The first thing to do is to install Python, newer than 3.6, which can be download from [Python Website](https://www.python.org/downloads/). |
99 |
| - |
100 |
| -## 3.1 Install Patches Needed |
101 |
| - |
102 |
| -[Microsoft Visual C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) is required for the installation of scikit-learn. Another solution is to use conda to install scipy and scikit-learn. |
103 |
| - |
104 |
| -### For Windows 7 |
105 |
| - |
106 |
| -To use GeoPyTool on Windows 7, You need to install the **SP1 of Windows** and then install **KB2999226 Patch** and the **Visual C++ Redistributable 2015**. |
107 |
| - |
108 |
| -The SP1 package of Windows 7 can be found at [here, the official website of MicroSoft](https://support.microsoft.com/en-us/help/15090/windows-7-install-service-pack-1-sp1). |
109 |
| - |
110 |
| -The installation packages of KB2999226 and the `Visual C++ Redistributable 2015` can also be downloaded from here: |
111 |
| -[32 bit Windows7 ](https://pan.baidu.com/s/1kVwSQ95) |
112 |
| -[64 bit WInodws7 ](https://pan.baidu.com/s/1qY34ocW) |
113 |
| - |
114 |
| - |
115 |
| -Be careful to choose the right version suitable for your Windows. |
116 |
| - |
117 |
| -If you are using Windows 7 without the SP1 package installed, there might comes an`api-ms-win-crt`related error. So believe me my friend, just install these patched below, they won't harm you after all. |
118 |
| - |
119 |
| -So if you encounter any `api-ms-win-crt`related errors, please check those installations first. |
120 |
| - |
121 |
| - |
122 |
| - |
123 |
| -## 3.2 Install Python |
124 |
| - |
125 |
| -Then you can download a Python 3.6.4 or newer version of python from [Python.org](https://www.python.org/downloads/windows/), and run the installer to install it to your Windows. |
126 |
| - |
127 |
| -#### Notice |
128 |
| -Make sure to check the box of setting Python to system Path: |
129 |
| - |
130 |
| - |
131 |
| - |
132 |
| - |
133 |
| - |
134 |
| -## 3.3 Install Needed Modules |
135 |
| - |
136 |
| -After installation of Python, you need to install some used packages first. |
137 |
| -So use the following commands in your **terminal** to install these modules. |
138 |
| - |
139 |
| ->You don't know what a Terminal is? For Windows, it can be the mighty **CMD** or PowerShell. For other systems including macOS, it should be the **BASH** ore just labeled as **Terminal** in the built-in applications list. Still don't know how to launch a terminal? Google it dude, we can't do that hand by hand for you. |
140 |
| -
|
141 |
| - |
142 |
| -Here we use pip as we assume that your default version of Python is Python 3.X and the pip will refer to the PIP under python. If you installed both Python 2.X and Python 3.X, you might need to try to use **pip** instead of **pip** in all the following commands to call the PIP of Python 3. |
143 |
| - |
144 |
| -Then run the following commands in your **terminal** to install some base modules: |
145 |
| -```Bash |
146 |
| -pip install cython |
147 |
| -pip install numpy |
148 |
| -pip install pandas |
149 |
| -pip install xlrd |
150 |
| -pip install matplotlib |
151 |
| -pip install BeautifulSoup4 |
152 |
| -pip install pyqt5 |
153 |
| -pip install scipy |
154 |
| -pip install scikit-learn |
155 |
| -pip install sympy |
156 |
| -pip install requests |
157 |
| -pip install pyopengl |
158 |
| -``` |
159 |
| - |
160 |
| -Or you may try to use one line command to install all the required modules: |
161 |
| -```Bash |
162 |
| -pip install cython numpy scipy matplotlib sympy pandas xlrd pyopengl BeautifulSoup4 pyqt5 scikit-learn requests |
163 |
| -``` |
164 |
| - |
165 |
| -## 3.4 Install GeoPyTool |
166 |
| -After the installation of those packages above, you can use this similar command also in the **terminal** to install the GeoPyTool. |
167 |
| -```Bash |
168 |
| -pip install geopytool |
169 |
| -``` |
170 |
| - |
171 |
| -If there comes no error message, everything should have been done successfully. |
172 |
| - |
173 |
| -# 4. Run GeoPyTool |
174 |
| - |
175 |
| -If there is no error reported, run the following commands in the Terminal to run GeoPyTool: |
176 |
| -```Bash |
177 |
| -python -c "import geopytool;geopytool.main()" |
178 |
| -``` |
179 |
| - |
180 |
| -# 5. Update an existing GeoPyTool |
181 |
| - |
182 |
| -If you installed GeoPyTool as a module in Python, you can use the following command in the **terminal** to update GeoPyTool to the latest version on any operating system: |
183 |
| -```Bash |
184 |
| -pip install geopytool --update --no-cache-dir |
185 |
| -``` |
186 |
| - |
187 |
| -It is a good idea to update **GeoPyTool** with pip everytime before you use it. |
188 |
| - |
189 |
| - |
| 1 | +Title: Installation-Expert |
| 2 | +Date: 2020-12-29 19:13:50 |
| 3 | +Category: English |
| 4 | +Tags: Doc,English,Support |
| 5 | + |
| 6 | +# Installation, For Expert |
| 7 | + |
| 8 | +GeoPyTool can also be used as a module inside Python. |
| 9 | + |
| 10 | +# 1. Install Python |
| 11 | + |
| 12 | +Find help from [Python official website](https://www.python.org/downloads/) please. |
| 13 | + |
| 14 | +# 2. Install Needed Modules |
| 15 | + |
| 16 | +Then run the following commands in **terminal** to install some base modules: |
| 17 | +```Bash |
| 18 | +pip install cython numpy scipy matplotlib sympy pandas xlrd pyopengl BeautifulSoup4 pyqt5 scikit-learn requests tensorflow torch keras tqdm |
| 19 | +``` |
| 20 | + |
| 21 | +If you encounter errors, which might be related to numpy or tensorflow, please run the following commands to specify a particular version. |
| 22 | +```Bash |
| 23 | +pip install numpy ==1.8.5 |
| 24 | +pip install tensorflow==2.3.1 |
| 25 | +``` |
| 26 | + |
| 27 | +# 3. Install GeoPyTool |
| 28 | + |
| 29 | +After all the modules above getting installed, run the following command to install GeoPyTool: |
| 30 | +```Bash |
| 31 | +pip install geopytool |
| 32 | +``` |
| 33 | + |
| 34 | +If there comes no error message, everything should have been done successfully. |
| 35 | + |
| 36 | +# 4. Run GeoPyTool |
| 37 | + |
| 38 | +If there is no error reported, run the following commands in the Terminal to run GeoPyTool: |
| 39 | +```Bash |
| 40 | +python -c "import geopytool;geopytool.main()" |
| 41 | +``` |
| 42 | + |
| 43 | +# 5. Update an existing GeoPyTool |
| 44 | + |
| 45 | +If you installed GeoPyTool as a module in Python, you can use the following command in the **terminal** to update GeoPyTool to the latest version on any operating system: |
| 46 | +```Bash |
| 47 | +pip install geopytool --update --no-cache-dir |
| 48 | +``` |
| 49 | + |
| 50 | +It is a good idea to update **GeoPyTool** with pip everytime before you use it. |
| 51 | + |
| 52 | + |
0 commit comments