osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error installing libraries


On 2018-09-03 09:10, ojas gupta wrote:
>     error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft
Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-to
 ols
>
>     ----------------------------------------
> Command ""c:\users\ojas gupta\appdata\local\programs\python\python37\python.e
xe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\OJASGU~1\\AppData\\
 Local\\Temp\\pip-install-1d03ayeg\\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\OJASGU~1\AppData\Local\Temp\pip-record-wauonuy1\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
C:\Users\OJASGU~1\AppData\Local\Temp\pip-install-1d03ayeg\mysqlclient\
>
>
> And the link provided to install Visual C++ 14.0 doesn? ?t  work . I
installed Visual Studio 2017 and C++ Redistributable 2017 but same issue still
.


mysqlclient binary packages for Windows are available from Christoph Gohlke:
https://www.lfd.uci.edu/~gohlke/pythonlibs/ If you use these you won't need a C
 compiler.


As for the C compiler issue, I'd expect installing Visual Studio 2017 to work,
but I've only ever used the standalone "build tools" with Python on Windows
myself...
See:
https://wiki.python.org/moin/WindowsCompilers#Compilers_Installation_and_config
uration

>
> It will be extremely appreciated if u help me . Thanks .
>