Guide to Configuring a Meteorological Python Environment in an Offline Network

Guide to Configuring a Meteorological Python Environment in an Offline Network (Based on Anaconda)

This guide is suitable for the Anaconda + VSCode development environment, helping users quickly set up the required Python environment for meteorological data analysis without internet access.

📦 Project Name

Configuration of the Meteorological Python Environment (MeteoPy310)

Main Purpose: Pre-install commonly used libraries for meteorological data processing and visualization, including xarray, numpy, meteva, cartopy, matplotlib, etc., to meet the needs of reading, processing, and visualizing meteorological data.

1. Install Anaconda

Guide to Configuring a Meteorological Python Environment in an Offline Network

1. Installation sequence: Next -> I Agree -> All users ->

2. Change the installation path to a drive other than C:

Guide to Configuring a Meteorological Python Environment in an Offline Network

3. Check all boxes √, then click install. It may take a long time, and after installation, click the Windows key to see the Anaconda folder.

Guide to Configuring a Meteorological Python Environment in an Offline Network

Note: Do not install on the C drive.

📁 2. Extract the Virtual Environment Package

  1. Virtual environment package:<span>MeteoPy310.tar.gz <img alt="Guide to Configuring a Meteorological Python Environment in an Offline Network" src="https://boardor.com/wp-content/uploads/2025/11/25152543-774f-4129-815b-e972333c84b5.png"/></span>Extract to the path S:\anaconda\envs\MeteoPy310. S:\anaconda (your installation path)

    Guide to Configuring a Meteorological Python Environment in an Offline Network

  2. Check the virtual environment: Click Powershell and enter conda env list to display: xxx:\anaconda\envs\MeteoPy310, indicating the environment was installed successfully; enter conda activate MeteoPy310; enter python, and the content shown in the following image indicates the environment is configured successfully.

    Guide to Configuring a Meteorological Python Environment in an Offline Network

Guide to Configuring a Meteorological Python Environment in an Offline Network

3. Configure Jupyter Path

  1. Open conda Powershell and enter jupyter notebook --generate-configGuide to Configuring a Meteorological Python Environment in an Offline Network
  2. Locate the file jupyter_notebook_config.py based on the path, and open it with Notepad.Guide to Configuring a Meteorological Python Environment in an Offline Network
  3. After opening the file, press Ctrl+F to find #c.NotebookApp.notebook_dir, replace it with your defined folder path. For example, r'D:\jupyter_file', write it as r’your_path’, and remove the # comment.Guide to Configuring a Meteorological Python Environment in an Offline Network
  4. Right-click on the Jupyter Notebook file locationGuide to Configuring a Meteorological Python Environment in an Offline NetworkRight-click on Jupyter Notebook, find properties, and delete the %xxxxxx% field from the properties.Guide to Configuring a Meteorological Python Environment in an Offline Network

4. Start the Jupyter Kernel in the Virtual Environment

Run the following command in conda Powershell to register this virtual environment in Jupyter Notebook:

conda activate MeteoPy310
python -m ipykernel install --user --name=MeteoPy310 --display-name="MeteoPy310"

🖥️ 5. Configure the VSCode Editing Environment

1. Install VSCode

Guide to Configuring a Meteorological Python Environment in an Offline Network

2. Install Recommended Extensions (in VSCodeexecute) follow the steps below to prepare for installing extensionsextensions

Guide to Configuring a Meteorological Python Environment in an Offline Network

Install the following extensions

Guide to Configuring a Meteorological Python Environment in an Offline Network

3. Start Writing Code

1. Open the folder for the jupyter file path, D:\jupyter_file

Guide to Configuring a Meteorological Python Environment in an Offline Network

2. Create a new file named test.ipynb under jupyter_file

Guide to Configuring a Meteorological Python Environment in an Offline Network

Click +code to write the first test code, print("Hello World")

Guide to Configuring a Meteorological Python Environment in an Offline Network

Click select kernel to set the virtual environment to MeteoPy310

Guide to Configuring a Meteorological Python Environment in an Offline Network

After selecting the Python environment (MeteoPy310), click the cell with print('Hello World'), then press shift+enter (enter key) to run the code block.

📌 Note

The MeteoPy310 Python environment has already installed various third-party libraries required for meteorology, such as: xarray, numpy, meteva, cartopy, matplotlib, etc., which can meet the needs of meteorological data processing and visualization work.

All installation package tools and plugins are ready; please provide feedback in the group if needed.

Guide to Configuring a Meteorological Python Environment in an Offline Network

There is also a beginner’s book on Python.

Guide to Configuring a Meteorological Python Environment in an Offline Network

Years of organized meteorological and programming-related websites, tools, bookmarks (journals, reanalysis data sources, programming resources, etc.)

Guide to Configuring a Meteorological Python Environment in an Offline Network

Leave a Comment