Not working with python 3.5
This is the error I get when I try installing mysqlclient. I am using Windows and python 3.5.
Installing 'mysqlclient'
Collecting mysqlclient
Using cached mysqlclient-1.3.6.tar.gz
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient
Complete output from command "c:\users\buccaneer\documents\visual studio 2013\Projects\del1\del1\envrm\Scripts\python.exe" -c "import setuptools, tokenize;__file__='C:\\Users\\BUCCAN~1\\AppData\\Local\\Temp\\pip-build-wuhkxhu3\\mysqlclient\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\BUCCAN~1\AppData\Local\Temp\pip-3jbluuk2-record\install-record.txt --single-version-externally-managed --compile --install-headers "c:\users\buccaneer\documents\visual studio 2013\Projects\del1\del1\envrm\include\site\python3.5\mysqlclient":
running install
running build
running build_py
creating build
creating build\lib.win32-3.5
copying _mysql_exceptions.py -> build\lib.win32-3.5
creating build\lib.win32-3.5\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\compat.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.5\MySQLdb
creating build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.5\MySQLdb\constants
running build_ext
building '_mysql' extension
error: Unable to find vcvarsall.bat
@SeppPenner have you tried with this version of mysqlclient: https://pyside.markus-ullmann.de/mysqlclient-win/mysqlclient-1.3.7-cp35-none-win_amd64.whl? To install a whl, just pip install [url], worked for me.
@all3f0r1 Well, it worked for me somehow but I do not know what I changed exactly. (Running simply pip install mysqlclient).
Maybe I updated pip like @sefeng211 told to do...
This is the error I get when I try installing mysqlclient. I am using Windows and python 3.5.
Installing 'mysqlclient' Collecting mysqlclient Using cached mysqlclient-1.3.6.tar.gz Installing collected packages: mysqlclient Running setup.py install for mysqlclient Complete output from command "c:\users\buccaneer\documents\visual studio 2013\Projects\del1\del1\envrm\Scripts\python.exe" -c "import setuptools, tokenize;__file__='C:\\Users\\BUCCAN~1\\AppData\\Local\\Temp\\pip-build-wuhkxhu3\\mysqlclient\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\BUCCAN~1\AppData\Local\Temp\pip-3jbluuk2-record\install-record.txt --single-version-externally-managed --compile --install-headers "c:\users\buccaneer\documents\visual studio 2013\Projects\del1\del1\envrm\include\site\python3.5\mysqlclient": running install running build running build_py creating build creating build\lib.win32-3.5 copying _mysql_exceptions.py -> build\lib.win32-3.5 creating build\lib.win32-3.5\MySQLdb copying MySQLdb\__init__.py -> build\lib.win32-3.5\MySQLdb copying MySQLdb\compat.py -> build\lib.win32-3.5\MySQLdb copying MySQLdb\converters.py -> build\lib.win32-3.5\MySQLdb copying MySQLdb\connections.py -> build\lib.win32-3.5\MySQLdb copying MySQLdb\cursors.py -> build\lib.win32-3.5\MySQLdb copying MySQLdb\release.py -> build\lib.win32-3.5\MySQLdb copying MySQLdb\times.py -> build\lib.win32-3.5\MySQLdb creating build\lib.win32-3.5\MySQLdb\constants copying MySQLdb\constants\__init__.py -> build\lib.win32-3.5\MySQLdb\constants copying MySQLdb\constants\CR.py -> build\lib.win32-3.5\MySQLdb\constants copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.5\MySQLdb\constants copying MySQLdb\constants\ER.py -> build\lib.win32-3.5\MySQLdb\constants copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.5\MySQLdb\constants copying MySQLdb\constants\REFRESH.py -> build\lib.win32-3.5\MySQLdb\constants copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.5\MySQLdb\constants running build_ext building '_mysql' extension error: Unable to find vcvarsall.bat
how
how you solve this error?
I am using python 3.8.5, django 2.2.2 in red hat linux environment and unable to run the command python manage.py runserver. getting the following error -
File "/home/ec2-user/local/venvs/tellybugvenv/lib64/python3.8/site-packages/django/db/backends/mysql/base.py", line 15, in
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/ec2-user/local/venvs/tellybugvenv/lib64/python3.8/site-packages/django/utils/autoreload.py", line 54, in wrapper
fn(*args, **kwargs)
File "/home/ec2-user/local/venvs/tellybugvenv/lib64/python3.8/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "/home/ec2-user/local/venvs/tellybugvenv/lib64/python3.8/site-packages/django/utils/autoreload.py", line 77, in raise_last_exception
raise _exception[1]
File "/home/ec2-user/local/venvs/tellybugvenv/lib64/python3.8/site-packages/django/core/management/init.py", line 337, in execute
autoreload.check_errors(django.setup)()
File "/home/ec2-user/local/venvs/tellybugvenv/lib64/python3.8/site-packages/django/utils/autoreload.py", line 54, in wrapper
fn(*args, **kwargs)
File "/home/ec2-user/local/venvs/tellybugvenv/lib64/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/ec2-user/local/venvs/tellybugvenv/lib64/python3.8/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/home/ec2-user/local/venvs/tellybugvenv/lib64/python3.8/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib64/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
Please help.