Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
8e6daaa0
Commit
8e6daaa0
authored
2 years ago
by
Ammar Nejati
Browse files
Options
Downloads
Patches
Plain Diff
Doc:Install or build>Install>MacOS: Update the Python installation instructions [MacOS]
parent
f3384f6f
No related branches found
No related tags found
1 merge request
!889
Update the documentation according to the latest changes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hugo/content/installation/install/macos/_index.md
+9
-7
9 additions, 7 deletions
hugo/content/installation/install/macos/_index.md
with
9 additions
and
7 deletions
hugo/content/installation/install/macos/_index.md
+
9
−
7
View file @
8e6daaa0
...
...
@@ -60,18 +60,20 @@ $ sudo port select --set python python36
### Configure Python for BornAgain
To make your Python installation aware of BornAgain, you have to install the BornAgain libraries into the
`site-packages`
of Python.
This can be done by running the
`bornagain_install_python.py`
script from the application bundle. Assuming that BornAgain is installed in the
`/Applications/BornAgain.app`
folder, launch the Terminal application and run the following command:
To make your Python installation aware of BornAgain, you have to install the BornAgain
libraries into the
`site-packages`
of Python.
This can be done by using the Python package ('wheel') included in the application bundle.
Assuming that BornAgain is installed in the
`/Applications/bornagain.app`
folder, launch
the Terminal application and run the following command (note that the location and name
of the wheel depends on the BornAgain and Python versions and the platform):
```
$ python /Applications/
B
orn
A
gain.app/Contents/
libexec/BornAgain-{{< release-string-short >}}/b
orn
a
gain
_python_install.py
$ python
3 -m pip install
/Applications/
b
orn
a
gain.app/Contents/
python/3.9/wheel/B
orn
A
gain
.whl
```
During the execution of the script, just select the default options by pressing the enter key.
This script will install the BornAgain libraries into the site-packages of the given Python interpreter.
For further options, see the official
[
pip's documentation
](
https://pip.pypa.io/en/stable
)
.
Now check
that the installation
went successfully
by typing
Finally, verify
that the installation by typing
```
$ python -c "import bornagain"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment