Issue
Unable to install mysqlclient using pip in the virtual environment for Python 3.8.
unable to execute '/opt/rh/devtoolset-7/root/usr/bin/gcc': No such file or directory
error: command '/opt/rh/devtoolset-7/root/usr/bin/gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: .... Check the logs for full command output.
Environment
- Any CloudLinux OS version
- Python Selector
Solution
1. If the control panel is cPanel, enable compilers:
2. If the aforementioned step has already been performed, run the following commands:
yum install alt-python38-devel cloudlinux-scl-release -y && yum install devtoolset-7
cagefsctl --force-update && cagefsctl -M
3. Then enter the virtual environment and install MySQL client:
pip install mysqlclient
Cause
Missing libraries and compilers.
Comments
0 comments
Please sign in to leave a comment.