momo-lab / xxenv-latest Goto Github PK
View Code? Open in Web Editor NEWThis **env(pyenv, rbenv, nodenv, goenv, phpenv, luaenv) plugin replaces the version specified in the argument with the latest version.
License: MIT License
This **env(pyenv, rbenv, nodenv, goenv, phpenv, luaenv) plugin replaces the version specified in the argument with the latest version.
License: MIT License
The latest update to pyenv has added native support for installing the latest python version for a given prefix. At the same time, it has made use of the python latest
command for a different purpose. Details here https://github.com/pyenv/pyenv#prefix-auto-resolution
Using this plugin is now no longer required with pyenv and will fail with the following error if used
pyenv: no installed versions match the prefix `install'
The "fix" for users is to uninstall this plugin and to change instances of the install command to remove the latest
keyword.
Do you plan to add support for goenv ?
nodenv latest install
is currently selecting 9.11.2
as latest. Reverting #19 from yesterday selects the correct 17.3.1
instead.
toilal@toilal-ubuntu:~$ pyenv latest local 3.7
Latest version is '3.7.3/envs/3.7.3-nodeenv'
(3.7.3/envs/3.7.3-nodeenv) toilal@toilal-ubuntu:~$
I would expect to select the raw 3.7.3, not a virtualenv.
toilal@toilal-ubuntu:~$ pyenv latest local 3.7.3
Latest version is '3.7.3'
toilal@toilal-ubuntu:~$
pyenv latest install
fails, presumably because pyenv install
output includes spaces
$ pyenv latest install
Latest version is ' 3.8.5'
Usage: pyenv install [-f] [-kvp] <version>
# ... pyenv install output continues
same with pyenv latest install 3.8.5
$ pyenv install -l | grep 3.8
3.8.0
3.8-dev
3.8.1
3.8.2
3.8.3
3.8.4
3.8.5
miniconda-3.8.3
miniconda3-3.8.3
pyenv virtualenv 3.8.5 projname
works
$ pyenv versions
* system (set by /Users/myusername/.pyenv/version)
3.8.5
3.8.5/envs/projname
projname
macOS 10.15.6 Catalina
pyenv installed via homebrew
$ pyenv -v
pyenv 1.2.20
$ nodenv latest -p chakracore
chakracore-nightly
on macOS Mojave, iTerm2, zsh 5.7.1:
$ which head
/usr/bin/head
$ pyenv latest uninstall 3.7
head: illegal option -- -
usage: head [-n lines | -c bytes] [file ...]
man head
gives:
HEAD(1) BSD General Commands Manual HEAD(1)
NAME
head -- display first lines of a file
SYNOPSIS
head [-n count | -c bytes] [file ...]
DESCRIPTION
This filter displays the first count lines or bytes of each of the specified files, or of the standard input if no files
are specified. If count is omitted it defaults to 10.
If more than a single file is specified, each file is preceded by a header consisting of the string ``==> XXX <=='' where
``XXX'' is the name of the file.
EXIT STATUS
The head utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
tail(1)
HISTORY
The head command appeared in PWB UNIX.
BSD June 6, 1993 BSD
I tried this:
- for version in $(get_local_versions $version_prefix | head --lines=-1); do
+ for version in $(get_local_versions $version_prefix | head -n=-1); do
But it gave:
$ pyenv latest uninstall 3.7
head: illegal line count -- =1
What version of head
was this written for, and what does --lines=-1
do?
$ phpenv latest -p anaconda2
Version 'anaconda2' is not found.
Thanks for this plugin.
It works nicely with CPython, but pypy support doesn't solves to latest version.
pyenv latest install pypy
Latest version is 'pypy-stm-2.5.1'
But it should gives pypy-5.7.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.