我要评分
获取效率
正确性
完整性
易理解

Creating a Python 2 Environment on the Kunpeng-based Kylin OS

The Python 2 environment is required due to software installation requirements.

  1. Create a new environment named py27 and specify Python 2.7 as the runtime environment.
    conda create -n py27 python2.7
  2. Activate the py27 environment.
    conda activate py27
  3. Check the Python version.
    python --version

  4. To exit the py27 environment, run the following command:
    conda deactivate