<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi John,<div><br></div><div>Many, many thanks. Things worked similarly to your setup after I moved</div><div># ------------ below ------------ </div><div><div># !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  230809 ~0940</div><div># https://towardsdatascience.com/the-ultimate-python-and-tensorflow-set-up-guide-for-apple-silicon-macs-m1-m2-e9ef304a2c06</div><div>#</div><div># homebrew setup, following https://noahpeeters.de/posts/apple-silicon/homebrew-setup/</div><div>#</div><div>if [ -d "/opt/homebrew/bin" ]; then</div><div>    export PATH="/opt/homebrew/bin:$PATH"</div><div>fi</div><div># ------------ above ——————</div><div><br></div><div>from .bashrc to .bash_profile. I don’t understand why PATH didn’t contain /opt/homebrew/bin earlier but it does now.</div><div><br></div><div>Again, many thanks.</div><div><br></div><div>Cheers,</div><div>  Jon</div><div><br></div><div><div style="text-align: -webkit-auto; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; orphans: 2; widows: 2; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Jon.Sauer@gmail.com</div><div style="text-align: -webkit-auto; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; orphans: 2; widows: 2; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">cell: +1.303.579.3009</div><div style="text-align: -webkit-auto; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; orphans: 2; widows: 2; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">White River Junction, VT, USA</div></div><div><br><blockquote type="cite"><div>On Sep 5, 2023, at 1:11 PM, jcupitt@gmail.com wrote:</div><br class="Apple-interchange-newline"><div><div>I tried on my M2 mac mini and it seemed to work well with brew.<br><br>I have brew like this:<br><br>john@cheese ~/try $ echo $PATH<br>/Users/john/vips/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:...<br>etc.Z<br><br>And I've put openslide, python and pip on like this:<br><br>john@cheese ~/try $ brew install openslide<br>Warning: openslide 3.4.1_8 is already installed and up-to-date.<br>To reinstall 3.4.1_8, run:<br>  brew reinstall openslide<br>john@cheese ~/try $ which pip<br>/opt/homebrew/bin/pip<br>john@cheese ~/try $ which python3<br>/opt/homebrew/bin/python3<br><br>I then installed openslide-python with pip:<br><br>john@cheese ~/try $ pip install openslide-python<br>Collecting openslide-python<br>  Downloading openslide-python-1.3.0.tar.gz (358 kB)<br>     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 358.9/358.9 kB 6.0 MB/s eta 0:00:00<br>  Preparing metadata (setup.py) ... done<br>Collecting Pillow (from openslide-python)<br>  Obtaining dependency information for Pillow from<br>https://files.pythonhosted.org/packages/b7/ad/71982d18fd28ed1f93c31b8648f980ebdbdbcf7d8c9c9b4af59290914ce9/Pillow-10.0.0-cp311-cp311-macosx_11_0_arm64.whl.metadata<br>  Downloading Pillow-10.0.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (9.5 kB)<br>Downloading Pillow-10.0.0-cp311-cp311-macosx_11_0_arm64.whl (3.1 MB)<br>   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 4.9 MB/s eta 0:00:00<br>Building wheels for collected packages: openslide-python<br>  Building wheel for openslide-python (setup.py) ... done<br>  Created wheel for openslide-python:<br>filename=openslide_python-1.3.0-cp311-cp311-macosx_13_0_arm64.whl<br>size=26428 sha256=e79d62ff8af5eadb9c3c26495448012dbcae458e411b47a4a86067033a47fc0c<br>  Stored in directory:<br>/Users/john/Library/Caches/pip/wheels/75/f2/b4/8a416a8f3c107db18b12d6255bcc00e4d6aa589d538395207c<br>Successfully built openslide-python<br>Installing collected packages: Pillow, openslide-python<br>Successfully installed Pillow-10.0.0 openslide-python-1.3.0<br><br>And I could now import openslide:<br><br>john@cheese ~/try $ python3<br>Python 3.11.5 (main, Aug 24 2023, 15:09:45) [Clang 14.0.3<br>(clang-1403.0.22.14.1)] on darwin<br>Type "help", "copyright", "credits" or "license" for more information.<br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">import openslide<br><br></blockquote></blockquote></blockquote><br>Hope this helps,<br><br>John<br></div></div></blockquote></div><br></div></body></html>