I was able to install the n-2 version using the below command:
python3 -m pip install PyMSSQL
Below is the complete output
Collecting PyMSSQL
Using cached pymssql-2.3.2.tar.gz (184 kB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ttjt4n72/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli
cwd: None
Complete output (12 lines):
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.6/site-packages/pip/main.py", line 27, in
"ignore", category=DeprecationWarning, module=".*packaging\.version"
File "/usr/lib64/python3.6/warnings.py", line 131, in filterwarnings
import re
File "/usr/lib64/python3.6/re.py", line 142, in
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
WARNING: Discarding https://files.pythonhosted.org/packages/81/c8/2ce5b171581c2e4d5d9726aaa805eb01febc7ed70a3bf686e1e0f5501b07/pymssql-2.3.2.tar.gz#sha256=18089641b687be1ebd0f64f0d1ff977478a397ffa1af372bdf10dbec29cf6d2e (from https://pypi.org/simple/pymssql/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ttjt4n72/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli Check the logs for full command output.
Downloading pymssql-2.3.1.tar.gz (186 kB)
|████████████████████████████████| 186 kB 9.2 MB/s
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hve9gham/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli
cwd: None
Complete output (12 lines):
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.6/site-packages/pip/main.py", line 27, in
"ignore", category=DeprecationWarning, module=".*packaging\.version"
File "/usr/lib64/python3.6/warnings.py", line 131, in filterwarnings
import re
File "/usr/lib64/python3.6/re.py", line 142, in
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
WARNING: Discarding https://files.pythonhosted.org/packages/30/66/f98a16e1db6592b9ab7fa85a3cb5542b4304178b6ad67928e69927590493/pymssql-2.3.1.tar.gz#sha256=ddee15c4c193e14c92fe2cd720ca9be1dba1e0f4178240380b8f5f6f00da04c6 (from https://pypi.org/simple/pymssql/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hve9gham/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=54.0' 'setuptools_scm[toml]>=5.0' 'wheel>=0.36.2' 'Cython>=3.0.10' tomli Check the logs for full command output.
Downloading pymssql-2.3.0-cp36-cp36m-manylinux_2_28_x86_64.whl (4.5 MB)
|████████████████████████████████| 4.5 MB 90.3 MB/s
Installing collected packages: PyMSSQL
Successfully installed PyMSSQL-2.3.0