Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mysqlclient
#1
Any ideas???
Going along fantastically until creating mysqlclient then the following:


(py1) c:\Users\greg\projects\djangoproject>python --version
Python 3.7.0

(py1) c:\Users\greg\projects\djangoproject>pip --version
pip 18.0 from c:\users\menziwa\envs\py1\lib\site-packages\pip (python 3.7)

(py1) c:\Users\greg\projects\djangoproject>[b]pip install mysqlclient
Collecting mysqlclient
Using cached https://files.pythonhosted.org/packages/...e14f7344d1
cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz
Building wheels for collected packages: mysqlclient
Running setup.py bdist_wheel for mysqlclient ... error
Complete output from command c:\users\menziwa\envs\py1\scripts\python.exe -u -
c "import setuptools, tokenize;__file__='C:\\Users\\MENZIWA\\AppData\\Local\\Tem
p\\pip-install-9l7l8cvl\\mysqlclient\\setup.py';f=getattr(tokenize, 'open', open
)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __f
ile__, 'exec'))" bdist_wheel -d C:\Users\MENZIWA\AppData\Local\Temp\pip-wheel-0q
1k9jp4 --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.7
copying _mysql_exceptions.py -> build\lib.win32-3.7
creating build\lib.win32-3.7\MySQLdb
copying MySQLdb\__init__.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\constan
ts
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-3.7\MySQLdb\constants
running build_ext
building '_mysql' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C+
+ Build Tools": https://visualstudio.microsoft.com/downloads/

----------------------------------------
Failed building wheel for mysqlclient
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\menziwa\envs\py1\scripts\python.exe -u
-c "import setuptools, tokenize;__file__='C:\\Users\\MENZIWA\\AppData\\Local\\T
emp\\pip-install-9l7l8cvl\\mysqlclient\\setup.py';f=getattr(tokenize, 'open', op
en)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, _
_file__, 'exec'))" install --record C:\Users\MENZIWA\AppData\Local\Temp\pip-reco
rd-m5dwh9p5\install-record.txt --single-version-externally-managed --compile --i
nstall-headers c:\users\menziwa\envs\py1\include\site\python3.7\mysqlclient:
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
copying _mysql_exceptions.py -> build\lib.win32-3.7
creating build\lib.win32-3.7\MySQLdb
copying MySQLdb\__init__.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\constan
ts
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\const
ants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-3.7\MySQLdb\constant
s
running build_ext
building '_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\menziwa\envs\py1\scripts\python.exe -u -c "import setuptools,
tokenize;__file__='C:\\Users\\MENZIWA\\AppData\\Local\\Temp\\pip-install-9l7l8cv
l\\mysqlclient\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.rea
d().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" insta
ll --record C:\Users\MENZIWA\AppData\Local\Temp\pip-record-m5dwh9p5\install-reco
rd.txt --single-version-externally-managed --compile --install-headers c:\users\
menziwa\envs\py1\include\site\python3.7\mysqlclient" failed with error code 1 in
C:\Users\MENZIWA\AppData\Local\Temp\pip-install-9l7l8cvl\mysqlclient\

(py1) c:\Users\greg\projects\djangoproject>python manager.py runserver
(null): can't open file 'manager.py': [Errno 2] No such file or directory

(py1) c:\Users\greg\projects\djangoproject>dir
Volume in drive C has no label.
Volume Serial Number is F091-6F5F

Directory of c:\Users\greg\projects\djangoproject

25/09/2018 17:52 <DIR> .
25/09/2018 17:52 <DIR> ..
25/09/2018 08:08 <DIR> .vscode
25/09/2018 17:52 131,072 db.sqlite3
25/09/2018 08:15 <DIR> djangoproject
25/09/2018 07:53 560 manage.py
2 File(s) 131,632 bytes
4 Dir(s) 8,948,113,408 bytes free

(py1) c:\Users\greg\projects\djangoproject>python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
September 25, 2018 - 19:48:58
Django version 2.1.1, using settings 'djangoproject.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pip install for mysqlclient not working burvil 4 45,888 Feb-04-2021, 08:16 PM
Last Post: nilamo
  please help me to install mysqlclient!!! njnkhanal 1 1,753 Jan-20-2020, 07:51 AM
Last Post: buran
  Can't install mysqlclient on mac Gabn123 5 2,498 Dec-25-2019, 06:54 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020