I have an issue with installing pymsql
, any of you had a similar case?
I've found the similar issue to my for M1 user Link
Also I've try:
Upgrade pip with: python -m pip install --upgrade pip
Upgrade wheel with: pip install --upgrade wheel
Upgrade setuptools with: pip install --upgrade setuptools
When I try install that then I received:
Collecting pymssql
Using cached pymssql-2.2.2.tar.gz (170 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: startedNote: you may need to restart the kernel to use updated packages.
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: pymssql
Building wheel for pymssql (pyproject.toml): started
ERROR: Command errored out with exit status 1:
command: 'C:\Users\mikol\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\mikol\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\mikol\AppData\Local\Temp\tmpli4438o6'
cwd: C:\Users\mikol\AppData\Local\Temp\pip-install-f4z0veo1\pymssql_f17e29cc25734af0a975be16add0d1d8
Complete output (23 lines):
setup.py: platform.system() => Windows
setup.py: platform.architecture() => ('64bit', 'WindowsPE')
setup.py: include_dirs => []
setup.py: library_dirs => []
running bdist_wheel
running build Building wheel for pymssql (pyproject.toml): finished with status 'error'
Failed to build pymssql
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\pymssql
copying src\pymssql\__init__.py -> build\lib.win-amd64-3.10\pymssql
running build_ext
cythoning src\pymssql\_mssql.pyx to src\pymssql\_mssql.c
cythoning src\pymssql\_pymssql.pyx to src\pymssql\_pymssql.c
building 'pymssql._mssql' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\src
creating build\temp.win-amd64-3.10\Release\src\pymssql
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\mikol\AppData\Local\Programs\Python\Python310\include -IC:\Users\mikol\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcsrc\pymssql\_mssql.c /Fobuild\temp.win-amd64-3.10\Release\src\pymssql\_mssql.obj -DMSDBLIB
_mssql.c
src\pymssql\_mssql.c(682): fatal error C1083: Nie moľna otworzy† pliku do\x88Ącz: 'sqlfront.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for pymssql
ERROR: Could not build wheels for pymssql, which is required to install pyproject.toml-based projects
Any suggestions on how to fix it'll be appreciated a lot.
.whl
file, and need not build a wheel for pymssql. Could you try to reinstall it without cache?pip --no-cache-dir install pymssql
– Imitate