Debian Codegraph @

INSTALL

raw
1 fastcluster: Fast hierarchical clustering routines for R and Python
2
3 Copyright:
4 * Until package version 1.1.23: © 2011 Daniel Müllner <https://danifold.net>
5 * All changes from version 1.1.24 on: © Google Inc. <https://www.google.com>
6
7
8 Installation
9 ‾‾‾‾‾‾‾‾‾‾‾‾
10 Installation procedures were tested under 64-bit Ubuntu. CRAN also hosts
11 precompiled binaries (of the R library, not the Python module) for Windows and
12 OS X. In principle, it should be possible to install the fastcluster package
13 on any system that has a C++ compiler and R respectively Python with NumPy.
14 There are no unusual libraries needed to compile the package, only the STL
15 library, which every C++ compiler should have by default.
16
17 Please send me feedback if you accomplish to install the fastcluster package on
18 a certain platform but needed to tweak the configuration! I will update the
19 installation instructions and modify the package if needed (eg. include the
20 right compiler flags for various operating systems).
21
22
23 Installation for R
24 ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
25 Enter the command install.packages("fastcluster") in R, and R will download the
26 package automatically, then install it. That's it!
27
28 If this does not work, please consult R's help function by typing ?INSTALL from
29 within R or read the “R installation and administration” manual:
30
31 http://cran.r-project.org/doc/manuals/R-admin.html#Installing-packages
32
33 For manual download, you can get the fastcluster package from the download page
34 at CRAN:
35
36 http://cran.r-project.org/web/packages/fastcluster/
37
38 You may need to start R with administrator rights to be able to install
39 packages. There are ways to install R packages without administrator privileges
40 in your user directories. See this help page for example:
41
42 http://csg.sph.umich.edu/docs/R/localpackages.html
43
44
45 Installation for Python
46 ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
47 Make sure that you have both Python and NumPy installed.
48
49
50 1. On all platforms
51 ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
52 If pip is installed, type
53
54 pip install --upgrade --user fastcluster
55
56 in a terminal, which automatically downloads the latest version from PyPI,
57 compiles the C++ library and installs the package for a single user without
58 administrator rights.
59
60 If this works, there is no need to follow the alternative steps below.
61
62
63 2. Microsoft Windows
64 ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
65 Installation files for Windows are stored on PyPI:
66
67 https://pypi.python.org/pypi/fastcluster
68
69 Christoph Gohlke also provides installation files for Windows on his web page:
70
71 http://www.lfd.uci.edu/~gohlke/pythonlibs/#fastcluster
72
73
74 3. With setuptools
75 ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
76 If pip is not available but setuptools, type
77
78 easy_install --upgrade --user fastcluster
79
80 in a terminal.
81
82
83 4. From the source package
84 ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
85 If you have not done so already, download the fastcluster package from PyPI
86 here:
87
88 http://pypi.python.org/pypi/fastcluster/
89
90 Open a terminal, go to the directory with the downloaded file and extract the
91 contents of the archive with:
92
93 tar -xvf fastcluster-(version).tar.gz
94
95 Alternatively, use your favorite archive manager for unpacking, eg. on
96 Windows. This will generate a new directory “fastcluster-(version)”. Switch to
97 this subdirectory:
98
99 cd fastcluster-(...)
100
101 The source distribution on CRAN also contains the complete source files. See
102 the directory src/python there.
103
104 Now compile and install the Python module by:
105
106 python setup.py install
107
108 You may need to precede this command with sudo or install the package in your
109 home directory, like this:
110
111 python setup.py install --user
112
113 See the chapter “Installing Python modules” in the Python documentation for
114 further help:
115
116 http://docs.python.org/install/index.html