`pyenv virtualenv (version) (name)` ignores specified version and uses homebrew's `python` version
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 55/100
Direzione di ricerca
Reproduce by running pyenv virtualenv 3.12.3 myEnv with a Homebrew Python active, then check which interpreter the env's bin symlinks point to and what pyenv virtualenvs reports. The payload names no source files, so start from the plugin's virtualenv command and trace how it resolves the Python executable when a version argument is given. Done means the created env links to the requested 3.12.3 interpreter, not the shell's default.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisite
- Make sure no duplicated issue has already been reported in the pyenv-virtualenv issues. You should look in closed issues, too.
- Make sure you are reporting a problem in Pyenv-Virtualenv and not seeking consultation with Pyenv-Virtualenv use.
- GitHub issues are intended mainly for Pyenv-Virtualenv development purposes. If you are seeking help with Pyenv-Virtualenv use, check Pyenv-Virtualenv documentation, go to a user community site like Gitter, StackOverflow, etc, or to Discussions.
- Make sure your problem is not derived from packaging (e.g. Homebrew).
- Please refer to the package documentation for the installation issues, etc.
- Make sure your problem is not derived from other plugins.
- This repository is maintaining the
pyenv-virtualenvplugin only. Please refrain from reporting issues of other plugins here.
- This repository is maintaining the
Describe the bug
I have a general system-wide python managed by homebrew (for general use outside of projects). and for specific projects I use a virtualenv, managed via pyenv-vertualenv
But for some reason, whenever I create a virtualenv now, it's created under the ~/.pyenv/versions directory that I specify, but it will actually link to whatever version of python the shell I was in was using (generally, /opt/homebrew/opt/[email protected], via system set in ~/.pyenv/version).
Reproduction steps
So I create the virtualenv like
python virtualenv 3.12.3 myEnv
this completes correctly, but when I do pyenv virtualenvs, the new env shows up like
3.12.3/envs/myEnv (created from /opt/homebrew/opt/[email protected])
When I activate myEnv, and do python --version, it says Python 3.14.0
And the symlinks in ~/.pyenv/versions/3.12.3/envs/myEnv/bin all link to /opt/homebrew/opt/[email protected]/bin/python3.14
Diagnostic details
- Platform information: Macos 26.6.2 (Tahoe)
- OS architecture: ARM (Apple M5 Pro?)
- pyenv version: 2.6.12
- pyenv-virtualenv version: 1.2.4
- Python version: system is 3.14, trying to use
3.12.3 - virtualenv version (if installed): none
- Please attach the debug log of a faulty Pyenv invocation as a gist
I don't really have a log to share, there's no error it's just doing the wrong thing.
- Lingua principale
- Shell
- Stelle
- 6.7k
- Fork
- 433
- Merge medio
- 1g 8h
- PR unite (30g)
- 11
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pyenv/pyenv-virtualenv
-
Document the virtualenv, activate and deactivate hooksForse già presa @officialasishkumar l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
pyenv/pyenv-virtualenv#552 ·
I maintainer di solito rispondono entro 1 giorno
-
Creating a virtualenv from system leaves a self-referencing symlink inside itForse già presa @dhananjay6561 l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pyenv/pyenv-virtualenv#548 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
virtualenv-delete with a trailing slash can remove all of $PYENV_ROOT/versionsForse già presa @dhananjay6561 l’ha presa 4 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
pyenv/pyenv-virtualenv#546 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Fish: activating a conda env doesn't set CONDA_PREFIX or run its activate.d/deactivate.d scriptsForse già presa @officialasishkumar l’ha presa oggi. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
pyenv/pyenv-virtualenv#550 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
pyenv/pyenv-virtualenv#524 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di pyenv/pyenv-virtualenv
Issue simili
-
package-update
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug client P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Link Checker ReportApertaautomated issue report
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
rockerBOO/awesome-neovim#2642 ·
I maintainer di solito rispondono entro 3 giorni
-
Add IDs for contributorsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
rocky-linux/documentation#3569 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno