Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install python version under a different name #218

Open
KenMacD opened this issue Aug 13, 2014 · 6 comments · May be fixed by #2966
Open

Install python version under a different name #218

KenMacD opened this issue Aug 13, 2014 · 6 comments · May be fixed by #2966

Comments

@KenMacD
Copy link

KenMacD commented Aug 13, 2014

What I would like is to install multiple copies of the same version of python, with different build options.

My current solution for this is to download the python-build script and build with
PYTHON_CONFIGURE_OPTS="..." python-build -v 2.7.8 ~/.pyenv/versions/2.7.8-custom1
but what I would rather do is something like
PYTHON_CONFIGURE_OPTS="..." pyenv install 2.7.8 2.7.8-custom1
I think this would most closely match the way virtualenvs are created.

@yyuu
Copy link
Contributor

yyuu commented Aug 14, 2014

There is a plugin s1341/pyenv-alias (see also #167). With the plugin, you can give a custom name for building version. Please give it a try.

env VERSION_ALIAS="2.7.8-custom1" PYTHON_CONFIGURE_OPTS="..." pyenv install 2.7.8

@yyuu
Copy link
Contributor

yyuu commented Oct 9, 2014

This can be solved with using pyenv-alias plugin.

@yyuu yyuu closed this as completed Oct 9, 2014
@nchepanov
Copy link

This can be solved with using pyenv-alias plugin.

Unfortunately not anymore: s1341/pyenv-alias#3 (comment)

I install the same version on Python on my M1 macbook twice: once with arch -x86_64 and once without. This way I can use Python packages that don't provide aarch64 wheels, e.g.

VERSION_ALIAS="3.11.4_x86" arch -x86_64 pyenv install 3.11.4

Is there a new workaround 6 years later with the modern version of pyenv

@ZmicierGT
Copy link

@nchepanov I have the same issue. Seems that this plugin does not work any more.

@13n1n
Copy link

13n1n commented Sep 10, 2024

How about reopen issue, please?

@native-api native-api linked a pull request Sep 11, 2024 that will close this issue
5 tasks
@native-api
Copy link
Member

#2966

@native-api native-api reopened this Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants