### What should I do if garbled characters and segmentation faults occur during hb installation?
#### Garbled Characters and Segmentation Faults
-**Symptom**
-**Symptom**
Garbled characters and segmentation faults occur during the execution of the **python3 -m pip install --user ohos-build** command.
After the **python3 -m pip install --user ohos-build** command is executed, garbled characters and segmentation faults occur.
-**Possible Causes**
-**Possible Causes**
pip is of an early version.
The pip version does not meet requirements.
-**Solution**
-**Solution**
Upgrade pip.
Run the following command to upgrade pip:
```
```
python3 -m pip install -U pip
python3 -m pip install -U pip
```
```
### What should I do if the message "cannot import 'sysconfig' from 'distutils'" is displayed during hb installation?
#### "cannot import 'sysconfig' from 'distutils'"
-**Symptom**
-**Symptom**
The message "cannot import 'sysconfig' from 'distutils'" is displayed during the execution of the **python3 -m pip install --user ohos-build** command.
During the execution of **python3 -m pip install --user ohos-build**, the following information is displayed:<br>cannot import 'sysconfig' from 'distutils'
-**Possible Causes**
-**Possible Causes**
The **distutils** module is unavailable.
The **distutils** module is unavailable.
-**Solution**
-**Solution**
Install **distutils**.
Run the following command to install **distutils**:
```
```
sudo apt-get install python3.8-distutils
sudo apt-get install python3.8-distutils
```
```
### What should I do if the message "module 'platform' has no attribute 'linux_distribution'" is displayed during hb installation?
#### "module 'platform' has no attribute 'linux_distribution'"
-**Symptom**
-**Symptom**
The message "module 'platform' has no attribute 'linux_distribution'" is displayed during the execution of the **python3 -m pip install --user ohos-build** command.
During the execution of **python3 -m pip install --user ohos-build**, the following information is displayed:<br>module 'platform' has no attribute 'linux\_distribution'
### What should I do if the message "Could not find a version that satisfies the requirement ohos-build" is displayed during hb installation?
#### "Could not find a version that satisfies the requirement ohos-build"
-**Symptom**
-**Symptom**
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.
During the execution of **python3 -m pip install --user ohos-build**, the following information is displayed:<br>Could not find a version that satisfies the requirement ohos-build
-**Possible Causes**
-**Possible Causes**
The installation fails due to poor network connectivity.
The installation fails due to poor network connectivity.
-**Solution**
-**Solution**
1. Ensure that your computer has a good network connection. If the network connection is unstable, rectify the network fault and reinstall hb.
1. Check that your computer has a good network connection. If the network connection is unstable, rectify the network fault and reinstall hb.
2. If the network is functional, run the following commands to install hb by specifying a temporary PyPI source:
2. If the network is functional, run the following commands to install hb by specifying a temporary PyPI source:
### What should I do if the message "configure: error: no acceptable C compiler found in $PATH" is displayed during Python 3 installation?
#### "configure: error: no acceptable C compiler found in $PATH"
-**Symptom**
-**Symptom**
The following error occurs during Python 3 installation:
The following informaton is displayed during the Python 3 installation process:
```
```
configure: error: no acceptable C compiler found in $PATH. See 'config.log' for more details
configure: error: no acceptable C compiler found in $PATH. See 'config.log' for more details
```
```
-**Possible Causes**
-**Possible Causes**
**gcc** is not installed.
GCC is not installed.
-**Solution**
-**Solution**
1. Run the **apt-get install gcc** command to install **gcc** online.
1. Run the **apt-get install gcc** command to install GCC online.
2. After the installation, reinstall Python 3.
2. Install Python 3.
### What should I do if the message "-bash: make: command not found is displayed" during Python 3 installation?
#### "-bash: make: command not found"
-**Symptom**
-**Symptom**
The following error occurs during Python 3 installation:
The following information is displayed during the Python 3 installation process:
```
```
-bash: make: command not found
-bash: make: command not found
```
```
-**Possible Causes**
-**Possible Causes**
**Make** is not installed.
make is not installed.
-**Solution**
-**Solution**
1. Run the **apt-get install make** command to install make online.
2. Install Python 3.
1. Run the **apt-get install make** command to install Make online.
2. After the installation, reinstall Python 3.
### What should I do if the message **zlib not available** is displayed during Python 3 installation?
#### "zlib not available"
-**Symptom**
-**Symptom**
The following error occurs during Python 3 installation:
The following information is displayed during the Python 3 installation process:
```
```
zipimport.ZipImportError: can't decompress data; zlib not available
zipimport.ZipImportError: can't decompress data; zlib not available
```
```
-**Possible Causes**
-**Possible Causes**
**zlib** is not installed.
**zlib** is not installed.
-**Solution**
-**Solution**
1. Install zlib online or offline.
Online installation:
Run the **apt-get install zlib** command to install zlib online.
Offline installation:
1. Download zlib from http://www.zlib.net/.
Solution 1: Run the **apt-get install zlib** command to install **zlib** online.
![](figures/download-zlib.png)
Solution 2: If the software source does not contain **zlib**, download the source code from <xrefhref="http://www.zlib.net/"scope="external"class="- topic/xref "id="xref17252104445818">http://www.zlib.net/</xref>.
@@ -11,27 +11,27 @@ FAQs are used to help developers solve problems frequently encountered during de
...
@@ -11,27 +11,27 @@ FAQs are used to help developers solve problems frequently encountered during de
- hb installation
- hb installation
-[What should I do if garbled characters and segmentation faults occur during hb installation?](../faqs/faqs-environment-setup.md)
-[Garbled Characters and Segmentation Faults](../faqs/faqs-environment-setup.md)
-[What should I do if the message "cannot import 'sysconfig' from 'distutils'" is displayed during hb installation?](../faqs/faqs-environment-setup.md)
-["cannot import 'sysconfig' from 'distutils'"](../faqs/faqs-environment-setup.md)
-[What should I do if the message "module 'platform' has no attribute 'linux_distribution'" is displayed during hb installation?](../faqs/faqs-environment-setup.md)
-["module 'platform' has no attribute 'linux_distribution'"](../faqs/faqs-environment-setup.md)
-[What should I do if the message "Could not find a version that satisfies the requirement ohos-build" is displayed during hb installation?](../faqs/faqs-environment-setup.md)
-["Could not find a version that satisfies the requirement ohos-build"](../faqs/faqs-environment-setup.md)
- Python3 Installation
- Python3 Installation
-[What should I do if the message "configure: error: no acceptable C compiler found in $PATH" is displayed during Python 3 installation?](../faqs/faqs-environment-setup.md)
-["configure: error: no acceptable C compiler found in $PATH"](../faqs/faqs-environment-setup.md)
-[What should I do if the message "-bash: make: command not found" is displayed during Python 3 installation?](../faqs/faqs-environment-setup.md)
-["-bash: make: command not found"](../faqs/faqs-environment-setup.md)
-[What should I do if the message "zlib not available" is displayed during Python 3 installation?](../faqs/faqs-environment-setup.md)
-["zlib not available"](../faqs/faqs-environment-setup.md)
-[What should I do if the message "No module named 'Crypto'" is displayed during the build process?](../faqs/faqs-environment-setup.md)
-["No module named '_ctypes'"](../faqs/faqs-environment-setup.md)
-[What should I do when an error with lsb_release occurs during kconfiglib installation?](../faqs/faqs-environment-setup.md)
-[lsb_release Error During kconfiglib Installation](../faqs/faqs-environment-setup.md)
-[What should I do if the message "ImportError: No module named apt_pkg" is displayed during the execution of an unidentifiable command?](../faqs/faqs-environment-setup.md)
-["ImportError: No module named apt_pkg"](../faqs/faqs-environment-setup.md)