---
title: 安装environment-modules依赖后，如何使用module命令？
description: "安装environment-modules依赖后，如何使用module命令？"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/trouble/hpc_hmpi_faq_0001.html
sourcePath: /source/zh/kunpenghpcs/hpckit/trouble/hpc_hmpi_faq_0001.html
indexId: fb9cb8c55a3dc4e56a2ee22a6487bd1c7d799eec2c362078c20885d6fe18721160
---
# 安装environment-modules依赖后，如何使用module命令？

#### 问题

安装environment-modules依赖后，如何使用module命令？


#### 回答

安装environment-modules依赖后，执行以下命令，加载modules环境变量。

- Ubuntu操作系统

```
source /usr/share/modules/init/bash
```


- 其他操作系统

```
source /usr/share/Modules/init/bash
```
