Python Forum
How best to install easygraphics
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How best to install easygraphics
#9
Hi Snippsat again,

1. I tried to install homebrew and I think it was successful, but not sure:

~ % /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebr...er/install)"
Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebr...install.sh)"

==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew

etc etc etc

Eventually it got to the end but i'm not sure if the following 2 Errors are significant
however it does say that the installation was successful ???

Error: Could not link:
/usr/local/share/man/man1/brew.1

Please delete these paths and run brew update.
Error: Could not link:
/usr/local/share/doc/homebrew


Please delete these paths and run brew update.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations

==> Next steps:
- Run brew help to get started
- Further documentation:
https://docs.brew.sh

2. Then I ran a version check
barry@Barrys-Macbook ~ % brew -v
Homebrew 2.2.13
Homebrew/homebrew-core (git revision b5b3b; last commit 2020-04-15)

3. Then tried to install Python

barry@Barrys-Macbook ~ % brew install python3
Updating Homebrew...
==> Installing dependencies for python: gdbm, [email protected], readline, sqlite and xz
==> Installing python dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdb...e.1.tar.gz
######################################################################## 100.0%
==> Pouring gdbm-1.18.1.catalina.bottle.1.tar.gz

etc etc etc

[email protected] is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have [email protected] first in your PATH run:
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc

For compilers to find [email protected] you may need to set:
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
export CPPFLAGS="-I/usr/local/opt/[email protected]/include"

==> Summary
? /usr/local/Cellar/[email protected]/1.1.1f: 8,057 files, 18MB
==> Installing python dependency: readline
==> Downloading https://homebrew.bintray.com/bottles/rea...tle.tar.gz
==> Downloading from https://akamai.bintray.com/6a/6ae1c8e7c7...1de361b5f1
######################################################################## 100.0%
==> Pouring readline-8.0.4.catalina.bottle.tar.gz
==> Caveats
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BSD libedit.


For compilers to find readline you may need to set:
export LDFLAGS="-L/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/opt/readline/include"


--------------------------- and so on -----------------
There are several more caveats and finally one error message, which I'm not happy with

Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
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

To list all files that would be deleted:
brew link --overwrite --dry-run python

Possible conflicting files are:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/3.4/bin/2to3
/usr/local/bin/idle3 -> /Library/Frameworks/Python.framework/Versions/3.4/bin/idle3
/usr/local/bin/pydoc3 -> /Library/Frameworks/Python.framework/Versions/3.4/bin/pydoc3
/usr/local/bin/python3 -> /Library/Frameworks/Python.framework/Versions/3.4/bin/python3
/usr/local/bin/python3-config -> /Library/Frameworks/Python.framework/Versions/3.4/bin/python3-config
/usr/local/bin/pyvenv -> /Library/Frameworks/Python.framework/Versions/3.4/bin/pyvenv
------------ and so on --------------

==> readline
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BSD libedit.


For compilers to find readline you may need to set:
export LDFLAGS="-L/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/opt/readline/include"

==> sqlite
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.


If you need to have sqlite first in your PATH run:
echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc

For compilers to find sqlite you may need to set:
export LDFLAGS="-L/usr/local/opt/sqlite/lib"
export CPPFLAGS="-I/usr/local/opt/sqlite/include"

==> python
Python has been installed as
/usr/local/bin/python3


Unversioned symlinks python, python-config, pip etc. pointing to
python3, python3-config, pip3 etc., respectively, have been installed into
/usr/local/opt/python/libexec/bin

You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python

4. I then did some version checks

barry@Barrys-Macbook ~ % which python
/usr/bin/python
barry@Barrys-Macbook ~ % python --version
Python 2.7.16
barry@Barrys-Macbook ~ % python3 --version
Python 3.4.2

Note that python3 is still the old version 3.4.2 rather than the new one 3.8.2,
so I'm pretty sure homebrew has failed to install Python


What's the best way forward ?

5. Another major problem is I can't find a .profile file with PATH's in it.
I'm running the zsh terminal on my macbook because that is the Catalina default but I can't find a .profile or .zsh_profile or anything like it. There is a very old bash profile which is probably a left over from an earlier macOSX, when bash was the default shell
167 18 Dec 2014 .bash_profile
So if I needed to, how could I create a .zsh_profile file with PATH's in it ??
Thanks again
Reply


Messages In This Thread
How best to install easygraphics - by Barry_Uk - Apr-14-2020, 06:05 PM
RE: How best to install easygraphics - by buran - Apr-14-2020, 06:20 PM
RE: How best to install easygraphics - by snippsat - Apr-14-2020, 06:39 PM
RE: How best to install easygraphics - by Barry_Uk - Apr-14-2020, 09:40 PM
RE: How best to install easygraphics - by Barry_Uk - Apr-14-2020, 10:48 PM
RE: How best to install easygraphics - by snippsat - Apr-15-2020, 01:57 PM
RE: How best to install easygraphics - by Barry_Uk - Apr-15-2020, 04:45 PM
RE: How best to install easygraphics - by snippsat - Apr-15-2020, 06:05 PM
RE: How best to install easygraphics - by Barry_Uk - Apr-15-2020, 11:39 PM
RE: How best to install easygraphics - by snippsat - Apr-16-2020, 06:53 AM
RE: How best to install easygraphics - by Barry_Uk - Apr-16-2020, 12:39 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020