BTW: install steps is: 0: base ARM version Homebrew install Python@3.10 1: usage it create venv ༄ python3.10 -m venv .py310leo 2: activate it ༄ source .py310leo/bin/activate 3: base pip install Leo
༄ pip install leo Zoom.Quiet <zoom.qu...@gmail.com> 于2022年5月6日周五 20:01写道: > > in the old MBP i install Leo flow > Installing Leo — Leo 6.6.1 documentation > https://leoeditor.com/installing.html#installing-leo-with-pip > (in fact "Installing Leo on MacOs 10.7 (Lion) and later¶" chapter is my > logging) > > after upgrade into M1max MBP and macOS 12.3.1, some thing is change; > i tried: > - PyENV, can not complile python 3.10.* > - Anaconda, can create py3.10 env, but can usage pip install Leo > - ... > > so try install the lasted Leo with Homebrew Python > > ༄ abrew info python@3.10 > python@3.10: stable 3.10.4 (bottled) [keg-only] > Interpreted, interactive, object-oriented programming language > https://www.python.org/ > /opt/homebrew/Cellar/python@3.10/3.10.4 (3,165 files, 57.7MB) > Poured from bottle on 2022-05-06 at 12:16:44 > From: > https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/pyt...@3.10.rb > License: Python-2.0 > ==> Dependencies > Build: pkg-config ✔ > Required: gdbm ✔, mpdecimal ✔, openssl@1.1 ✔, readline ✔, sqlite ✔, xz ✔ > ==> Caveats > Python has been installed as > /opt/homebrew/opt/python@3.10/bin/python3 > > Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to > `python3`, `python3-config`, `pip3` etc., respectively, have been installed > into > /opt/homebrew/opt/python@3.10/libexec/bin > > You can install Python packages with > /opt/homebrew/opt/python@3.10/bin/pip3 install <package> > They will install into the site-package directory > /opt/homebrew/lib/python3.10/site-packages > > tkinter is no longer included with this formula, but it is available > separately: > brew install python-tk@3.10 > > See: https://docs.brew.sh/Homebrew-and-Python > > python@3.10 is keg-only, which means it was not symlinked into /opt/homebrew, > because this is an alternate version of another formula. > > If you need to have python@3.10 first in your PATH, run: > echo 'export PATH="/opt/homebrew/opt/python@3.10/bin:$PATH"' >> > /Users/zoomq/.bash_profile > > For compilers to find python@3.10 you may need to set: > export LDFLAGS="-L/opt/homebrew/opt/python@3.10/lib" > > For pkg-config to find python@3.10 you may need to set: > export PKG_CONFIG_PATH="/opt/homebrew/opt/python@3.10/lib/pkgconfig" > > ==> Analytics > install: 327,625 (30 days), 1,043,942 (90 days), 2,203,047 (365 days) > install-on-request: 78,597 (30 days), 260,440 (90 days), 359,785 (365 days) > build-error: 328 (30 days) > > but when i try pip install leo: > > ༄ pip install leo > Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ > Collecting leo > Downloading > https://mirrors.aliyun.com/pypi/packages/52/d5/3e0b42cd0a41046ba583ea9e04dcc0e4b7d6454d5d41ce9cf1350f360800/leo-6.6.1-py3-none-any.whl > (13.3 MB) > ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.3/13.3 MB 2.0 MB/s eta > 0:00:00 > Collecting PyQtWebEngine > Downloading > https://mirrors.aliyun.com/pypi/packages/60/66/56e118abb4cddd8e4bea6f89bdec834069b52479fb991748f1b21950811e/PyQtWebEngine-5.15.5.tar.gz > (48 kB) > ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.6/48.6 KB 1.7 MB/s eta > 0:00:00 > Installing build dependencies ... done > Getting requirements to build wheel ... done > Preparing metadata (pyproject.toml) ... error > error: subprocess-exited-with-error > > × Preparing metadata (pyproject.toml) did not run successfully. > │ exit code: 1 > ╰─> [8 lines of output] > Querying qmake about your Qt installation... > /opt/homebrew/bin/qmake -query > These bindings will be built: QtWebEngineCore, QtWebEngine, > QtWebEngineWidgets. > Generating the QtWebEngineCore bindings... > _in_process.py: > /private/var/folders/pl/8rsjzmjn2ybgd71lwqf3lxw80000gp/T/pip-install-2ob2v5nn/pyqtwebengine_bbfdebdd8f894252872cafbbe5a825b3/sip/QtWebEngineCore/QtWebEngineCoremod.sip: > line 25 column 9: 'QtCore/QtCoremod.sip' could not be found > > /private/var/folders/pl/8rsjzmjn2ybgd71lwqf3lxw80000gp/T/pip-install-2ob2v5nn/pyqtwebengine_bbfdebdd8f894252872cafbbe5a825b3/sip/QtWebEngineCore/QtWebEngineCoremod.sip: > line 26 column 9: 'QtGui/QtGuimod.sip' could not be found > > /private/var/folders/pl/8rsjzmjn2ybgd71lwqf3lxw80000gp/T/pip-install-2ob2v5nn/pyqtwebengine_bbfdebdd8f894252872cafbbe5a825b3/sip/QtWebEngineCore/QtWebEngineCoremod.sip: > line 27 column 9: 'QtNetwork/QtNetworkmod.sip' could not be found > > /private/var/folders/pl/8rsjzmjn2ybgd71lwqf3lxw80000gp/T/pip-install-2ob2v5nn/pyqtwebengine_bbfdebdd8f894252872cafbbe5a825b3/sip/QtWebEngineCore/qwebengineclientcertificatestore.sip: > line 24 column 6: 'PyQt_SSL' is not a known qualifier > [end of output] > > note: This error originates from a subprocess, and is likely not a > problem with pip. > error: metadata-generation-failed > > × Encountered error while generating package metadata. > ╰─> See above for output. > > note: This is an issue with the package mentioned above, not pip. > hint: See above for details. > > how to fix it ? > > > > ---------------- > life is pathetic, go Pythonic. 人生苦短, Python当歌 ;-) > 课: https://py.101.camp/ > 怼: https://du.101.camp/ > 俺: http://zoomquiet.io > 许: http://creativecommons.org/licenses/by-sa/2.5/cn/ > 怒: 冗余不做,日子甭过!备份不做,十恶不赦. > KM keep growing environment culture which promoting organization learning ;-) -- ---------------- life is pathetic, go Pythonic. 人生苦短, Python当歌 ;-) 课: https://py.101.camp/ 怼: https://du.101.camp/ 俺: http://zoomquiet.io 许: http://creativecommons.org/licenses/by-sa/2.5/cn/ 怒: 冗余不做,日子甭过!备份不做,十恶不赦. KM keep growing environment culture which promoting organization learning ;-) -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAAFijRcO8gaU1_Vmnhu1rhR%3DbwZPX8NubhTgMtXP1BMTFVKeig%40mail.gmail.com.