[BUG solution] RT-Thread studio update software package, error pkgs --update is invalid?

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.
insert image description here
2. Run pkgs —update under env without any output and response, just skip it
insert image description here

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/DLLsThere is an incompatibility between the _ssl.pyd that comes with the Studio installation directory and the system
  • python27(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 condais 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 an python27interpreter-based python environment.
    create success
  • Next activate the python environment, then enter the following commands to install requestsand Scons.
 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
    conda-python
    shows Condathe created virtual environment directory.

studio-python
The picture above shows the environment directory after the replacement studio python27.

Guess you like

Origin blog.csdn.net/qq_41866091/article/details/129765654