Giter VIP home page Giter VIP logo

homebrew-python's Introduction

homebrew-python

About this project

This Homebrew tap provides formulae to install multiple Python versions.

Python Version Latest revision
Python 3.7 3.7.13
Python 3.8 3.8.13

Installing formulae

Replace X in examples below with minor version of Python -- 7 for Python 3.7, or 8 for Python 3.8.

Python 3.X will be installed into /usr/local/opt/[email protected], as a keg, i.e without linking into /usr/local/bin in order to avoid conflicts with the python formulae.

brew install sashkab/python/[email protected]

You can use it to create a virtual environment by passing full path to the Python executable:

/usr/local/opt/[email protected]/bin/python3.X -mvenv <path to venv>

In order to update to latest version of pip, setuptools and wheel, use following command:

/usr/local/opt/[email protected]/bin/python3.X -mpip install -U pip setuptools wheel

Deprecations

Python 2.7

Python 2.7 has been removed from this repository in early January 2020 after it reached end-of-life. See #46 for details.

Python 3.6

Python 3.6 has been removed from this repository in March 2022 after it reached end-of-life.

Acknowledgement

This repository started as a fork of the zoidbergwill/homebrew-python.

homebrew-python's People

Contributors

sashkab avatar wasabi0522 avatar zoidyzoidzoid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

homebrew-python's Issues

brew [email protected] failing

Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000
MacOS 12.3 Apple M1

% brew install sashkab/python/[email protected]
==> Downloading https://pypi.org/packages/source/s/setuptools/setuptools-58.0.3.tar.gz
==> Downloading from https://files.pythonhosted.org/packages/6d/f2/85d487d516e7319fad8052a6bb4a4447244e59f830d17515fb40d3141072/setuptools-58.0.3.tar.gz
######################################################################## 100.0%
==> Downloading https://www.pypi.org/packages/source/p/pip/pip-21.2.4.tar.gz
==> Downloading from https://files.pythonhosted.org/packages/52/e1/06c018197d8151383f66ebf6979d951995cf495629fc54149491f5d157d0/pip-21.2.4.tar.gz
######################################################################## 100.0%
==> Downloading https://pypi.org/packages/source/w/wheel/wheel-0.37.0.tar.gz
==> Downloading from https://files.pythonhosted.org/packages/4e/be/8139f127b4db2f79c8b117c80af56a3078cc4824b5b94250c7f81a70e03b/wheel-0.37.0.tar.gz
######################################################################## 100.0%
==> Downloading https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tar.xz
######################################################################## 100.0%
==> Installing [email protected] from sashkab/python
==> ./configure --prefix=/opt/homebrew/Cellar/[email protected]/3.6.15 --enable-ipv6 --datarootdir=/opt/homebrew/Cellar/[email protected]/3.6.15/share --datadir=/opt/homebrew/Cellar/[email protected]/3.6.15/share --enable-framework=/opt/homebrew/Cellar/[email protected]/3.
Last 15 lines from /Users/rdhingra/Library/Logs/Homebrew/[email protected]/01.configure:
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for a sed that does not truncate output... /usr/bin/sed
checking for --with-cxx-main=... no
checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a bug report

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/sashkab/homebrew-python/issues

Would be good to install PythonXYZ

Would be good to install PythonXYZ, so that if I really need to use Python-3.6.5 for one project and Python-3.6.6 for another, than I can.

Is that possible or just too hard?

brew fails for old version Python 3.5

I have installed Python 3.5 using this formula, but after updating brew gave me an error when running brew list sashkab/python/[email protected] to check if it is installed:

bash-3.2$ brew list  sashkab/python/[email protected]
Error: No available formula with the name "sashkab/python/[email protected]".

Also brew info gives me a similar error:

bash-3.2$ brew info sashkab/python/[email protected]
Error: No available formula or cask with the name "sashkab/python/[email protected]".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.

We use automated scripts (Ansible) to maintain our CI runners and we need Python 3.5 for legacy reasons. Is there a way to keep supporting Python 3.5?

Can't install python38

I just followed the README:

brew install sashkab/python/python38
==> Tapping sashkab/python
Cloning into '/usr/local/Homebrew/Library/Taps/sashkab/homebrew-python'...
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 11 (delta 4), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (11/11), done.
Tapped 5 formulae (42 files, 116.4KB).
Error: No available formula with the name "sashkab/python/python38"
==> Searching for a previously deleted formula (in the last month)...
Warning: sashkab/python is shallow clone. To get complete history run:
  git -C "$(brew --repo sashkab/python)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.

Would be good to have bottles

Would be good to have bottles, for quicker installs and also know the exact binaries people have installed.
Is that possible or just too hard?

Deprecation of universal part

Apple removed i386 SDK in the latest version of Command Line Tools for Xcode 10.0 on 10.13.x. Only way right now is to use Command_Line_Tools_macOS_10.13_for_Xcode_9.4.1.

Support for Py 3.6.8

Thank you for the wonderful repo for easy installation of Python. May i ask if there is a way you can provide 3.6.8 as well? Not sure how difficult it is.

failing on Big Sur Mac Book Pro M1 2020

==> Downloading https://pypi.org/packages/source/s/setuptools/setuptools-58.0.3.tar.gz
==> Downloading from https://files.pythonhosted.org/packages/6d/f2/85d487d516e7319fad8052a6bb4a4447244e59f830d17515fb40d3141072/setuptools-58.0.3.tar.gz
######################################################################## 100.0%
==> Downloading https://www.pypi.org/packages/source/p/pip/pip-21.2.4.tar.gz
==> Downloading from https://files.pythonhosted.org/packages/52/e1/06c018197d8151383f66ebf6979d951995cf495629fc54149491f5d157d0/pip-21.2.4.tar.gz
######################################################################## 100.0%
==> Downloading https://pypi.org/packages/source/w/wheel/wheel-0.37.0.tar.gz
==> Downloading from https://files.pythonhosted.org/packages/4e/be/8139f127b4db2f79c8b117c80af56a3078cc4824b5b94250c7f81a70e03b/wheel-0.37.0.tar.gz
######################################################################## 100.0%
==> Downloading https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tar.xz
######################################################################## 100.0%
==> Installing [email protected] from sashkab/python
==> ./configure --prefix=/opt/homebrew/Cellar/[email protected]/3.6.15 --enable-ipv6 --datarootdir=/opt/homebrew/Cellar/[email protected]/3.6.15/share --datadir=/opt/homebr
Last 15 lines from /Users/awadhesh.tanwar/Library/Logs/Homebrew/[email protected]/01.configure:
checking size of float... 4
checking size of double... 8
checking size of fpos_t... 8
checking size of size_t... 8
checking size of pid_t... 4
checking size of uintptr_t... 8
checking for long double support... yes
checking size of long double... 8
checking size of _Bool... 1
checking size of off_t... 8
checking whether to enable large file support... no
checking size of time_t... 8
checking for pthread_t... yes
checking size of pthread_t... 8
configure: error: Unexpected output of 'arch' on OSX

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/sashkab/homebrew-python/issues

Can not download python3.6

Hi! I am trying to use your amazing library but I can't, do you know what can be the issue?

Command that I am using

brew install sashkab/python/[email protected]

The output that I get:

Error: No available formula or cask with the name "sashkab/python/[email protected]".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.

Unable to install

~/code/renaissance master ODRL97H-M
brew install sashkab/python/[email protected] -130-
==> Tapping sashkab/python
Cloning into '/opt/homebrew/Library/Taps/sashkab/homebrew-python'...
remote: Enumerating objects: 1499, done.
remote: Counting objects: 100% (151/151), done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 1499 (delta 87), reused 116 (delta 56), pack-reused 1348
Receiving objects: 100% (1499/1499), 344.69 KiB | 1.35 MiB/s, done.
Resolving deltas: 100% (807/807), done.
Tapped 3 formulae (18 files, 435.4KB).
==> Downloading https://pypi.org/packages/source/s/setuptools/setuptools-58.0.3.tar.gz
==> Downloading from https://files.pythonhosted.org/packages/6d/f2/85d487d516e7319fad8052a6bb4a4447244e59f830d17515fb40d3141072/setuptools-58.0.3.tar.gz
######################################################################## 100.0%
==> Downloading https://www.pypi.org/packages/source/p/pip/pip-21.2.4.tar.gz
==> Downloading from https://files.pythonhosted.org/packages/52/e1/06c018197d8151383f66ebf6979d951995cf495629fc54149491f5d157d0/pip-21.2.4.tar.gz
######################################################################## 100.0%
==> Downloading https://pypi.org/packages/source/w/wheel/wheel-0.37.0.tar.gz
==> Downloading from https://files.pythonhosted.org/packages/4e/be/8139f127b4db2f79c8b117c80af56a3078cc4824b5b94250c7f81a70e03b/wheel-0.37.0.tar.gz
######################################################################## 100.0%
==> Downloading https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tar.xz
######################################################################## 100.0%
==> Installing [email protected] from sashkab/python
==> ./configure --prefix=/opt/homebrew/Cellar/[email protected]/3.6.15 --enable-ipv6 --datarootdir=/opt/homebrew/Cellar/[email protected]/3.6.15/share --datadir=/opt/homebrew/Cellar/pyt
Last 15 lines from /Users/skn/Library/Logs/Homebrew/[email protected]/01.configure:
checking size of float... 4
checking size of double... 8
checking size of fpos_t... 8
checking size of size_t... 8
checking size of pid_t... 4
checking size of uintptr_t... 8
checking for long double support... yes
checking size of long double... 8
checking size of _Bool... 1
checking size of off_t... 8
checking whether to enable large file support... no
checking size of time_t... 8
checking for pthread_t... yes
checking size of pthread_t... 8
configure: error: Unexpected output of 'arch' on OSX

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/sashkab/homebrew-python/issues

Request 3.6 return to the repository.

Hello,

Requesting 3.6 return to the repository, I know its reached end of life, but 3.6 is currently the only working version for OBS studio.

Thank you so much.

Benjamin

Installation of Python 3.6 not successful

The installation runs through without any errors. I can't find it afterwards though. I cannot even uninstall it. Homebrew says, the keg doesn't exist.

>>> brew install sashkab/python/python36
==> Installing python36 from sashkab/python
==> Installing dependencies for sashkab/python/python36: sashkab/universal/ureadline, sashkab/universal/usqlite and sashkab/universal/uxz
==> Installing sashkab/python/python36 dependency: sashkab/universal/ureadline
==> Downloading https://ftp.gnu.org/gnu/readline/readline-7.0.tar.gz
Already downloaded: /Users/melvin/Library/Caches/Homebrew/downloads/3efa4f3e86cf16f188dc7b581fb9c893773325c8e78806f3be7b979a14e2e7b8--readline-7.0.tar.gz
==> Downloading https://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-001
Already downloaded: /Users/melvin/Library/Caches/Homebrew/downloads/8b9fdb5b7d957c8fcc7371159fba70cf3a10db4b29c5fab8eda84d7e3cc1034a--readline70-001
==> Downloading https://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-002
Already downloaded: /Users/melvin/Library/Caches/Homebrew/downloads/1eb61147f1bc9bff3838720641389af32ce28a6ed1cf5aaa89e25859f223c1cf--readline70-002
==> Downloading https://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-003
Already downloaded: /Users/melvin/Library/Caches/Homebrew/downloads/b226318ad52aa5a9f0a2c7034b6569b51236ccb3903aa2154a24bc252f7f66fc--readline70-003
==> Downloading https://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-004
Already downloaded: /Users/melvin/Library/Caches/Homebrew/downloads/62ca2f232ad4cca34da7c1e78ed796abeed0a9c881c4159cfc0adc7120dead74--readline70-004
==> Downloading https://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-005
Already downloaded: /Users/melvin/Library/Caches/Homebrew/downloads/5d62e790013b5a54f69fe843be026a3d2f5859d1ef38f294c4f035b900011711--readline70-005
==> Patching
==> Applying readline70-001
patching file history.c
patching file patchlevel
==> Applying readline70-002
patching file history.c
patching file patchlevel
==> Applying readline70-003
patching file input.c
patching file patchlevel
==> Applying readline70-004
patching file display.c
patching file patchlevel
==> Applying readline70-005
patching file readline.c
patching file patchlevel
==> ./configure --prefix=/usr/local/Cellar/ureadline/7.0.5_3
Last 15 lines from /Users/melvin/Library/Logs/Homebrew/ureadline/01.configure:

./configure
--prefix=/usr/local/Cellar/ureadline/7.0.5_3

checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0

Beginning configuration for readline-7.0 for x86_64-apple-darwin18.2.0

checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/private/tmp/ureadline-20181217-7111-zqmtj6/readline-7.0':
configure: error: C compiler cannot create executables
See `config.log' for more details

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/sashkab/homebrew-universal/issues

>>> brew uninstall sashkab/python/python36
Error: No such keg: /usr/local/Cellar/python36
>>> brew uninstall python36
Error: No such keg: /usr/local/Cellar/python36

Add Python 2.7

Since we already mirror current python3 package, why not mirror Python 2.7 here too?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.