• Stars
    star
    664
  • Rank 67,903 (Top 2 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 8 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python plugin for the asdf version manager

asdf-python

Build Status

Python plugin for asdf version manager

Install

asdf plugin-add python

Install with --patch

Enable to fix macOS 11 issues

You can use environment variable ASDF_PYTHON_PATCH_URL to install with --patch like that:

export ASDF_PYTHON_PATCH_URL="https://github.com/python/cpython/commit/8ea6353.patch?full_index=1"
asdf install python 3.6.12

or use environment variable ASDF_PYTHON_PATCHES_DIRECTORY.

Use

Check asdf readme for instructions on how to install & manage versions of Python. Please make sure you have the required system dependencies installed before trying to install Python.

Under the hood, asdf-python uses python-build to build and install Python, check its README for more information about build options and the common build problems wiki page for any issues encountered during installation of python versions.

Using multiple versions of Python

A common request for Python is being able to use the python2 and python3 commands without needing to switch version. This can be achieved by setting multiple versions of Python, for example with

asdf global python 3.6.2 2.7.13

Executables in the first version will take priority over the executables in the next one. Note that you can use an arbitrary number over versions, if needed. With the above example, python will therefore use the python executable found in version 3.6.2. However, as the python2 does not exist in Python 3.6.2, python2 will use the python2 executable found in version 2.7.13.

python -V
Python 3.6.2

python3 -V
Python 3.6.2

python2 -V
Python 2.7.13

Pip installed modules and binaries

If you use pip to install a module like ipython that has binaries. You will need to run asdf reshim python for the binary to be in your path.

Default Python packages

asdf-python can automatically install a default set of Python packages with pip right after installing a Python version. To enable this feature, provide a $HOME/.default-python-packages file that lists one package per line, for example:

ansible
pipenv

You can specify a non-default location of this file by setting a ASDF_PYTHON_DEFAULT_PACKAGES_FILE variable.

More Repositories

1

asdf-direnv

direnv plugin for the asdf version manager
Shell
535
star
2

asdf-golang

Go plugin for the asdf version manager
Shell
522
star
3

asdf-hashicorp

HashiCorp plugin for the asdf version manager
Shell
229
star
4

asdf-php

PHP plugin for the asdf version manager
Shell
214
star
5

asdf-deno

Deno plugin for the asdf version manager
Shell
121
star
6

asdf-kubectl

Kubectl plugin for the asdf version manager
Shell
120
star
7

asdf-flutter

flutter plugin for the asdf version manager
Shell
110
star
8

asdf-rust

Rust plugin for the asdf version manager
Shell
97
star
9

asdf-poetry

Poetry plugin for the asdf version manager
Shell
74
star
10

asdf-crystal

Crystal plugin for the asdf version manager
Shell
73
star
11

asdf-gleam

Gleam plugin for the asdf version manager
Shell
65
star
12

asdf-haskell

Haskell plugin for the asdf version manager
Shell
60
star
13

asdf-link

Use system tools with asdf version manager
Shell
51
star
14

asdf-zig

Zig plugin for the asdf version manager
Shell
43
star
15

asdf-kotlin

Kotlin plugin for the asdf version manager
Shell
40
star
16

asdf-plugin-manager

A plugin manager for the asdf version manager
Shell
38
star
17

asdf-alpine

Alpine Linux docker images of asdf tools
Shell
27
star
18

asdf-ocaml

OCaml plugin for the asdf version manager
Shell
27
star
19

asdf-elm

Elm plugin for the asdf version manager
Shell
25
star
20

asdf-ubuntu

Ubuntu docker images for asdf tools
Shell
23
star
21

asdf-nim

Nim plugin for the asdf version manager
Shell
22
star
22

asdf-scala

Scala plugin for the asdf version manager
Shell
22
star
23

asdf-graalvm

GraalVM plugin for the asdf version manager
Shell
19
star
24

infrastructure

Infrastructure configuration files
HCL
16
star
25

asdf-clojure

Clojure plugin for the asdf version manager
Shell
16
star
26

.github

asdf-community meta repository
15
star
27

asdf-haxe

Haxe plugin for the asdf version manager
Shell
14
star
28

asdf-opam

opam plugin for the asdf version manager
Shell
14
star
29

asdf-racket

Racket plugin for the asdf version manager
Shell
12
star
30

asdf-pdm

PDM plugin for the asdf version manager
Shell
8
star
31

asdf-sml

Standard ML plugin for the asdf version manager
Shell
7
star
32

asdf-ninja

Ninja plugin for the asdf version manager
Shell
7
star
33

asdf-aria2

aria2 plugin for the asdf version manager
Shell
7
star
34

asdf-lfe

LFE plugin for the asdf version manager
Shell
7
star
35

asdf-aocc

AMD Optimizing C/C++ Compiler plugin for the asdf version manager
Shell
6
star
36

asdf-dotty

dotty (Scala 3) plugin for the asdf version manager
Shell
6
star
37

asdf-chezscheme

Chez Scheme plugin for the asdf version manager
Shell
6
star
38

asdf-ccache

ccache plugin for the asdf version manager
Shell
6
star
39

asdf-mlton

MLton plugin for the asdf version manager
Shell
5
star
40

asdf-ktlint

ktlint plugin for the asdf version manager
Shell
5
star
41

asdf-peco

peco plugin for the asdf version manager
Shell
5
star
42

asdf-neko

Neko plugin for the asdf version manager
Shell
5
star
43

asdf-please

Please plugin for the asdf version manager
Shell
5
star
44

asdf-alp

alp plugin for the asdf version manager
Shell
5
star
45

asdf-meson

Meson plugin for the asdf version manager
Shell
5
star
46

asdf-mill

Mill plugin for the asdf version manager
Shell
5
star
47

asdf-idris2

Idris 2 plugin for the asdf version manager
Shell
5
star
48

asdf-lean

Lean plugin for the asdf version manager
Shell
4
star
49

asdf-esy

esy plugin for the asdf version manager
Shell
4
star
50

asdf-tuist

Tuist CLI plugin for the asdf version manager
Shell
4
star
51

asdf-odo

asdf version manager plugin for odo, the developer-focused CLI for fast and iterative application development on Podman, Kubernetes and OpenShift
Shell
4
star
52

asdf-idris

Idris plugin for the asdf version manager
Shell
3
star
53

asdf-quarkus

Quarkus plugin for the asdf version manager
Shell
3
star
54

asdf-rlwrap

rlwrap plugin for the asdf version manager
Shell
3
star
55

asdf-scala-cli

Scala CLI plugin for the asdf version manager
Shell
3
star
56

asdf-grpcurl

gRPCurl plugin for the asdf version manager
Shell
3
star
57

asdf-fstar

FStar plugin for the asdf version manager
Shell
3
star
58

asdf-cue

CUE plugin for the asdf version manager
Shell
2
star
59

asdf-uv

uv plugin for the asdf version manager
Shell
2
star
60

asdf-kiota

kiota plugin for the asdf version manager
Shell
2
star
61

asdf-cmctl

cmctl plugin for the asdf version manager
Shell
2
star
62

asdf-cmake

CMake plugin for the asdf version manager
Shell
2
star
63

asdf-getenvoy

GetEnvoy plugin for the asdf version manager
Shell
2
star
64

asdf-tridentctl

tridentctl plugin for the asdf version manager
Shell
1
star
65

asdf-moonrepo

Moon plugin for the asdf version manager
Shell
1
star
66

asdf-dprint

dprint plugin for the asdf version manager
Shell
1
star
67

asdf-dasel

Dasel plugin for asdf version manager
Shell
1
star
68

asdf-svu

SVU plugin for the asdf version manager
Shell
1
star
69

asdf-regal

regal plugin for the asdf version manager
Shell
1
star
70

asdf-mimirtool

mimirtool plugin for the asdf version manager
Shell
1
star
71

asdf-promtool

promtool plugin for the asdf version manager
Shell
1
star
72

asdf-duckdb

duckdb plugin for the asdf version manager
Shell
1
star