MacBook-Air:~ twvancamp$ brew install python
Warning: python@3.9 3.9.13_1 is already installed, it's just not linked.
To link this version, run:
brew link python@3.9
MacBook-Air:~ twvancamp$
MacBook-Air:~ twvancamp$ brew link python@3.9
Linking /usr/local/Cellar/python@3.9/3.9.13_1...
Error: Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
rm '/usr/local/bin/2to3'
To force the link and overwrite all conflicting files:
brew link --overwrite python@3.9
To list all files that would be deleted:
brew link --overwrite --dry-run python@3.9
MacBook-Air:~ twvancamp$ brew link --overwrite --dry-run python@3.9
Would remove:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/3.10/bin/2to3
/usr/local/bin/idle3 -> /Library/Frameworks/Python.framework/Versions/3.10/bin/idle3
/usr/local/bin/pydoc3 -> /Library/Frameworks/Python.framework/Versions/3.10/bin/pydoc3
/usr/local/bin/python3 -> /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
/usr/local/bin/python3-config -> /Library/Frameworks/Python.framework/Versions/3.10/bin/python3-config
MacBook-Air:~ twvancamp$ rm '/usr/local/bin/2to3'
MacBook-Air:~ twvancamp$ rm '/usr/local/bin/2to3'
rm: /usr/local/bin/2to3: No such file or directory
MacBook-Air:~ twvancamp$ brew install python
Warning: python@3.9 3.9.13_1 is already installed, it's just not linked.
To link this version, run:
brew link python@3.9
MacBook-Air:~ twvancamp$ brew link python@3.9
Linking /usr/local/Cellar/python@3.9/3.9.13_1...
Error: Could not symlink bin/idle3
Target /usr/local/bin/idle3
already exists. You may want to remove it:
rm '/usr/local/bin/idle3'
To force the link and overwrite all conflicting files:
brew link --overwrite python@3.9
To list all files that would be deleted:
brew link --overwrite --dry-run python@3.9
MacBook-Air:~ twvancamp$ brew link --overwrite python@3.9
Linking /usr/local/Cellar/python@3.9/3.9.13_1... 24 symlinks created.
MacBook-Air:~ twvancamp$ sudo python3 -m pip install configobj
Password:
VanSorry, try again.
Password:
Sorry, try again.
Password:
WARNING: The directory '/Users/twvancamp/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting configobj
Downloading configobj-5.0.6.tar.gz (33 kB)
Preparing metadata (setup.py) ... done
Collecting six
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: configobj
Building wheel for configobj (setup.py) ... done
Created wheel for configobj: filename=configobj-5.0.6-py3-none-any.whl size=34528 sha256=f12db5aa2c496326cafbe91a6332c101be756a25e04378fc2c76cad6ae6d1890
Stored in directory: /private/tmp/pip-ephem-wheel-cache-r6ps7cp6/wheels/4b/35/53/dfa4d3a4196794cb0a777a97c68dcf02b073d33de9c135d72a
Successfully built configobj
Installing collected packages: six, configobj
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Successfully installed configobj-5.0.6 six-1.16.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: There was an error checking the latest version of pip.
MacBook-Air:~ twvancamp$ tar xvfz weewx-X.Y.Z.tar.gz
tar: Error opening archive: Failed to open 'weewx-X.Y.Z.tar.gz'
MacBook-Air:~ twvancamp$
cd: no such file or directory: weewx-X.Y.Z
Is that directory something I need to create?