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

Does Pyenv work on A-Shell or is there a way to run different Python versions? #600

Open
YousufSSyed opened this issue Apr 4, 2023 · 6 comments

Comments

@YousufSSyed
Copy link

I want to see if I can install Pywb, but it doesn't work on 3.11.

@holzschu
Copy link
Owner

holzschu commented Apr 4, 2023

  • there's no way to have several Python versions for the time being (because binaries have to ship with the app, that would require increasing the size of the app too much). That might change in the future.
  • venv works for virtual environments (as long as you stick to pure Python packages):
    • python -m venv env,
    • followed by source env/bin/activate to activate the new environment,
    • deactivate to deactivate the environment.

@YousufSSyed
Copy link
Author

Would it be possible for you / A-Shell to provide python versions to download onto the app after installing it?

@holzschu
Copy link
Owner

holzschu commented Apr 4, 2023

No, that is the main issue: anything that is a binary (a command or a dynamic library) has to ship with the app. Only non-executable files can be downloaded after the installation.

@YousufSSyed
Copy link
Author

How come its possible to install pip packages but not python vesions like that?

@holzschu
Copy link
Owner

holzschu commented Apr 4, 2023

pip in a-Shell only works with "pure Python" packages, packages that only include Python files. If you try to pip install packages with dynamic libraries, C files or Cython files, you will see a failure as well.

@YousufSSyed
Copy link
Author

YousufSSyed commented Apr 4, 2023

So it wouldn't be possible to precompile Python for A-Shell and then enter commands to download them from a mirror?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants