![]() ![]() The latest Python versions detected will depend on the version of OrcaFlex you have (see the table below). When using embedded Python, OrcaFlex detects the latest Python 2 or Python 3 version it can find installed. This allows OrcaFlex to execute Python code directly from the OrcaFlex process. When executing Python scripts external functions, post calculation actions and user defined results, OrcaFlex uses embedded Python. Python can be downloaded from and is simple to install (full details are given with the downloads): See Getting NumPy and other packages for the standard Python below for information on obtaining third party modules. The latter is a good source for 64 bit pre-compiled binary third party Python packages for the latest Python versions, the former repository is used by Python's convenient built in package installer – pip. ![]() Python modules can be obtained from the PyPI package repository and also from Christoph Gohlke's page. NumPy is required in order to use the Python interface. Python has a comprehensive set of supporting libraries, including NumPy and SciPy, which provide some useful functions for scientific computing, see for more details. ![]() Either option will work with OrcaFlex, and there's little to choose between these two options. If you are using OrcaFlex 9.6 or later you have the choice of either 32 bit or 64 bit Python. ![]() Official support for Python 2.7 will end in 2020, so we recommend using Python 3 unless a particular module you require is only available for Python 2, or you need to maintain compatibility with existing Python scripts you use. Python 2.7 has now been declared a legacy version, with all new development occurring in Python 3 ( Python wiki: Python 2 or Python 3). The Python interface to OrcaFlex requires Python version 2.7 or Python version 3.4 to 3.10 inclusive. To use the Python interface to OrcaFlex you need to install Python and also the interface files OrcFxAPI.py and OrcFxAPIConfig.py that we supply – see below. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |