I am trying to install cryptography, using Windows 10 OS, however it keeps erroring, unable to build the wheel for cffi.
Collecting cryptography
Using cached cryptography-35.0.0-cp36-abi3-win_amd64.whl (2.1 MB)
Collecting cffi>=1.12
Using cached cffi-1.14.6.tar.gz (475 kB)
Requirement already satisfied: pycparser in c:\users\alexf\appdata\local\programs\python\python310\lib\site-package
s (from cffi>=1.12->cryptography) (2.20)
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\alexf\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptoo
ls, tokenize; sys.argv[0] = '"'"'C:\\Users\\alexf\\AppData\\Local\\Temp\\pip-install-x7mxn55y\\cffi_7273550c7112440
399311ad24099a7b4\\setup.py'"'"'; __file__='"'"'C:\\Users\\alexf\\AppData\\Local\\Temp\\pip-install-x7mxn55y\\cffi_
7273550c7112440399311ad24099a7b4\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.ex
ists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'
"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\alexf\AppData
\Local\Temp\pip-wheel-q8b5b_9v'
cwd: C:\Users\alexf\AppData\Local\Temp\pip-install-x7mxn55y\cffi_7273550c7112440399311ad24099a7b4\
Complete output (37 lines):
_configtest.c
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\cffi
copying cffi\api.py -> build\lib.win-amd64-3.10\cffi
copying cffi\backend_ctypes.py -> build\lib.win-amd64-3.10\cffi
copying cffi\cffi_opcode.py -> build\lib.win-amd64-3.10\cffi
copying cffi\commontypes.py -> build\lib.win-amd64-3.10\cffi
copying cffi\cparser.py -> build\lib.win-amd64-3.10\cffi
copying cffi\error.py -> build\lib.win-amd64-3.10\cffi
copying cffi\ffiplatform.py -> build\lib.win-amd64-3.10\cffi
copying cffi\lock.py -> build\lib.win-amd64-3.10\cffi
copying cffi\model.py -> build\lib.win-amd64-3.10\cffi
copying cffi\pkgconfig.py -> build\lib.win-amd64-3.10\cffi
copying cffi\recompiler.py -> build\lib.win-amd64-3.10\cffi
copying cffi\setuptools_ext.py -> build\lib.win-amd64-3.10\cffi
copying cffi\vengine_cpy.py -> build\lib.win-amd64-3.10\cffi
copying cffi\vengine_gen.py -> build\lib.win-amd64-3.10\cffi
copying cffi\verifier.py -> build\lib.win-amd64-3.10\cffi
copying cffi\__init__.py -> build\lib.win-amd64-3.10\cffi
copying cffi\_cffi_include.h -> build\lib.win-amd64-3.10\cffi
copying cffi\parse_c_type.h -> build\lib.win-amd64-3.10\cffi
copying cffi\_embedding.h -> build\lib.win-amd64-3.10\cffi
copying cffi\_cffi_errors.h -> build\lib.win-amd64-3.10\cffi
running build_ext
building '_cffi_backend' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\c
creating build\temp.win-amd64-3.10\Release\c\libffi_msvc
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c
/nologo /Ox /W3 /GL /DNDEBUG /MD -Ic/libffi_msvc -IC:\Users\alexf\AppData\Local\Programs\Python\Python310\include
-IC:\Users\alexf\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2
019\Community\VC\Tools\MSVC\14.26.28801\include /Tcc/_cffi_backend.c /Fobuild\temp.win-amd64-3.10\Release\c/_cffi_b
ackend.obj
_cffi_backend.c
C:\Users\alexf\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open inc
lude file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801\\
bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: cffi, cryptography
Running setup.py install for cffi ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\alexf\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setupt
ools, tokenize; sys.argv[0] = '"'"'C:\\Users\\alexf\\AppData\\Local\\Temp\\pip-install-x7mxn55y\\cffi_7273550c71124
40399311ad24099a7b4\\setup.py'"'"'; __file__='"'"'C:\\Users\\alexf\\AppData\\Local\\Temp\\pip-install-x7mxn55y\\cff
i_7273550c7112440399311ad24099a7b4\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.
exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\
n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\alexf\App
Data\Local\Temp\pip-record-ye_cwvjn\install-record.txt' --single-version-externally-managed --compile --install-hea
ders 'C:\Users\alexf\AppData\Local\Programs\Python\Python310\Include\cffi'
cwd: C:\Users\alexf\AppData\Local\Temp\pip-install-x7mxn55y\cffi_7273550c7112440399311ad24099a7b4\
Complete output (37 lines):
_configtest.c
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\cffi
copying cffi\api.py -> build\lib.win-amd64-3.10\cffi
copying cffi\backend_ctypes.py -> build\lib.win-amd64-3.10\cffi
copying cffi\cffi_opcode.py -> build\lib.win-amd64-3.10\cffi
copying cffi\commontypes.py -> build\lib.win-amd64-3.10\cffi
copying cffi\cparser.py -> build\lib.win-amd64-3.10\cffi
copying cffi\error.py -> build\lib.win-amd64-3.10\cffi
copying cffi\ffiplatform.py -> build\lib.win-amd64-3.10\cffi
copying cffi\lock.py -> build\lib.win-amd64-3.10\cffi
copying cffi\model.py -> build\lib.win-amd64-3.10\cffi
copying cffi\pkgconfig.py -> build\lib.win-amd64-3.10\cffi
copying cffi\recompiler.py -> build\lib.win-amd64-3.10\cffi
copying cffi\setuptools_ext.py -> build\lib.win-amd64-3.10\cffi
copying cffi\vengine_cpy.py -> build\lib.win-amd64-3.10\cffi
copying cffi\vengine_gen.py -> build\lib.win-amd64-3.10\cffi
copying cffi\verifier.py -> build\lib.win-amd64-3.10\cffi
copying cffi\__init__.py -> build\lib.win-amd64-3.10\cffi
copying cffi\_cffi_include.h -> build\lib.win-amd64-3.10\cffi
copying cffi\parse_c_type.h -> build\lib.win-amd64-3.10\cffi
copying cffi\_embedding.h -> build\lib.win-amd64-3.10\cffi
copying cffi\_cffi_errors.h -> build\lib.win-amd64-3.10\cffi
running build_ext
building '_cffi_backend' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\c
creating build\temp.win-amd64-3.10\Release\c\libffi_msvc
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe
/c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic/libffi_msvc -IC:\Users\alexf\AppData\Local\Programs\Python\Python310\includ
e -IC:\Users\alexf\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio
\2019\Community\VC\Tools\MSVC\14.26.28801\include /Tcc/_cffi_backend.c /Fobuild\temp.win-amd64-3.10\Release\c/_cffi
_backend.obj
_cffi_backend.c
C:\Users\alexf\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open i
nclude file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801
\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\alexf\AppData\Local\Programs\Python\Python310\python.exe'
-u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\alexf\\AppData\\Local\\Temp\\pip-ins
tall-x7mxn55y\\cffi_7273550c7112440399311ad24099a7b4\\setup.py'"'"'; __file__='"'"'C:\\Users\\alexf\\AppData\\Local
\\Temp\\pip-install-x7mxn55y\\cffi_7273550c7112440399311ad24099a7b4\\setup.py'"'"';f = getattr(tokenize, '"'"'open'
"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"')
;code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' ins
tall --record 'C:\Users\alexf\AppData\Local\Temp\pip-record-ye_cwvjn\install-record.txt' --single-version-externall
y-managed --compile --install-headers 'C:\Users\alexf\AppData\Local\Programs\Python\Python310\Include\cffi' Check t
he logs for full command output.
I have OpenSSL version 1.1.1d, pip version 21.2.4, and am using Python 3.10, and the same error happens if I try to install cffi on it's own. I have no idea why this isn't working. If you need any more information I'll be happy to provide it.
Gonna answer this myself, because it's me being dumb.
cryptography, or possibly one of it's dependency libraries such as cffi, does not work with python 3.10 yet. Needed to go back to 3.9 for this to work.
Related
Collecting hunspell
Using cached hunspell-0.5.5.tar.gz (34 kB)
Building wheels for collected packages: hunspell
Building wheel for hunspell (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\shikhar\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\shikhar\AppData\Local\Temp\pip-install-gur9qi9n\hunspell_590196089ad44370bc048a58cf3d40dd\setup.py'"'"'; file='"'"'C:\Users\shikhar\AppData\Local\Temp\pip-install-gur9qi9n\hunspell_590196089ad44370bc048a58cf3d40dd\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\shikhar\AppData\Local\Temp\pip-wheel-5grngp_q'
cwd: C:\Users\shikhar\AppData\Local\Temp\pip-install-gur9qi9n\hunspell_590196089ad44370bc048a58cf3d40dd
Complete output (12 lines):
running bdist_wheel
running build
running build_ext
building 'hunspell' extension
creating build
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHUNSPELL_STATIC -IV:/hunspell-1.3.3/src/hunspell -IC:\Users\shikhar\AppData\Local\Programs\Python\Python310\include -IC:\Users\shikhar\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /Tphunspell.cpp /Fobuild\temp.win-amd64-3.10\Release\hunspell.obj /MT
cl : Command line warning D9025 : overriding '/MD' with '/MT'
hunspell.cpp
hunspell.cpp(20): fatal error C1083: Cannot open include file: 'hunspell.hxx': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit code 2
ERROR: Failed building wheel for hunspell
Running setup.py clean for hunspell
Failed to build hunspell
Installing collected packages: hunspell
Running setup.py install for hunspell ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\shikhar\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\shikhar\AppData\Local\Temp\pip-install-gur9qi9n\hunspell_590196089ad44370bc048a58cf3d40dd\setup.py'"'"'; file='"'"'C:\Users\shikhar\AppData\Local\Temp\pip-install-gur9qi9n\hunspell_590196089ad44370bc048a58cf3d40dd\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\shikhar\AppData\Local\Temp\pip-record-clyqesxf\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\shikhar\AppData\Local\Programs\Python\Python310\Include\hunspell'
cwd: C:\Users\shikhar\AppData\Local\Temp\pip-install-gur9qi9n\hunspell_590196089ad44370bc048a58cf3d40dd
Complete output (12 lines):
running install
running build
running build_ext
building 'hunspell' extension
creating build
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHUNSPELL_STATIC
-IV:/hunspell-1.3.3/src/hunspell -IC:\Users\shikhar\AppData\Local\Programs\Python\Python310\include -IC:\Users\shikhar\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /Tphunspell.cpp /Fobuild\temp.win-amd64-3.10\Release\hunspell.obj /MT
cl : Command line warning D9025 : overriding '/MD' with '/MT'
hunspell.cpp
hunspell.cpp(20): fatal error C1083: Cannot open include file: 'hunspell.hxx': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\shikhar\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\shikhar\AppData\Local\Temp\pip-install-gur9qi9n\hunspell_590196089ad44370bc048a58cf3d40dd\setup.py'"'"'; file='"'"'C:\Users\shikhar\AppData\Local\Temp\pip-install-gur9qi9n\hunspell_590196089ad44370bc048a58cf3d40dd\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\shikhar\AppData\Local\Temp\pip-record-clyqesxf\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\shikhar\AppData\Local\Programs\Python\Python310\Include\hunspell' Check the logs for full command output.
I tried an older version and successfully installed.
pip install hunspell==0.3.4
Collecting cyhunspell
Using cached CyHunspell-1.3.4.tar.gz (2.7 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: cacheman>=2.0.6 in c:\users\abdul rehman\appdata\local\programs\python\python310\lib\site-packages (from cyhunspell) (2.0.8)
Requirement already satisfied: future>=0.16.0 in c:\users\abdul rehman\appdata\local\programs\python\python310\lib\site-packages (from cacheman>=2.0.6->cyhunspell) (0.18.2)
Requirement already satisfied: psutil>=2.1.0 in c:\users\abdul rehman\appdata\roaming\python\python310\site-packages (from cacheman>=2.0.6->cyhunspell) (5.9.4)
Requirement already satisfied: six>=1.10.0 in c:\users\abdul rehman\appdata\roaming\python\python310\site-packages (from cacheman>=2.0.6->cyhunspell) (1.16.0)
Building wheels for collected packages: cyhunspell
Building wheel for cyhunspell (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [40 lines of output]
C:\Users\Abdul Rehman\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\hunspell
copying hunspell\platform.py -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\__init__.py -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\hunspell.pxd -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\thread.pxd -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\hunspell.pyx -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\hunspell.cpython-36m-x86_64-linux-gnu.so -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\thread.hpp -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\hunspell.cpp -> build\lib.win-amd64-cpython-310\hunspell
creating build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_AU.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_CA.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_GB.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_NZ.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_US.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_ZA.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\test.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_AU.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_CA.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_GB.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_NZ.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_US.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_ZA.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\test.dic -> build\lib.win-amd64-cpython-310\dictionaries
creating build\lib.win-amd64-cpython-310\libs
creating build\lib.win-amd64-cpython-310\libs\msvc
copying libs\msvc\libhunspell-msvc11-x64.lib -> build\lib.win-amd64-cpython-310\libs\msvc
copying libs\msvc\libhunspell-msvc11-x86.lib -> build\lib.win-amd64-cpython-310\libs\msvc
copying libs\msvc\libhunspell-msvc14-x64.lib -> build\lib.win-amd64-cpython-310\libs\msvc
copying libs\msvc\libhunspell-msvc14-x86.lib -> build\lib.win-amd64-cpython-310\libs\msvc
running build_ext
building 'hunspell.hunspell' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cyhunspell
Running setup.py clean for cyhunspell
Failed to build cyhunspell
Installing collected packages: cyhunspell
Running setup.py install for cyhunspell ... error
error: subprocess-exited-with-error
× Running setup.py install for cyhunspell did not run successfully.
│ exit code: 1
╰─> [42 lines of output]
C:\Users\Abdul Rehman\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running install
C:\Users\Abdul Rehman\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\hunspell
copying hunspell\platform.py -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\__init__.py -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\hunspell.pxd -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\thread.pxd -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\hunspell.pyx -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\hunspell.cpython-36m-x86_64-linux-gnu.so -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\thread.hpp -> build\lib.win-amd64-cpython-310\hunspell
copying hunspell\hunspell.cpp -> build\lib.win-amd64-cpython-310\hunspell
creating build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_AU.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_CA.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_GB.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_NZ.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_US.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_ZA.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\test.aff -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_AU.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_CA.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_GB.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_NZ.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_US.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\en_ZA.dic -> build\lib.win-amd64-cpython-310\dictionaries
copying dictionaries\test.dic -> build\lib.win-amd64-cpython-310\dictionaries
creating build\lib.win-amd64-cpython-310\libs
creating build\lib.win-amd64-cpython-310\libs\msvc
copying libs\msvc\libhunspell-msvc11-x64.lib -> build\lib.win-amd64-cpython-310\libs\msvc
copying libs\msvc\libhunspell-msvc11-x86.lib -> build\lib.win-amd64-cpython-310\libs\msvc
copying libs\msvc\libhunspell-msvc14-x64.lib -> build\lib.win-amd64-cpython-310\libs\msvc
copying libs\msvc\libhunspell-msvc14-x86.lib -> build\lib.win-amd64-cpython-310\libs\msvc
running build_ext
building 'hunspell.hunspell' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> cyhunspell
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
When I compiled a python script, this error shows.
Traceback (most recent call last):
File "bitcrack.py", line 41, in <module>
import MySQLdb
ImportError: No module named MySQLdb
I tried to install mysql-python. I need to use only Python 2.7.18 on windows 10.
Collecting mysql-python
Using cached MySQL-python-1.2.5.zip (108 kB)
Building wheels for collected packages: mysql-python
Building wheel for mysql-python (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'E:\Work\ecdsa-private-key-recovery\env\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\pc\\appdata\\local\\temp\\pip-install-auuahc\\mysql-python\\setup.py'"'"'; __file__='"'"'c:\\users\\pc\\appdata\\local\\temp\\pip-install-auuahc\\mysql-python\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
__file__, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\pc\appdata\local\temp\pip-wheel-v322tt'
cwd: c:\users\pc\appdata\local\temp\pip-install-auuahc\mysql-python\
Complete output (29 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
copying _mysql_exceptions.py -> build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-2.7\MySQLdb
creating build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-2.7\MySQLdb\constants
running build_ext
building '_mysql' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
C:\Users\PC\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" -IE:\Work\ecdsa-private-key-recovery\env\include -IE:\Work\ecdsa-private-key-recovery\env\PC /Tc_mysql.c /Fobuild\temp.win-amd64-2.7\Release\_mysql.obj /Zl
_mysql.c
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
error: command 'C:\\Users\\PC\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for mysql-python
Running setup.py clean for mysql-python
Failed to build mysql-python
Installing collected packages: mysql-python
Running setup.py install for mysql-python ... error
ERROR: Command errored out with exit status 1:
command: 'E:\Work\ecdsa-private-key-recovery\env\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\pc\\appdata\\local\\temp\\pip-install-auuahc\\mysql-python\\setup.py'"'"'; __file__='"'"'c:\\users\\pc\\appdata\\local\\temp\\pip-install-auuahc\\mysql-python\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\pc\appdata\local\temp\pip-record-t45lxp\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\Work\ecdsa-private-key-recovery\env\include\site\python2.7\mysql-python'
cwd: c:\users\pc\appdata\local\temp\pip-install-auuahc\mysql-python\
Complete output (29 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
copying _mysql_exceptions.py -> build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-2.7\MySQLdb
creating build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-2.7\MySQLdb\constants
running build_ext
building '_mysql' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
C:\Users\PC\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" -IE:\Work\ecdsa-private-key-recovery\env\include -IE:\Work\ecdsa-private-key-recovery\env\PC /Tc_mysql.c /Fobuild\temp.win-amd64-2.7\Release\_mysql.obj /Zl
_mysql.c
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
error: command 'C:\\Users\\PC\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'E:\Work\ecdsa-private-key-recovery\env\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\pc\\appdata\\local\\temp\\pip-install-auuahc\\mysql-python\\setup.py'"'"'; __file__='"'"'c:\\users\\pc\\appdata\\local\\temp\\pip-install-auuahc\\mysql-python\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\pc\appdata\local\temp\pip-record-t45lxp\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\Work\ecdsa-private-key-recovery\env\include\site\python2.7\mysql-python' Check the logs for full command output.
I tried in many ways. But it's not solved. Already installed MS VS Dev Tools. One questions: Do I have to run MySQL server to install this package? I appreciate your help.
I would suggest trying to use sqlalchemy (you could save the whole query which will of course be more complicated than the one in the example):
# Import sqlalchemy's create_engine() function
from sqlalchemy import create_engine
import pandas as pd
# Create the database engine
engine = create_engine("mssql+pyodbc://user:pass#dsn")
# Create a SQL query to load the entire table
query = """
SELECT *
FROM XXX;
"""
# Load with the SQL query
load = pd.read_sql(query, engine)
Please let me know if any issues.
My Python version is 2.7.15.
I have tried the pip install MySQL-python command, but it returned the following errors:
PS C:\Users\user\insertTable> pip install MySQL-python
Collecting MySQL-python
Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip
Installing collected packages: MySQL-python
Running setup.py install for MySQL-python ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\user\\appdata\\local\\temp\\pip-install-mlakyv\\MySQL-python\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\user\appdata\local\temp\pip-record-08sd4b\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
copying _mysql_exceptions.py -> build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-2.7\MySQLdb
creating build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-2.7\MySQLdb\constants
running build_ext
building '_mysql' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
C:\Users\user\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" -Ic:\python27\include -Ic:\python27\PC /Tc_mysql.c /Fobuild\temp.win-amd64-2.7\Release\_mysql.obj /Zl
_mysql.c
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
error: command 'C:\\Users\\user\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\user\\appdata\\local\\temp\\pip-install-mlakyv\\MySQL-python\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');
f.close();
exec(compile(code, __file__, 'exec'))"
install --record c:\users\user\appdata\local\temp\pip-record-08sd4b\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in c:\users\user\appdata\local\temp\pip-install-mlakyv\MySQL-python\
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I've only recently began learning Python, so I'm confused on what to do. Can anyone please help?
Trying to install module "psutil"
I'm usting Windows 10 and pypy 2.7 version
https://pypy.org/download.html
pypy -m pip install psutil
DEPRECATION: A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting psutil
Using cached https://files.pythonhosted.org/packages/1c/ca/5b8c1fe032a458c2c4bcbe509d1401dca9dda35c7fc46b36bb81c2834740/psutil-5.6.3.tar.gz
Installing collected packages: psutil
Running setup.py install for psutil ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files (x86)\pypy2.7-v7.1.1-win32\pypy.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\public\\documents\\wondershare\\creatortemp\\pip-install-orbh2p\\psutil\\setup.py'"'"'; __file__='"'"'c:\\users\\public\\documents\\wondershare\\creatortemp\\pip-install-orbh2p\\psutil\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\public\documents\wondershare\creatortemp\pip-record-58j8zq\install-record.txt' --single-version-externally-managed --compile
cwd: c:\users\public\documents\wondershare\creatortemp\pip-install-orbh2p\psutil\
Complete output (49 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\psutil
copying psutil\_common.py -> build\lib.win32-2.7\psutil
copying psutil\_compat.py -> build\lib.win32-2.7\psutil
copying psutil\_psaix.py -> build\lib.win32-2.7\psutil
copying psutil\_psbsd.py -> build\lib.win32-2.7\psutil
copying psutil\_pslinux.py -> build\lib.win32-2.7\psutil
copying psutil\_psosx.py -> build\lib.win32-2.7\psutil
copying psutil\_psposix.py -> build\lib.win32-2.7\psutil
copying psutil\_pssunos.py -> build\lib.win32-2.7\psutil
copying psutil\_pswindows.py -> build\lib.win32-2.7\psutil
copying psutil\__init__.py -> build\lib.win32-2.7\psutil
creating build\lib.win32-2.7\psutil\tests
copying psutil\tests\runner.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_aix.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_bsd.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_connections.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_contracts.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_linux.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_memory_leaks.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_misc.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_osx.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_posix.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_process.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_sunos.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_system.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_unicode.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_windows.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\__init__.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\__main__.py -> build\lib.win32-2.7\psutil\tests
running build_ext
building 'psutil._psutil_windows' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\psutil
creating build\temp.win32-2.7\Release\psutil\arch
creating build\temp.win32-2.7\Release\psutil\arch\windows
C:\Users\xxx\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_WINNT=0x0602 -D_AVAIL_WINVER_=0x0602 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -IC:\Program Files (x86)\pypy2.7-v7.1.1-win32\include /Tcpsutil/_psutil_common.c /Fobuild\temp.win32-2.7\Release\psutil/_psutil_common.obj
_psutil_common.c
psutil/_psutil_common.c(49) : error C2065: 'ESRCH' : undeclared identifier
psutil/_psutil_common.c(49) : error C2065: 'ESRCH' : undeclared identifier
psutil/_psutil_common.c(66) : warning C4013: 'PyErr_SetFromWindowsErrWithFilename' undefined; assuming extern returning int
psutil/_psutil_common.c(86) : error C2065: 'EACCES' : undeclared identifier
psutil/_psutil_common.c(86) : error C2065: 'EACCES' : undeclared identifier
error: command 'C:\\Users\\xxx\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files (x86)\pypy2.7-v7.1.1-win32\pypy.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\public\\documents\\wondershare\\creatortemp\\pip-install-orbh2p\\psutil\\setup.py'"'"'; __file__='"'"'c:\\users\\public\\documents\\wondershare\\creatortemp\\pip-install-orbh2p\\psutil\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\public\documents\wondershare\creatortemp\pip-record-58j8zq\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
enter image description here
I've already installed Microsoft Visual C++ Compiler for Python 2.7
https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
It looks like a missing #include <errno.h> somewhere. Is that include somehow on a conditional branch that is not included for pypy?
I've run following command in command line. Please see the execution and error at the end of the code:
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio
10.0\VC\BIN\cl .exe' failed with exit status 2
D:\Python34>pip install MySQL-python
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip
Installing collected packages: MySQL-python
Running setup.py install for MySQL-python
Complete output from command D:\Python34\python.exe -c "import setuptools, t
okenize;__file__='C:\\Users\\Irfan\\AppData\\Local\\Temp\\pip-build-i5dqkio1\\My
SQL-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).rea
d().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Irfan\A
ppData\Local\Temp\pip-v08vge52-record\install-record.txt --single-version-extern
ally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.4
copying _mysql_exceptions.py -> build\lib.win32-3.4
creating build\lib.win32-3.4\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win32-3.4\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.4\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.4\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.4\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.4\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.4\MySQLdb
creating build\lib.win32-3.4\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win32-3.4\MySQLdb\constan
ts
copying MySQLdb\constants\CR.py -> build\lib.win32-3.4\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.4\MySQLdb\const
ants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.4\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.4\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-3.4\MySQLdb\constant
s
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.4\MySQLdb\constants
running build_ext
building '_mysql' extension
creating build\temp.win32-3.4
creating build\temp.win32-3.4\Release
C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /
MD /W3 /GS- /DNDEBUG -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 "-IC:\
Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" -ID:\Python34\include
-ID:\Python34\include /Tc_mysql.c /Fobuild\temp.win32-3.4\Release\_mysql.obj /Z
l
_mysql.c
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':
No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl
.exe' failed with exit status 2
----------------------------------------
Command "D:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:
\\Users\\Irfan\\AppData\\Local\\Temp\\pip-build-i5dqkio1\\MySQL-python\\setup.py
';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record C:\Users\Irfan\AppData\Local\Temp\pi
p-v08vge52-record\install-record.txt --single-version-externally-managed --compi
le" failed with error code 1 in C:\Users\Irfan\AppData\Local\Temp\pip-build-i5dq
kio1\MySQL-python
MySQL-Python is not compatible with Python 3.4. Please use mysqlclient https://pypi.python.org/pypi/mysqlclient