views:

31

answers:

2

Please help me to solve this error

C:\Python26\Lib\site-packages\pyqrcode\encoder>python setup.py install
running install
running bdist_egg
running egg_info
writing qrcode.egg-info\PKG-INFO
writing top-level names to qrcode.egg-info\top_level.txt
writing dependency_links to qrcode.egg-info\dependency_links.txt
package init file 'qrcode\__init__.py' not found (or not a regular file)
writing manifest file 'qrcode.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
building 'qrcode.Encoder' extension
error: Unable to find vcvarsall.bat

Thanks,

manu

+3  A: 

This was a known bug, and should not be an issue anymore.

If using MinGW, try:

setup.py install build ––compiler=mingw32
wok
Below error occurC:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Iencoder/./src/ -IC:\Python26\i nclude -IC:\Python26\PC -c encoder/Encoder.c -o build\temp.win32-2.6\Release\encoder\encoder.ogcc: encoder/Encoder.c: No such file or directorygcc: no input fileserror: command 'gcc' failed with exit status 1
manu
c: No such file or directory gcc: no input files error: command 'gcc' failed with exit status 1
manu
You probably need to install the mingw32 compiler. http://www.mingw.org/
monkut
A: 

Distutils does not play well with MS Compiler tool chain.

This file is required to setup the environment which will help distutils to use MS compiler tool chains.

There are quite a few ways in which this has been made to work.

Please look at the following post which may help you.

pyfunc