1# FAQs<a name="EN-US_TOPIC_0000001128470858"></a> 2 3- [What should I do if garbled characters and segmentation faults occur during hb installation?](#section411894616119) 4- [What should I do if the message "cannot import 'sysconfig' from 'distutils'" is displayed during hb installation?](#section629417571626) 5- [What should I do if the message "module 'platform' has no attribute 'linux\_distribution'" is displayed during hb installation?](#section10871523332) 6- [What should I do if the message "Could not find a version that satisfies the requirement ohos-build" is displayed during hb installation?](#section47351657163213) 7- [What should I do if the message "ImportError: No module named apt\_pkg" is displayed during the execution of an unidentifiable command?](#section159891252236) 8 9## What should I do if garbled characters and segmentation faults occur during hb installation?<a name="section411894616119"></a> 10 11- **Symptom** 12 13 Garbled characters and segmentation faults occur during the execution of the **python3 -m pip install --user ohos-build** command. 14 15 16- **Possible Causes** 17 18 pip is of an early version. 19 20- **Solutions** 21 22 Upgrade pip. 23 24 ``` 25 python3 -m pip install -U pip 26 ``` 27 28 29## What should I do if the message "cannot import 'sysconfig' from 'distutils'" is displayed during hb installation?<a name="section629417571626"></a> 30 31- **Symptom** 32 33 The message "cannot import 'sysconfig' from 'distutils'" is displayed during the execution of the **python3 -m pip install --user ohos-build** command. 34 35 36- **Possible Causes** 37 38 The **distutils** module is unavailable. 39 40- **Solutions** 41 42 Install **distutils**. 43 44 ``` 45 sudo apt-get install python3.8-distutils 46 ``` 47 48 49## What should I do if the message "module 'platform' has no attribute 'linux\_distribution'" is displayed during hb installation?<a name="section10871523332"></a> 50 51- **Symptom** 52 53 The message "module 'platform' has no attribute 'linux\_distribution'" is displayed during the execution of the **python3 -m pip install --user ohos-build** command. 54 55 56- **Possible Causes** 57 58 There is a compatibility issue of python3-pip. 59 60- **Solutions** 61 62 Reinstall pip. 63 64 ``` 65 sudo apt remove python3-pip 66 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py 67 python get-pip.py 68 ``` 69 70 71## What should I do if the message "Could not find a version that satisfies the requirement ohos-build" is displayed during hb installation?<a name="section47351657163213"></a> 72 73- **Symptom** 74 75 The message "Could not find a version that satisfies the requirement ohos-build" is displayed during the execution of the **python3 -m pip install --user ohos-build** command. 76 77 78- **Possible Causes** 79 80 The installation fails due to poor network connectivity. 81 82- **Solutions** 83 1. Ensure that your computer has a good network connection. If the network connection is unstable, rectify the network fault and reinstall hb. 84 2. If the network is functional, run the following commands to install hb by specifying a temporary PyPI source: 85 86 ``` 87 python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ohos-build 88 ``` 89 90 91 92## What should I do if the message "ImportError: No module named apt\_pkg" is displayed during the execution of an unidentifiable command?<a name="section159891252236"></a> 93 94- **Symptom** 95 96 The message "ImportError: No module named apt\_pkg" is displayed when an unidentifiable command is executed on the Linux server. 97 98 99- **Possible Causes** 100 101 There is a compatibility issue of python3-apt. 102 103- **Solutions** 104 105 Reinstall python3-apt. 106 107 ``` 108 sudo apt-get remove python3-apt 109 sudo apt-get install python3-apt 110 ``` 111 112 113