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?
Related
The code is of reading QR code in which the Import Error of zbar has occurred.I have attempted several changes in the installation of the module but I am not able to remove the error.
https://i.stack.imgur.com/4ZCnH.png
To fix this problem you will need to install Visual C++ Redistributable Packages for Visual Studio 2013. Install vcredist_x64.exe if using 64-bit Python, vcredist_x86.exe if using 32-bit Python. For more information check https://pypi.org/project/pyzbar/#windows-error-message
Im trying to install xmlsec (with pip) but it is throwing: error: pkg-config is not installed. Im using Python3.6 on windows 7.
Thanks in advance for any suggestion.
Xmlsec has some issues with windows but as with python 3.6 and below the problem is solved. Use this link to download the wheel file for your python version https://github.com/mehcode/python-xmlsec/releases
Install the wheel file using
pip install <wheel_file_name>
As with Python 3.7, the only way out is to install xmlsec on a Linux machine as it is not yet supported on Windows.
This seems to be a problem on Windows #Jcc.Sanabria on Windows. Where as Linux & MAC are seems to be working for xmlsec.
Since I had gone through this situations for around weeks now.
Going through official Document
here I didn't find any instruction on "How to install this on Windows?"
To answer your question :
Resolve your exception related with pkgconfig you can use this link on Windows.
But then it will also ask you to install Visual C++ (>=ver. 14.0) but after installing this too.
You will face exception like this one :
"cl : Command line error D8021 : invalid numeric argument '/Wno-error=declaration-after-statement'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2"
Which I didn't find any resolution till now. :(
But to use xmlsec and python on Windows working you need to take support from Cygwin. Where you can install all related packages from Cygwin Packages list for python and xmlsec dependancy. Following are the name & version of some packages :
gettext-devel(0.19.8.1-2),libglib2.0-devel(2.50.3-1),libxml2-devel(2.9.4-2),libxmlsec1-devel(1.2.24-1),libxslt-devel(1.1.29-1)
Further dependency can be checked on this link
I am trying to compile pycaffe in Windows 7 using Anaconda 3 and Visual studio 2013. I have set the anaconda path and lib path correctly. When I try to build I am getting the following error:
"Error 1 error LNK1104: cannot open file 'python27.lib' D:\caffe-master\windows\caffe\LINK caffe"
I am using Python 3.6 but not sure why the build is looking for 2.7 lib. How do I make build pick the correct python lib?
Thanks
I've got the same error while building matcaffe interface with python 3.5, so I downgraded Anaconda and Python to 2.7 version and it successed.
Windows 10 64bit
I installed traitsui successfully by pip in python3.52
Qt4 must be installed to display GUI on windows, But the highest version of python Qt4 support is python3.4
So, I install python3.4, when I try to install traits by pip
I got error message:
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)
I search the error message, get some results, But none of them solve the problem, So I install mingw
use pip to install traits again, get another error
collect2.exe: error: ld returned 1 exit status
error: command 'D:\\Program Files\\mingw-w64\\x86_64-5.3.0-win32-seh-rt_v4-rev0\\mingw64\\bin\\gcc.exe' failed with exit status 1
Is there a way to install traits on windows in python 3.4?
You can circumvent the problem of the error with Visual Studio C++ by installing a precompiled version of the package in form of a wheel. You can find wheel packages for most of the common modules here.
Download the file traits-4.6.0.dev0-cp34-cp34m-win32.whl (cp34 indicates Python 3.4, win32 that your Python is 32bit) and install it using the command line:
pip install C:\whereveryourfileis\traits-4.6.0.dev0-cp34-cp34m-win32.whl
Make sure that pip is linked to your Python 3.4 pip. If you are unsure, you can run the pip.exe directly by changing your directory in the command line (cd C:\Python34\Scripts) and running
pip.exe install C:\whereveryourfileis\traits-4.6.0.dev0-cp34-cp34m-win32.whl
Edit: Did you consider using Qt5?
When running pip install python-docx I encounter the error message error: Unable to find vcvarsall.bat.
These are basically the two solutions:
1) Install VS2008
2) SET VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools
Both I've done and the error persists. Does anyone hold another solution?
You should be using Visual Studio 2010, as Python 3.3 was built with it, and therefore satisfies all dependencies needed.
1) Install VS10
2) SET VS100COMNTOOLS=C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools (assuming that the path is still the same?)
I saw that error message when installing the talib python package. I got it to work after reading this: http://www.python-forum.org/viewtopic.php?t=1761&p=2517