In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to install Cartopy and PyNGL,PyNio", the content is simple and easy to understand, organized clearly, I hope to help you solve doubts, let Xiaobian lead you to study and learn "how to install Cartopy and PyNGL,PyNio" this article bar.
Since the computer has been reinstalled with the operating system, everything inside is gone, so the software has been reinstalled, and some libraries need to be reinstalled, including cartopia (under win10 environment).
Before, because we need to use the cartopy library, we have to install it. So after looking for some methods on the Internet, you can install them, download the packages you need, install the dependency packages in advance, pip can, and then install cartopy:
In the later use, found that when using some vector data can not be used, it is not downloaded natural earth data, so download it, also found some tutorials on the Internet, download the data into the physical directory below, download the data need to remove the beginning of the ne_these three characters, delete one by one is very troublesome, just use os library to do it:
import os
for file in os.listdir(r'C:\Users\DELL\.local\share\cartopy\shapefiles\natural_earth\physical\natural_earth_vector\110m_cultural'): print(file) if file[:3] == 'ne_': name = file.replace('ne_','') print(name) name_x = name os.chdir(r'C:\Users\DELL\.local\share\cartopy\shapefiles\natural_earth\physical\natural_earth_vector\110m_cultural') os.rename(file,name_x)
The original data name looks like this:
The revised version looks like this:
It'll only take a few seconds.
Next tried to install PyNGL and PyNio, installed in the VM virtual machine, installed MacOS 10.15 system on the VM, the first time to install, using conda has set up the environment, set up the interpreter found import can not, guess there is a problem, upset, actually deleted the environment built, and then ready to build again, the result is not good, has been reporting errors (solving environment: keep turning ah, whoosh, I f * ck, I knew earlier I would not delete the first built environment)
That's all for "How to install Cartopy and PyNGL,PyNio", thanks for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.