LZN's Blog CodePlayer

Install metpy in a new conda environment

2020-05-11
LZN

I used the default environment to install metpy with:

conda install metpy

got errors.

TypeError: find_intersections takes 5 parameters, but 3 units were passed

Following this post. The issue seems to be a specific version dependency issue. In conda, the metpy is version 0.11, while version 0.12 solves the problem.

Here we just create a new conda environment for metpy.

conda create -n metpy python=3.7

Use pip install to install the metpy. After that, we found the cartopy need to be installed. Then, everything goes fine.

Example figure:

YYpWrV.jpg

CartoPy figure:

Yt1kKP.jpg

Updated 2020-05-11


Comments

Content