Skip to content

instant_gratification

David Banas edited this page Jun 11, 2024 · 41 revisions

Installation and Setup

Note: As of release v6 PyBERT is now Pip-installable; no more Conda!

Note: The older Macs w/ Intel silicon are no longer supported.

1 - Python Virtual Environment Creation and Activation

Note: DO NOT SKIP THIS STEP! It protects your already installed system Python environment from corruption.

  1. python3 -m venv ~/.venv/pybert6 (If this fails, try just "python".)
  2. source ~/.venv/pybert6/bin/activate (Windows: source ~\.venv\pybert6\Scripts\activate)

Windows Users Only (And only if the above doesn't work for you.)

  1. %PYTHON% -m venv %HOMEPATH%/.venv/pybert6
  2. %HOMEPATH%\.venv\pybert6\Scripts\activate.bat

2 - Customized Dependency Installation for Python 3.12 Users Only

Note: This section is for Python 3.12 users only. If you are running Python 3.9,10,11 then skip ahead to step 3.

With Python 3.12, two of PyBERT's dependencies: Chaco and Enable exhibit fragile building and installation, in the wild. So, I have built known working versions of these, for your convenience.

Windows

  1. pip install https://github.com/capn-freako/PyBERT/raw/master/deps/enable-6.1.0.dev0-cp312-cp312-win_amd64.whl
  2. pip install https://github.com/capn-freako/PyBERT/raw/master/deps/chaco-6.0.0-cp312-cp312-win_amd64.whl

Mac M1/M2 (Mac Intel is no longer suppported.)

  1. pip install https://github.com/capn-freako/PyBERT/raw/master/deps/enable-6.1.0.dev0-cp312-cp312-macosx_12_0_arm64.whl
  2. pip install https://github.com/capn-freako/PyBERT/raw/master/deps/chaco-6.0.0-cp312-cp312-macosx_12_0_arm64.whl

Linux

(Python 3.12 is not yet available for Ubuntu 22.04.)

3 - PyBERT Installation and Testing

  1. pip install PipBERT
  2. pybert (The warning messages may safely be ignored.)

Please: If you find any of the above broken then let me know, by sending e-mail to: [email protected], giving me the terminal output and your machine description, so that I can fix things for you. Thanks! :)