Unable to find vcvarsall.bat [duplicate] - python

This question already has answers here:
error: Unable to find vcvarsall.bat
(42 answers)
Closed 9 years ago.
I am working with python 2.7.3 and I am trying to install Python Kerberos. But it is giving me the following error:
error: Unable to find vcvarsall.bat
The entire traceback is as follows:
setup.py install
running install
running build
running build_ext
building 'kerberos' extension
error: Unable to find vcvarsall.bat
I want to know if there is any way of resolving the error without installing Visual Studio. It would be great if someone will be able to help resolve these errors.

You need to install Visual Studio (2008), Python is looking for a compiler you don't have.
See this question: error: Unable to find vcvarsall.bat
Note: If you were curious, vcvarsall.bat is a shell script that updates your environment to let you compile with Visual Studio.

Related

Installing PyAudio, got error: setup script exited with error: Microsoft Visual C++ 14.0 is required. Already installed Ms Visual C++, error recurs [duplicate]

This question already has answers here:
I can't install pyaudio on Windows? How to solve "error: Microsoft Visual C++ 14.0 is required."?
(17 answers)
Closed 3 years ago.
So, I am trying to download PyAudio on Windows 10, but it displays error saying:
error: setup script exited with error: Microsoft Visual C++ 14.0 is required.
I have already installed Microsoft Visual C++ but this error keeps coming up. Is there a solution to it?
I would recommend you to install it manually.
Download the Correct Pyaudio Wheel file here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
Then after installing,
open you cmd,
Then type :
pip install{<path/to/the/whl/file>}
Hope this works

Python MySQLdb "error: Microsoft Visual C++ 14.0 is required" even though it has been installed [duplicate]

This question already has answers here:
pip install mysqlclient : Microsoft Visual C++ 14.0 is required
(13 answers)
Closed 7 months ago.
I'm attempting to connect to a MySql database and use its data for some code, though when I'm using
pip install mysqlclient
it gives me an error stating:
"error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft
Visual C++ Build Tools":
http://landinghub.visualstudio.com/visual-cpp-build-tools"
This link provided does not work, though i found out the correct link and installed the build tools as well as the "Windows 10 SDK" as other posts have specified.
I sadly still am getting this error.
Anyone know what is wrong?
Thanks!
It's a complicated environment.
I suggest to use pyodbc to connect to your database ( it isn't required by c++ compiler installation)
Try to convert the below code in your program
import pyodbc
conn = pyodbc.connect('DRIVER={MySQL};SOCKET=/var/lib/mysql/mysql.sock;UID=rooter;PWD=sshh')
Try this:
1- Download mysqlclient wheel on Unoffical Windows Binaries for Python Extension Packages. (search for mysqlclient-1.3.13-cp37-cp37m-win32)
2- Install manually pip install mysqlclient-1.3.13-cp37-cp37m-win32.whl
I believe if you need MySQL database, this is installed by other means i.e. see Microsoft webpage for details (https://dev.mysql.com/doc/refman/8.0/en/windows-installation.html).
If you just want to connect to MySQL database from Python, try installing mysql-connector instead.
pip install mysql-connector

How to install the module pysqlite2 [duplicate]

This question already has answers here:
error: Unable to find vcvarsall.bat
(42 answers)
Closed 8 years ago.
I want to install the PySqlite2 module in my python library. I opened command prompt and went to the download directory. This contains the Pysqlite-2.6.3 package extracted. I entered python setup.py install. It starts copying all the files untill it gives: Errror: Unable to find vcvarsall.bat. I can't seem to figure to out. My systems runs a 32bit version of windows 7.
While running setup.py for package installations Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use a newer Visual Studio by setting the correct path in VS90COMNTOOLS environment variable before calling setup.py.
Find more here.

How should I install a Python module in windows [duplicate]

This question already has answers here:
error: Unable to find vcvarsall.bat
(42 answers)
Closed 8 years ago.
I downloaded the cosmolopy Python library and tried to install it in every possible way...
Finally, I saved Cosmolopy as c:\python27\Lib\cosmolopy\...
1 Then run the setup file which gives me error
2 Run the following command form command prompt
python setup.py build
python setup.py install
BUT AGAIN GIVES ME ERROR: Unable to find vcvarsall.bat
PLEASE HELP ME OUT IT'S TALKING A LOT OF TIME IN INSTALLING MODULE
You could just put it in the same folder as your project.
EG:
Some_Directory\
python_file.py
The_module.py

python ultrajson dependencies? unable to find vcvarsall.bat

I am trying to install ultrajson (ujson) on windows for python 2.7
I got the file here https://pypi.python.org/pypi/ujson/1.33 (.zip) and executed:
python setup.py install
It starts installing fine, then runs into the error:
unable to find vcvarsall.bat
That error message occurs when Python can't find a suitable C compiler on your PC. Do you have Visual Studio 2008 installed?

Categories

Resources