同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Question 1: What should I do when the message configure: error: no acceptable C compiler found in $PATH is displayed during Python 3 installation?
Symptom
Possible Causes
gcc is not installed.
Solutions
Run the apt-get install gcc command to install gcc online.
After the installation, reinstall Python 3.
Question 2: What should I do when the message -bash: make: command not found is displayed during Python 3 installation?
Symptom
Possible Causes
make is not installed.
Solutions
Run the apt-get install make command to install make online.
After the installation, reinstall Python 3.
Question 3: What should I do when the message zlib not available is displayed during Python 3 installation?
Symptom
Possible Causes
zlib is not installed.
Solutions
Method 1: Run the apt-get install zlib command to install zlib online.
Method 2: If the software source does not contain zlib, download the source code from http://www.zlib.net/ and install it offline.
Installation commands:
tar xvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make && make install
Question 4: What should I do when the message No module named '_ctypes' is displayed during Python 3 installation?
Symptom
Possible Causes
libffi and libffi-devel are not installed.
Solutions
Run the apt-get install libffi* -y command to install libffi and libffi-devel online.
After the installation, reinstall Python 3.
Question 5: What should I do when the message No module named 'Crypto' is displayed during compilation and building?
Symptom
Possible Causes
Crypto is not installed.
Solutions
Method 1: Run the pip3 install Crypto command to install Crypto online.
Method 2: Install Crypto offline.
Problem 6: What should I do when the message No module named 'ecdsa' is displayed during compilation and building?
Symptom
Possible Causes
ecdsa is not installed.
Solutions
Method 1: Run the pip3 install ecdsa command to install ecdsa online.
Method 2: Install ecdsa offline.
Question 7: What should I do when the message Could not find a version that satisfies the requirement six>=1.9.0 is displayed during compilation and building?
Symptom
Possible Causes
six is not installed.
Solutions
Method 1: Run the pip3 install six command to install six online.
Method 2: Install six offline.
Question 8: What should I do when the message cannot find -lgcc is displayed during compilation and building?
Symptom
Possible Causes
The PATH is incorrectly written by gcc_riscv32, as shown in the following figure. There is an extra slash (/).
Solutions
Modify the PATH by deleting the slash (/).
Question 9: What should I do when the message indicating Python cannot be found is displayed during compilation and building?
Symptom
Possible Cause 1: Python is not installed.
Solutions
Install Python by referring to Installing a Python Environment.
Possible Cause 2: The soft link that points to the Python does not exist in the usr/bin directory.
Solutions
Run the following command:
# cd /usr/bin/
# which python3
# ln -s /usr/local/bin/python3 python
# python --version
Example:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。