Skip to content

Instantly share code, notes, and snippets.

@bvanderveen
Last active October 4, 2022 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bvanderveen/0d7697b739b3b9497a97 to your computer and use it in GitHub Desktop.
Save bvanderveen/0d7697b739b3b9497a97 to your computer and use it in GitHub Desktop.
How to get Python on OS X

2022 M1 Mac OS 10.12.5

Download OpenSSL 1.1.1q source.

Extract and change into source directory. Applied this workaround (should be fixed in next openssl release, "r").

$ mkdir /opt && chown -R veen:staff /opt
$ ./config --prefix=/opt/openssl-1.1.1q
$ make -j 4 && make install

Download Python 3.10.7 source.

Extract and change into the source directory.


$ ./configure --prefix=/opt/python-3.10.7 --with-openssl=/opt/openssl-1.1.1q
$ make -j 4 && make install

Put /opt/python-3.10.7/bin on your PATH (ahead of /usr/bin).

Install AWS CLI with:

$ cd /opt
$ git clone git@github.com:aws/aws-cli
$ cd aws-cli
$ git checkout v2
$ virtualenv .venv
$ .venv/bin/pip install -r requirements.txt
$ .venv/bin/pip install .

You can now put /opt/aws-cli/.venv/bin on your path and use aws.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment