My notes on how to install MovingPandas directly from PyPI without using Conda or Anaconda.
/home/myself/usr/local.Download, build, and install Python3.7,
be sure to include --enable-shared
along with the other configure flags
(such as --prefix=/home/myself/usr/local )
Consider also installng PostgreSQL v11 (not v12), PostGIS, and MobilityDB.
Note: Proj-6 and later are not compatible.
cd ~/pkgs
wget https://download.osgeo.org/proj/proj-5.2.0.tar.gz
tar zxvf proj-5.2.0.tar.gz
cd proj-5.2.0
./configure --prefix=/home/myself/usr/local
make
make install
Seemed to go ok. (I didn't download any of those extra data files (of datums) into the local data/ dir. I wonder if they were important.)
Install directly using pip:
~/usr/local/bin/pip3.7 install Cython --install-option="--no-cython-compile"
Running setup.py install for Cython ... done
Successfully installed Cython-0.29.15
Seemed to install ok.
Now we can install cartopy from sources.
This step depends on PKG_CONFIG_PATH pointing to the place where the proj.pc file is located.
export PKG_CONFIG_PATH=/home/myself/usr/local/lib/pkgconfig/
cd ~/pkgs
wget https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
tar zxvf Cartopy-0.17.0.tar.gz
cd Cartopy-0.17.0
~/usr/local/bin/python3.7 setup.py build_ext --inplace -I/home/myself/usr/local/include -L/home/myself/usr/local/lib
~/usr/local/bin/python3.7 setup.py install
Using /home/myself/usr/local/lib/python3.7/site-packages
Finished processing dependencies for Cartopy==0.17.0
It looks like it installed.
Note: sometimes install of cartopy was complaining about numpy being bad, but upon further analysis it seemed that the problem was really an invalid or missing Cython, and not anything to do with numpy.
Install of movingpandas via pip may pull down bokeh 2.0.0 which won't work, force use of the released (1.4.0) version:
/home/myself/local/bin/pip3.7 install bokeh==1.4.0
Collecting bokeh==1.4.0
...
Successfully installed bokeh-1.4.0
Ok, here goes...
~/usr/local/bin/pip3.7 install movingpandas
Successfully built movingpandas PyYAML tornado ...
Installing collected packages: ... movingpandas
and to see if it really worked:
~/usr/local/bin/python3.7
Python 3.7.3 (default, Mar 3 2020, 21:42:22)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import movingpandas
>>>
YIPEE!!!!!!!!!!