Debian Codegraph @

docs/source/traits_user_manual/installation.rst

raw
1 .. index:: installation
2
3 .. _installation:
4
5 ============
6 Installation
7 ============
8
9 The latest release of Traits is available from the Python Package Index (PyPI),
10 and the normal way to install Traits into your Python environment is using
11 pip::
12
13 python -m pip install traits
14
15 Traits includes a C extension module. Binary wheels are provided on PyPI for
16 common platforms, but some platforms may need to compile Traits from source. On
17 those platforms, a suitable C compiler will be needed.
18
19
20 Installation from source on macOS
21 ---------------------------------
22
23 The system Python 3.8 on macOS Catalina has trouble installing Traits from
24 source, due to an apparent mismatch in architecture settings. This issue can
25 be worked around by specifying the "ARCHFLAGS" environment variable for
26 the install::
27
28 ARCHFLAGS="-arch x86_64" python -m pip install traits
29
30 See https://github.com/enthought/traits/issues/1337 for more details.