Unable to download mod_wsgi using pip install
Getting the below error-
100% |################################| 499kB 379kB/s
C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Installing collected packages: mod-wsgi
Running setup.py install for mod-wsgi
building 'mod_wsgi.server.mod_wsgi' extension
C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
Complete output from command C:\Python34\python.exe -c "import setuptools, tokenize;file='C:\Users\z003nsbe\AppData\Local\Temp\pip-build-8lso5mlc\mod-wsgi\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\z003nsbe\AppData\Local\Temp\pip-r5xt3gnf-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.4
creating build\lib.win32-3.4\mod_wsgi
copying src\__init__.py -> build\lib.win32-3.4\mod_wsgi
creating build\lib.win32-3.4\mod_wsgi\server
copying src\server\apxs_config.py -> build\lib.win32-3.4\mod_wsgi\server
copying src\server\environ.py -> build\lib.win32-3.4\mod_wsgi\server
copying src\server\__init__.py -> build\lib.win32-3.4\mod_wsgi\server
creating build\lib.win32-3.4\mod_wsgi\server\management
copying src\server\management\__init__.py -> build\lib.win32-3.4\mod_wsgi\server\management
creating build\lib.win32-3.4\mod_wsgi\server\management\commands
copying src\server\management\commands\runmodwsgi.py -> build\lib.win32-3.4\mod_wsgi\server\management\commands
copying src\server\management\commands\__init__.py -> build\lib.win32-3.4\mod_wsgi\server\management\commands
creating build\lib.win32-3.4\mod_wsgi\docs
copying docs\_build\html\__init__.py -> build\lib.win32-3.4\mod_wsgi\docs
creating build\lib.win32-3.4\mod_wsgi\images
copying images\__init__.py -> build\lib.win32-3.4\mod_wsgi\images
copying images\snake-whiskey.jpg -> build\lib.win32-3.4\mod_wsgi\images
running build_ext
building 'mod_wsgi.server.mod_wsgi' extension
C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
----------------------------------------
Command "C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\z003nsbe\\AppData\\Local\\Temp\\pip-build-8lso5mlc\\mod-wsgi\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\z003nsbe\AppData\Local\Temp\pip-r5xt3gnf-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\z003nsbe\AppData\Local\Temp\pip-build-8lso5mlc\mod-wsgi
Getting error code 1
Do you have Visual Studio installed on your Computer?
Run the same command from Visual studio developer prompt ( preferably after opening it as administrator). Read about visual studio command prompt here. https://learn.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs
Related
Running setup.py clean for mysqlclient
Failed to build mysqlclient
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\uaahacker\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\uaahacker\AppData\Local\Temp\pip-install-icjkjmap\mysqlclient_8b5f49f509624395ab7dd2c4d4a21457\setup.py'"'"'; file='"'"'C:\Users\uaahacker\AppData\Local\Temp\pip-install-icjkjmap\mysqlclient_8b5f49f509624395ab7dd2c4d4a21457\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\uaahacker\AppData\Local\Temp\pip-record-62876lx5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\uaahacker\appdata\local\programs\python\python38-32\Include\mysqlclient'
cwd: C:\Users\uaahacker\AppData\Local\Temp\pip-install-icjkjmap\mysqlclient_8b5f49f509624395ab7dd2c4d4a21457
Complete output (23 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\MySQLdb
copying MySQLdb_init_.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb_exceptions.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.8\MySQLdb
creating build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants_init_.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.8\MySQLdb\constants
running build_ext
building 'MySQLdb._mysql' 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/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\uaahacker\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\uaahacker\AppData\Local\Temp\pip-install-icjkjmap\mysqlclient_8b5f49f509624395ab7dd2c4d4a21457\setup.py'"'"'; file='"'"'C:\Users\uaahacker\AppData\Local\Temp\pip-install-icjkjmap\mysqlclient_8b5f49f509624395ab7dd2c4d4a21457\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\uaahacker\AppData\Local\Temp\pip-record-62876lx5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\uaahacker\appdata\local\programs\python\python38-32\Include\mysqlclient' Check the logs for full command output.
There is no package on pypi for the 32-bit version of Python. Only for 64-bit Python.
And if you install mysqlclient from there, naturally, sources that need to be compiled will be installed.
And for 32-bit Python, the compiled package is available at https://www.lfd.uci.edu/~gohlke/pythonlibs/.
it is literally telling you how to solve the ptoblem in the error
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/
just download visualstudio build tools
I was trying to install mod_wsgi , so i installed its prerequisites .
Python (3.7.4)
Microsoft Visual C++ Build tool (2015) Microsoft
Visual C++ 2015-2019 Redistributable (14.23.27820)
Xampp (for Apache 2.4)
But the on doing pip install mod_wsgi i got following errors
C:\Windows\system32>pip install mod_wsgi
Collecting mod_wsgi
Using cached https://files.pythonhosted.org/packages/26/03/a3ed5abc2e66c82c40b
0735c2f819c898d136879b00be4f5537126b6a4a4/mod_wsgi-4.6.7.tar.gz
Installing collected packages: mod-wsgi
Running setup.py install for mod-wsgi ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\taha.tauqir\appdata\local\programs\python\python37-32\py
thon.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\
\TAHA~1.TAU\\AppData\\Local\\Temp\\pip-install-_zkqbo33\\mod-wsgi\\setup.py'"'"'
; __file__='"'"'C:\\Users\\TAHA~1.TAU\\AppData\\Local\\Temp\\pip-install-_zkqbo3
3\\mod-wsgi\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);c
ode=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
__file__, '"'"'exec'"'"'))' install --record 'C:\Users\TAHA~1.TAU\AppData\Local\
Temp\pip-record-4uoq0nq8\install-record.txt' --single-version-externally-managed
--compile
cwd: C:\Users\TAHA~1.TAU\AppData\Local\Temp\pip-install-_zkqbo33\mod-ws
gi\
Complete output (33 lines):
c:\users\taha.tauqir\appdata\local\programs\python\python37-32\lib\distutils
\dist.py:274: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\mod_wsgi
copying src\__init__.py -> build\lib.win32-3.7\mod_wsgi
creating build\lib.win32-3.7\mod_wsgi\server
copying src\server\apxs_config.py -> build\lib.win32-3.7\mod_wsgi\server
copying src\server\environ.py -> build\lib.win32-3.7\mod_wsgi\server
copying src\server\__init__.py -> build\lib.win32-3.7\mod_wsgi\server
creating build\lib.win32-3.7\mod_wsgi\server\management
copying src\server\management\__init__.py -> build\lib.win32-3.7\mod_wsgi\se
rver\management
creating build\lib.win32-3.7\mod_wsgi\server\management\commands
copying src\server\management\commands\runmodwsgi.py -> build\lib.win32-3.7\
mod_wsgi\server\management\commands
copying src\server\management\commands\__init__.py -> build\lib.win32-3.7\mo
d_wsgi\server\management\commands
creating build\lib.win32-3.7\mod_wsgi\docs
copying docs\_build\html\__init__.py -> build\lib.win32-3.7\mod_wsgi\docs
creating build\lib.win32-3.7\mod_wsgi\images
copying images\__init__.py -> build\lib.win32-3.7\mod_wsgi\images
copying images\snake-whiskey.jpg -> build\lib.win32-3.7\mod_wsgi\images
running build_ext
building 'mod_wsgi.server.mod_wsgi' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
creating build\temp.win32-3.7\Release\src\server
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe /c /nologo
/Ox /W3 /GL /DNDEBUG /MD -IC:\xampp\apache/include -Ic:\users\taha.tauqir\appda
ta\local\programs\python\python37-32\include -Ic:\users\taha.tauqir\appdata\loca
l\programs\python\python37-32\include /Tcsrc/server\mod_wsgi.c /Fobuild\temp.win
32-3.7\Release\src/server\mod_wsgi.obj
mod_wsgi.c
c:\users\taha.tauqir\appdata\local\temp\pip-install-_zkqbo33\mod-wsgi\src\se
rver\wsgi_apache.h(39): fatal error C1083: Cannot open include file: 'ws2tcpip.h
': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\b
in\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\taha.tauqir\appdata\loc
al\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokeni
ze; sys.argv[0] = '"'"'C:\\Users\\TAHA~1.TAU\\AppData\\Local\\Temp\\pip-install-
_zkqbo33\\mod-wsgi\\setup.py'"'"'; __file__='"'"'C:\\Users\\TAHA~1.TAU\\AppData\
\Local\\Temp\\pip-install-_zkqbo33\\mod-wsgi\\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\TAHA~1.TAU\AppData\Local\Temp\pip-record-4uoq0nq8\install-record.txt' --
single-version-externally-managed --compile Check the logs for full command outp
ut.
I am trying to install pip install mysqlclient and it fails everytime. I also tried pip install --only-binary :all: mysqlclient and also not worked. Then I also downloaded whl file and also did't work. I need help.
Using python 3.7.2 and pip 19.0.2 version.
Here's the whole error thats pop up:
Running setup.py clean for mysqlclient
Failed to build mysqlclient
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient ... error
Complete output from command c:\users\vertig~1.0\envs\mypro\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\VERTIG~1.0\\AppData\\Local\\Temp\\pip-install-b81i8gmq\\mysqlclient\\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\VERTIG~1.0\AppData\Local\Temp\pip-record-6s1gmot9\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\vertig~1.0\envs\mypro\include\site\python3.7\mysqlclient:
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\_exceptions.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\compat.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.7\MySQLdb
creating build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.7\MySQLdb\constants
running build_ext
building 'MySQLdb._mysql' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Command "c:\users\vertig~1.0\envs\mypro\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\VERTIG~1.0\\AppData\\Local\\Temp\\pip-install-b81i8gmq\\mysqlclient\\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\VERTIG~1.0\AppData\Local\Temp\pip-record-6s1gmot9\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\vertig~1.0\envs\mypro\include\site\python3.7\mysqlclient" failed with error code 1 in C:\Users\VERTIG~1.0\AppData\Local\Temp\pip-install-b81i8gmq\mysqlclient\```
So any ideas where the error is getting?
Check that you have MySQL installed on your system.
On Mac:
brew install mysql
Installing with APT (eg, Ubuntu):
sudo apt install mysql-server
Or install with the installer: https://dev.mysql.com/downloads/installer/.
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft
Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
From the error message its pretty clear that the issue is with with C++ installation on your machine.
FYI: Many Python libs uses C++ under the hood so its mandatory to install the Microsoft visual c++(on windows) as mentioned in the error.
You can go ahead and install Microsoft Visual C++ from here or here
Or else if there is no particular use behind mysqlclient you can use this pure pyython MySQL client library named PyMySQL (you need not install visual c++ for using this lib).
I'm trying to upgrade the builtin module pysqlite(sqlite3) on my windows 7, to the most recent version (currently 2.8.2).
My python version is 2.7.10.
When I run the pip commend on my cmd console, I get the following message:
C:\WINDOWS\system32>pip install --upgrade pysqlite Collecting pysqlite
Using cached pysqlite-2.8.2.tar.gz Installing collected packages:
pysqlite Running setup.py install for pysqlite ... error
Complete output from command "C:\Program Files\Anaconda\python.exe" -u -c "import setuptools,
tokenize;file='c:\users\Bob\appdata\local\temp\pip-build-semsbd\pysqlite\setup.py';exec(compile(getattr(tokenize,
'open', open)(file).read().replace('\r\n', '\n'), file,
'exec'))" install --record
c:\users\Bob\appdata\local\temp\pip-fkkno1-record\install-record.txt
--single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\pysqlite2
copying lib\dbapi2.py -> build\lib.win-amd64-2.7\pysqlite2
copying lib\dump.py -> build\lib.win-amd64-2.7\pysqlite2
copying lib__init__.py -> build\lib.win-amd64-2.7\pysqlite2
creating build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\dbapi.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\dump.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\factory.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\hooks.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\regression.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\transactions.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\types.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\userfunctions.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test__init__.py -> build\lib.win-amd64-2.7\pysqlite2\test
running build_ext
building 'pysqlite2._sqlite' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\src
C:\Users\Bob\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS-
/DNDEBUG -DMODULE_NAME=\"pysqlite2.dbapi2\" -I'{' -Iis -Inot
-Irecognized -Ias -Ian -Iinternal -Ior -Iexternal -Icommand, -Ioperable -Iprogram -Ior -Ibatch -Ifile. "-IC:\Program Files\Anaconda\include" "-IC:\Program Files\Anaconda\PC"
/Tcsrc/module.c /Fobuild\temp.win-amd64-2.7\Release\src/module.obj
module.c
c:\users\Bob\appdata\local\temp\pip-build-semsbd\pysqlite\src\connection.h(33)
: fatal error C1083: Cannot open include file: 'sqlite3.h': No such
file or directory
error: command 'C:\Users\Bob\AppData\Local\Programs\Common\Microsoft\Visual
C++ for Python\9.0\VC\Bin\amd64\cl.exe' failed with exit status 2
---------------------------------------- Command ""C:\Program Files\Anaconda\python.exe" -u -c "import setuptools,
tokenize;file='c:\users\Bob\appdata\local\temp\pip-build-semsbd\pysqlite\setup.py';exec(compile(getattr(tokenize,
'open', open)(file).read().replace('\r\n', '\n'), file,
'exec'))" install --record
c:\users\Bob\appdata\local\temp\pip-fkkno1-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in c:\users\Bob\appdata\local\temp\pip-build-semsbd\pysqlite\
So I tried using easy install, and got the following message:
C:\WINDOWS\system32>easy_install -U pysqlite Searching for pysqlite
Reading https://pypi.python.org/simple/pysqlite/ Best match: pysqlite
2.8.2 Downloading https://pypi.python.org/packages/cc/a4/023ee9dba54b3cf0c5a4d0fb2f1ad80332ef23549dd4b551a9f2cbe88786/pysqlite-2.8.2.tar.gz#md5=b8488f6a353bd6a3cd85d327d326376a
Processing pysqlite-2.8.2.tar.gz Writing
c:\users\Bob\appdata\local\temp\easy_install-jwrns4\pysqlite-2.8.2\setup.cfg
Running pysqlite-2.8.2\setup.py -q bdist_egg --dist-dir
c:\users\Bob\appdata\local\temp\easy_install-jwrns4\pysqlite-2.8.2\egg-dist-tmp-dw1hgi
warning: no files found matching 'doc*.txt' module.c
c:\users\Bob\appdata\local\temp\easy_install-jwrns4\pysqlite-2.8.2\src\connection.h(33)
: fatal error C1083: Cannot open include file: 'sqlite3.h': No such
file or directory error: Setup script exited with error: command
'C:\Users\Bob\AppData\Local\Programs\Common\Microsoft\Visual
C++ for Python\9.0\VC\Bin\amd64\cl.exe' failed with exit status 2
Any ideas how this module can be updated?
Thanks in advance!
I'm trying to download through pip the MySql-python connector as following, however im getting an error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
C:\Users\yschellekens.INTRANET\Desktop\Django project\general>pip install MySQL-
python
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip
Building wheels for collected packages: MySQL-python
Running setup.py bdist_wheel for MySQL-python
Complete output from command C:\Python33\python.exe -c "import setuptools;__fi
le__='c:\\users\\yschel~1.int\\appdata\\local\\temp\\pip-build-wc92bo\\MySQL-pyt
hon\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file_
_, 'exec'))" bdist_wheel -d c:\users\yschel~1.int\appdata\local\temp\tmpc71e54pi
p-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.3
copying _mysql_exceptions.py -> build\lib.win32-3.3
creating build\lib.win32-3.3\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win32-3.3\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.3\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.3\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.3\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.3\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.3\MySQLdb
creating build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.3\MySQLdb\constan
ts
copying MySQLdb\constants\ER.py -> build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-3.3\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.3\MySQLdb\constants
running build_ext
building '_mysql' extension
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
----------------------------------------
Failed building wheel for MySQL-python
Failed to build MySQL-python
Installing collected packages: MySQL-python
Running setup.py install for MySQL-python
Complete output from command C:\Python33\python.exe -c "import setuptools, t
okenize;__file__='c:\\users\\yschel~1.int\\appdata\\local\\temp\\pip-build-wc92b
o\\MySQL-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__
).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\ys
chel~1.int\appdata\local\temp\pip-ckxp_c-record\install-record.txt --single-vers
ion-externally-managed --compile:
running install
running build
running build_py
running build_ext
building '_mysql' extension
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
----------------------------------------
Command "C:\Python33\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\yschel~1.int\\appdata\\local\\temp\\pip-build-wc92bo\\MySQL-python\\setup.p
y';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record c:\users\yschel~1.int\appdata\local
\temp\pip-ckxp_c-record\install-record.txt --single-version-externally-managed -
-compile" failed with error code 1 in c:\users\yschel~1.int\appdata\local\temp\p
ip-build-wc92bo\MySQL-python
I found this wonderful question, which was very helpful:
Install mysql-python (Windows)
But im still running into issues, i know that i can download Visual Studio 2010 but i saw people who mention that its not necessary, and i prefer not to download it.
Here are my PYTHONPATH + PATH
PATH:
C:\Tools\OpenVPN\bin;C:\Python33\;C:\Program Files\Java\jdk1.7.0_15\bin;C:\Program Files\Java\jdk1.7.0_15\jre\bin\server;C:\Python33\Lib\site-packages;C:\Python33\Lib;C:\Python33\DLLs;C:\Python33\Lib\lib-tk;C:\Python33\Scripts;C:\Windows\System32;C:\Program Files\MySQL\MySQL Server 5.6\bin
PYTHONPATH
C:\Python33;C:\Python33\Lib\site-packages;C:\Python33\Lib;C:\Python33\DLLs;C:\Python33\Lib\lib-tk;C:\Python33\Scripts
Did i miss anything?
Any help in that would be great!
What you need is to have Microsoft Visual C++ 10.0 compiler (and as far as I remember version 10.0 doesn't necessarily mean Visual Studio 2010) installed on your system and vcvarsall.bat accessible from PATH environment variable.
However, it is usual for Windows to have enormous amount of blocking issues connected with compiling python extensions via pip (or it's just me?), so my usual workaround of the error you get is to google some Windows binary installers (mysql-python for 2.7 for instance) or .whl files. Both have python extensions compiled for a particular Python and architecture thus eliminating the need in having C or C++ compiler installed.