I have windows 7 with MS VC++ 12.0 installed.
pip install hdbscan fails with:
Running setup.py bdist_wheel for hdbscan ... error
Failed building wheel for hdbscan
C:\Users\1>where vcvarsall.bat
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
C:\Users\1>pip install hdbscan
Collecting hdbscan
Using cached hdbscan-0.8.7.tar.gz
Requirement already satisfied: scikit-learn>=0.16 in c:\fast\anaconda\2.5.0\lib\
site-packages (from hdbscan)
Requirement already satisfied: cython>=0.17 in c:\fast\anaconda\2.5.0\lib\site-p
ackages (from hdbscan)
Building wheels for collected packages: hdbscan
Running setup.py bdist_wheel for hdbscan ... error
Complete output from command c:\fast\anaconda\2.5.0\python.exe -u -c "import s
etuptools, tokenize;__file__='c:\users\1\appdata\local\temp\pip-buil
d-kgeqin\hdbscan\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.
read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bd
ist_wheel -d c:\users\1\appdata\local\temp\tmp7fhztspip-wheel- --python-ta
g cp27:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\hdbscan
copying hdbscan\hdbscan_.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\plots.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\robust_single_linkage_.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\validity.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan__init__.py -> build\lib.win-amd64-2.7\hdbscan
running build_ext
skipping 'hdbscan_hdbscan_tree.c' Cython extension (up-to-date)
building 'hdbscan._hdbscan_tree' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Ge
t it from http://aka.ms/vcpython27
Failed building wheel for hdbscan
Running setup.py clean for hdbscan
Failed to build hdbscan
Installing collected packages: hdbscan
Running setup.py install for hdbscan ... error
Complete output from command c:\fast\anaconda\2.5.0\python.exe -u -c "import
setuptools, tokenize;__file__='c:\users\1\appdata\local\temp\pip-bu
ild-kgeqin\hdbscan\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\1\appdata\local\temp\pip-canend-record\install-r
ecord.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\hdbscan
copying hdbscan\hdbscan_.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\plots.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\robust_single_linkage_.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\validity.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\__init__.py -> build\lib.win-amd64-2.7\hdbscan
running build_ext
skipping 'hdbscan\_hdbscan_tree.c' Cython extension (up-to-date)
building 'hdbscan._hdbscan_tree' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).
Get it from http://aka.ms/vcpython27
----------------------------------------
Command "c:\fast\anaconda\2.5.0\python.exe -u -c "import setuptools, tokenize;__
file__='c:\users\1\appdata\local\temp\pip-build-kgeqin\hdbscan\set
up.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\user
s\1\appdata\local\temp\pip-canend-record\install-record.txt --single-versi
on-externally-managed --compile" failed with error code 1 in c:\users\1\ap
pdata\local\temp\pip-build-kgeqin\hdbscan\
Because we make heavy use of Cython for performance that unfortunately
means that compilation can be an issue. This is particularly true of
Windows. Unfortunately I don't really have the infrastructure to make wheel
builds for all the different architectures. On the others hand the very
fine folks at conda-forge have made it possible to get conda builds for
many different platforms. My strong advice if you are on Windows is to use
conda (anaconda or mini-conda) for the install -- it "just works".
On Mon, Feb 20, 2017 at 7:11 PM, Berowne notifications@github.com wrote:
I have windows 7 with MS VC++ 12.0 installed.
pip install hdbscan fails with:
Running setup.py bdist_wheel for hdbscan ... error
Failed building wheel for hdbscanC:\Users\1>where vcvarsall.bat
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.batC:\Users\1>pip install hdbscan
Collecting hdbscan
Using cached hdbscan-0.8.7.tar.gz
Requirement already satisfied: scikit-learn>=0.16 in
c:\fast\anaconda\2.5.0\lib
site-packages (from hdbscan)
Requirement already satisfied: cython>=0.17 in c:\fast\anaconda\2.5.0\lib\
site-p
ackages (from hdbscan)
Building wheels for collected packages: hdbscan
Running setup.py bdist_wheel for hdbscan ... error
Complete output from command c:\fast\anaconda\2.5.0\python.exe -u -c
"import s
etuptools, tokenize;file='c:\users\1\appdata\local\temp\pip-buil
d-kgeqin\hdbscan\setup.py';f=getattr(tokenize, 'open', open)(file
);code=f.
read().replace('\r\n', '\n');f.close();exec(compile(code, file,
'exec'))" bd
ist_wheel -d c:\users\1\appdata\local\temp\tmp7fhztspip-wheel- --python-ta
g cp27:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\hdbscan
copying hdbscan\hdbscan_.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\plots.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\robust_single_linkage_.py -> build\lib.win-amd64-2.7\
hdbscan
copying hdbscan\validity.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan_init_.py -> build\lib.win-amd64-2.7\hdbscan
running build_ext
skipping 'hdbscan_hdbscan_tree.c' Cython extension (up-to-date)
building 'hdbscan._hdbscan_tree' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find
vcvarsall.bat). Get it from http://aka.ms/vcpython27
Failed building wheel for hdbscan
Running setup.py clean for hdbscan
Failed to build hdbscan
Installing collected packages: hdbscan
Running setup.py install for hdbscan ... error
Complete output from command c:\fast\anaconda\2.5.0\python.exe -u -c
"import
setuptools, tokenize;file='c:\users\1\appdata\local\temp\pip-bu
ild-kgeqin\hdbscan\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\1\appdata\local\temp\pip-canend-record\install-r
ecord.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\hdbscan
copying hdbscan\hdbscan_.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\plots.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan\robust_single_linkage_.py -> build\lib.win-amd64-2.7\
hdbscancopying hdbscan\validity.py -> build\lib.win-amd64-2.7\hdbscan
copying hdbscan__init__.py -> build\lib.win-amd64-2.7\hdbscan
running build_ext
skipping 'hdbscan_hdbscan_tree.c' Cython extension (up-to-date)
building 'hdbscan._hdbscan_tree' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).Get it from http://aka.ms/vcpython27
Command "c:\fast\anaconda\2.5.0\python.exe -u -c "import setuptools,
tokenize;__
file__='c:\users\1\appdata\local\temp\pip-build-kgeqin\hdbscan\set
up.py';f=getattr(tokenize, 'open', open)(file);code=f.read().
replace('\r\n',
'\n');f.close();exec(compile(code, file, 'exec'))" install --record
c:\user
s\1\appdata\local\temp\pip-canend-record\install-record.txt --single-versi
on-externally-managed --compile" failed with error code 1 in c:\users\1\ap
pdata\local\temp\pip-build-kgeqin\hdbscan\—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/scikit-learn-contrib/hdbscan/issues/86, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ALaKBXI96zQfe67vsHdB_0ReIfgXb0H_ks5reiu1gaJpZM4MGvPY
.
Download and install this on your windows machine, then repeat the build process:
Microsoft Visual C++ Compiler for Python 2.7
Got it working but with the GCC compiler I believe.
Faithfully,
Berowne
On 28 Jul 2017, at 1:11 pm, Steve D notifications@github.com wrote:
Download and install this on your windows machine, then repeat the build process:
Microsoft Visual C++ Compiler for Python 2.7—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Most helpful comment
Because we make heavy use of Cython for performance that unfortunately
means that compilation can be an issue. This is particularly true of
Windows. Unfortunately I don't really have the infrastructure to make wheel
builds for all the different architectures. On the others hand the very
fine folks at conda-forge have made it possible to get conda builds for
many different platforms. My strong advice if you are on Windows is to use
conda (anaconda or mini-conda) for the install -- it "just works".
On Mon, Feb 20, 2017 at 7:11 PM, Berowne notifications@github.com wrote: