# ModuleNotFoundError: No module named 'mysql' in Python 3.10.0 (default, Nov 6 2021, 14:56:25) \[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)\] on linux

**URL:** <https://discuss.python.org/t/modulenotfounderror-no-module-named-mysql-in-python-3-10-0-default-nov-6-2021-1425-gcc-4-8-5-20150623-red-hat-4-8-5-44-on-linux/11823>\
**Category:** Python Help\
**Tags:** help\
**Created:** [November 8, 2021, 11:40pm UTC](https://discuss.python.org/t/modulenotfounderror-no-module-named-mysql-in-python-3-10-0-default-nov-6-2021-1425-gcc-4-8-5-20150623-red-hat-4-8-5-44-on-linux/11823 "2021-11-08T23:40:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tiran](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/tiran/32/48_2.png) [@tiran](https://discuss.python.org/u/tiran)\
**Post date:** [November 10, 2021, 4:25pm UTC](https://discuss.python.org/t/modulenotfounderror-no-module-named-mysql-in-python-3-10-0-default-nov-6-2021-1425-gcc-4-8-5-20150623-red-hat-4-8-5-44-on-linux/11823/5 "2021-11-10T16:25:54Z")

</div>

The CentOS 7 `openssl11` package is currently not supported. It places files in non-standard locations and uses the non-standard names for pkg-config modules (e.g. `openssl11.pc`).

**Update**

You could patch the `configure` script and force it to use `openssl11` module:

```auto
sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure

```

```auto
yum install -y epel
yum install -y yum-utils make openssl11-devel
yum-builddep -y python3

```

---

_[View the full topic](https://discuss.python.org/t/modulenotfounderror-no-module-named-mysql-in-python-3-10-0-default-nov-6-2021-1425-gcc-4-8-5-20150623-red-hat-4-8-5-44-on-linux/11823)._
