forked from pyoomph/pyoomph.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallation.html
More file actions
62 lines (41 loc) · 3.41 KB
/
installation.html
File metadata and controls
62 lines (41 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<div class="code-box">
<center><h1 id="installation">Installation</h1></center>
<p>When you have Python 3.9 to 3.13 installed, </p>
<codebox>
<p>python -m pip install pyoomph</p>
</codebox>
<p>should install the basic framework. On Macs with Apple silicon (arm64, e.g. M1-M4) processor systems, please execute it in a Rosetta2 terminal (see below).
For maximum performance and system-specific information, please refer to the sections below. </p>
<p>If you cannot manage to install it, refer to our <a href="https://pyoomph.readthedocs.io/">tutorial</a>. If this cannot help, you can ask for help (c.diddens@utwente.nl)</p>
<center><h2 id="on-windows">On Windows</h2></center>
<p>For maximum performance, also install <a href="https://docs.microsoft.com/visualstudio/msbuild/msbuild">Microsoft Build Tools</a>, available for download <a href="https://aka.ms/vs/16/release/vs_buildtools.exe">here</a>. </p>
<p>Verify whether everything runs fine by </p>
<codebox>
<p>python -m pyoomph check all</p>
</codebox>
<center><h2 id="on-linux">On Linux</h2></center>
<p>If you have installed via pip (see above), just make sure that you have the <code>gcc</code> compiler installed and check via</p>
<codebox>
<p>python -m pyoomph check all</p>
</codebox>
<center><h2 id="on-mac">On Mac</h2></center>
<p><strong>If you have a recent Mac with an Apple silicon (arm64) chip</strong>, you must run all commands in a <code>Rosetta 2 terminal</code>, see <a href="https://www.courier.com/blog/tips-and-tricks-to-setup-your-apple-m1-for-development/">here</a> how to set it up (note that recent systems must be handled as described <a href="https://developer.apple.com/forums/thread/718666">here</a>). Also, please make sure to not upgrade your <code>mkl</code> package, i.e. enforce it to version 2021.4.0. Alternatively, you can compile it directly on arm64, but with the downside of not being able to use the fast Pardiso solver. See <a href="https://pyoomph.readthedocs.io/en/latest/tutorial/installation/source/mac.html">here</a> for details. Also, you might have to use a less recent version of python. See <a href="https://github.com/pyoomph/pyoomph/blob/main/Mac_arm64_with_Pardiso.md">here</a> for details.</p>
<codebox>
<p>python3 -m pip install mkl==2021.4.0</p>
</codebox>
<p>Make sure to have the <code>XCode</code> developer tools, e.g., by installing them via</p>
<codebox>
<p>xcode-select --install</p>
</codebox>
<p>and test pyoomph via</p>
<codebox>
<p>python -m pyoomph check all</p>
</codebox>
<center><h2 id="compilation-from-source">Compilation from source</h2></center>
Compilation from source on Linux or Mac systems is described <a href="https://github.com/pyoomph/pyoomph/blob/main/INSTALL.md#compilation-from-source">in our github repository</a> and <a href="https://pyoomph.readthedocs.io/en/latest/tutorial/installation/compile.html">our tutorial</a>.<br>
Just clone our code
<codebox>
<p>git clone <a href="https://github.com/pyoomph/pyoomph.git">https://github.com/pyoomph/pyoomph.git</a></p>
</codebox>
and follow the steps in the file <code>INSTALL.md</code> therein.
</div>