WARNING
env v2.0 and env-windows v2.0 only FULL SUPPORT RT-Thread > v5.1.0 or master branch. if you work on RT-Thread <= v5.1.0, please use env v1.5.x for linux, env-windows v1.5.x for windows
env v2.0 has made the following important changes:
- Upgrading Python version from v2 to v3
- Replacing kconfig-frontends with Python kconfiglib
env v2.0 require python kconfiglib (install by
pip install kconfiglib), but env v1.5.x confilt with kconfiglib (please runpip uninstall kconfiglib)
How to install Env Tool with QEMU simulator in Ubuntu
# 中国大陆网络:
wget https://gitee.com/RT-Thread-Mirror/env/raw/master/install_ubuntu.sh
# 其他地区网络:
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
rm install_ubuntu.sh
请根据自身网络地区选择对应的下载地址来下载安装脚本。安装脚本会自动识别网络区域,使用相应镜像下载后续仓库,完成后将仓库远程地址统一设为 GitHub。
Run source ~/.env/env.sh to activate Env. The script creates and activates its Python virtual environment on first use. To activate Env automatically, add this command to ~/.bashrc.
Please see: https://github.com/RT-Thread/rt-thread/blob/master/documentation/env/env.md#bsp-configuration-menuconfig
Tested on the following version of PowerShell:
- PSVersion 5.1.22621.963
- PSVersion 5.1.19041.2673
您需要以管理员身份运行 PowerShell 来设置执行。(You need to run PowerShell as an administrator to set up execution.)
在 PowerShell 中执行(Execute the command in PowerShell):
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_windows.ps1 -O install_windows.ps1
set-executionpolicy remotesigned
.\install_windows.ps1安装脚本会自动识别网络区域,使用相应镜像下载仓库,完成后将仓库远程地址统一设为 GitHub。
注意:
- Powershell要以管理员身份运行。
- 将其设置为 remotesigned 后,您可以作为普通用户运行 PowerShell。( After setting it to remotesigned, you can run PowerShell as a normal user.)
- 一定要关闭杀毒软件,否则安装过程可能会被杀毒软件强退
Run ~/.env/env.ps1 to activate Env. The script creates and activates its Python virtual environment on first use. To activate Env automatically, add ~/.env/env.ps1 to your PowerShell profile.