Write directory title here
1. Problem description
1. After checking the components and software packages in RT-Thread Studio or configuring with menuconfig, after running pkgs --update, the error pkgs --update is invalid? or no response.
2. Run pkgs —update under env without any output and response, just skip it
Two, the cause of the problem
In short, it is the compatibility problem of studio on some systems, mainly due to the problem of Python27. The compatibility problem can be summarized as follows:
platform/env_released/env/tools/Python27/DLLs
There is an incompatibility between the _ssl.pyd that comes with the Studio installation directory and the systempython27(platform/env_released/env/tools/Python27/)
There is a problem with the requests module under the Studio installation directory
Three, the solution
- First of all, make sure that the conda environment management tool or virtual environment tool is installed, which
conda
is the most convenient. - After installing conda, enter it in CMD
conda create -n py2_env python=2.7
, and the successfully created page is as shown in the figure below, which explains the creation of anpython27
interpreter-based python environment.
- Next activate the python environment, then enter the following commands to install
requests
andScons
.
conda activate py2_env
pip install requests
pip installl Scons
- For the core part, replace the python27 environment of the studio (path: under the Studio installation directory
platform/env_released/env/tools/Python27/
), and first find the virtual environment directory created by our conda as shown in the figure below. The above picture
showsConda
the created virtual environment directory.
The picture above shows the environment directory after the replacement studio python27
.