Debian Codegraph @

docs/source/basis/installation.rst

raw
1 .. _basis-installation:
2
3 Installing Kiwisolver on Python
4 ===============================
5
6 .. include:: ../substitutions.sub
7
8 Kiwisolver is supported on Python 3.7+. Installing it is a straight-forward
9 process. There are three approaches to choose from.
10
11 The easy way: Pre-compiled packages
12 -----------------------------------
13
14 The easiest way to install atom is through pre-compiled packages. Kiwisolver is
15 distributed pre-compiled in two-forms.
16
17 Conda packages
18 ^^^^^^^^^^^^^^
19
20 If you use the `Anaconda`_ Python distribution platform (or `Miniconda`_, its
21 lighter-weight companion), the latest release of Kiwisolver can be installed
22 using conda from the default channel or the conda-forge channel::
23
24 $ conda install kiwisolver
25
26 $ conda install kiwisolver -c conda-forge
27
28 .. _Anaconda: https://store.continuum.io/cshop/anaconda
29 .. _Miniconda: https://conda.io/miniconda.html
30
31 Wheels
32 ^^^^^^
33
34 If you don't use Anaconda, you can install Kiwisolver pre-compiled,
35 through PIP, for most common platforms::
36
37 $ pip install kiwisolver
38
39 Compiling it yourself: The Hard Way
40 -----------------------------------
41
42 Building Kiwisolver from scratch requires Python and a C++ compiler. On Unix
43 platform getting a C++ compiler properly configured is generally
44 straighforward. On Windows, starting with Python 3.6 the free version of the
45 Microsoft toolchain should work out of the box. Installing Kiwisolver is then
46 as simple as::
47
48 $ pip install .
49
50 .. note::
51
52 For MacOSX users on OSX Mojave, one needs to set MACOSX_DEPLOYMENT_TARGET
53 to higher than 10.9 to force the compiler to use the new C++ stdlib::
54
55 $ export MACOSX_DEPLOYMENT_TARGET=10.10
56
57
58 Supported Platforms
59 -------------------
60
61 Kiwisolver is known to run on Windows, OSX, and Linux; and compiles cleanly
62 with MSVC, Clang, GCC, and MinGW. If you encounter a bug, please report
63 it on the `Issue Tracker`_.
64
65 .. _Issue Tracker: http://github.com/nucleic/enaml/issues
66
67
68 Checking your install
69 ---------------------
70
71 Once you installed kiwisolver you should be able to import it as follows:
72
73 .. code:: python
74
75 import kiwisolver
76
77 .. note::
78
79 On Windows, the import may fail with `ImportError: DLL load failed`. If it
80 does, it means your system is missing the Microsoft Visual C++
81 redistributable matching your Python version. To fix the issue download
82 and install the package corresponding to your Python version
83 (https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads):
84
85 - Python 2.7: Visual C++ Redistributable 2008
86 - Python 3.4: Visual C++ Redistributable 2010
87 - Python 3.5+: Visual C++ Redistributable 2015 or more recent