Kind folks,
Attempting to install the Nordic Connect SDK again after failing several times before. (Always seem to have something slightly wrong in my installation which causes problems later.). So going carefully through the manual installation instructions here, which leads to Step 3 on the Zephyr page for installing west, which appears to succeed:
% pip3 install west Collecting west Using cached west-0.9.0-py3-none-any.whl (79 kB) Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from west) (49.2.1) ... Installing collected packages: west Successfully installed west-0.9.0 %
But when I immediately double-check the version of west, I get:
% west -V zsh: /usr/local/bin/west: bad interpreter: /usr/local/opt/[email protected]/bin/python3.9: no such file or directory West version: v0.9.0 %
Note that this is on a MacBook Pro running macOS Big Sur, which has Python 2.8 and 3.8 installed by default and in the protected system image, so they can't be removed. I have installed Python 3.9.2, but it's found in /usr/local/bin, not /usr/bin (which is in the protected system area). This has caused my lots of grief before with various Python tools, has driven me to careful use of Python virtual environments, and to be suspicious of related issues (e.g., Python use in west).
Does the west error message shown above portend future problems with the tool?
For possible help in deciphering this problem, here are a couple probes into my Python installation:
% python3 -V Python 3.9.2 % where python3 /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 /usr/local/bin/python3 /usr/bin/python3 % /usr/bin/python3 -V Python 3.8.2 % /usr/local/bin/python3 -V Python 3.9.2 % ls -al /usr/local/opt/[email protected]/bin/p* zsh: no matches found: /usr/local/opt/[email protected]/bin/p* % ls -al /usr/local/opt/python* lrwxr-xr-x 1 mike admin 26 Feb 21 13:50 /usr/local/opt/python@3 -> ../Cellar/[email protected]/3.9.2 %
Is this west error significant? Could it be causing problems later? How to correct it?
TIA,
Mike