Skip to content

Installing AUSAXS

Install AUSAXS on any platform by opening a terminal and typing:

python -m pip install "pyausaxs[all]"
This installs both the Python package and the ausaxs command, together with the optional plotting and graphical interface dependencies. Check that it works by running:
ausaxs --version

If something goes wrong, see the troubleshooting page.

Terminal says ausaxs is not found?

The folder pip installed ausaxs into is not on your PATH. This mostly happens on Windows, and sometimes on macOS. Add the folder to your PATH by running the commands for your platform, then open a new terminal and try ausaxs --version again:

In PowerShell:

$dir = python -c "from importlib.metadata import files; print(next(f.locate().resolve().parent for f in files('pyausaxs') if f.stem == 'ausaxs'))"
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$dir", "User")

dir=$(python -c "from importlib.metadata import files; print(next(f.locate().resolve().parent for f in files('pyausaxs') if f.stem == 'ausaxs'))")
echo "export PATH=\"\$PATH:$dir\"" >> ~/.zshrc
dir=$(python -c "from importlib.metadata import files; print(next(f.locate().resolve().parent for f in files('pyausaxs') if f.stem == 'ausaxs'))")
echo "export PATH=\"\$PATH:$dir\"" >> ~/.bashrc

The rest of this documentation assumes ausaxs is on your PATH. If you would rather not change it, python -m pyausaxs works in place of ausaxs in every command, e.g. python -m pyausaxs --version.

Next steps

Other ways to install

If you cannot use Python, you can instead download a precompiled executable or compile AUSAXS from source.