shit I forget this ubuntu doesn't have option to input chinese
reference:https://proj.org/install.html
reference:https://pyproj4.github.io/pyproj/stable/installation.html
BACKGROUND: Xavier (ubuntu18.04) python3.6.9
Before we install pyproj in ubuntu
1. install proj
sudo apt-get install proj-bin
In this way you will install proj4.9.3, and it is not fit for pyproj. Installing pyproj needs PROJ in 7.2.0(pip -v is 20.1)
2.install proj7.2.0
2.1 install sqlite3 first
make sure that the version of sqlite3 is higher than 3.11
sudo apt-get install sqlite3
2.2 install proj7.2.0
firstly, download a proj7.2.0.tar.gz
click here to download: https://download.youkuaiyun.com/download/qq_42321822/13453242
tar -xvzf proj7.2.0.tar.gz
cd proj-7.2.0
mkdir build
cd build
cmake ..
cmake --build .
sudo cmake --build . --target install (note: input this line within /build/)
Now, check your installation
ctest
and
projsync --system-directory
After this, input proj to check your proj's version
it will show as 7.2.0
3.install pyproj3.0.0.post1
pip install pyproj
本文详细介绍了如何在Ubuntu 18.04上正确安装PyProj,并确保其依赖的PROJ版本为7.2.0的过程。首先需要安装特定版本的PROJ库,包括下载源码包并进行编译安装,最后通过pip安装PyProj 3.0.0.post1版本。
1925

被折叠的 条评论
为什么被折叠?



