News for hackers. Stuff that matters.
Re:Python 3.11 Performance Benchmarks Are Looking Fantastic by TekMol on Monday June 06, 2022 @01:36PM (#31643316)
Is there an easy way to use Python 3.11 on Debian?
Re:Python 3.11 Performance Benchmarks Are Looking Fantastic by pypanta on Wednesday June 08, 2022 @02:01AM (#31663804)
Try with this tutorial: https://pypanta.github.io/how-to-install-python-from-source-...

I also using Debian 11, and this is how I always install Python from source:

    wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0b3.tgz

    tar xvzf Python-3.11.0b3.tgz
    cd Python-3.11.0b3.tgz

    sudo apt install libssl-dev zlib1g-dev libbz2-dev liblzma-dev libffi-dev tcl-dev libgdbm-dev libsqlite3-dev libreadline-dev tk tk-dev libmpdec-dev

    ./configure --enable-loadable-sqlite-extensions --enable-shared --with-lto --enable-optimizations --with-system-expat --with-system-ffi --with-computed-gotos --with-system-libmpdec --enable-ipv6 CC=x86_64-linux-gnu-gcc

    make
    sudo make altinstall
Re:Python 3.11 Performance Benchmarks Are Looking Fantastic by TekMol on Thursday June 09, 2022 @06:04AM (#31679389)
After that, I have a command "python 3.11" but when I try to run it, I get this:

python3.11: error while loading shared libraries: libpython3.11.so.1.0: cannot open shared object file: No such file or directory

Re:Python 3.11 Performance Benchmarks Are Looking Fantastic by whalesalad on Monday June 06, 2022 @01:42PM (#31643410)
Install dependencies with apt (a few popular pages on google for this). Download tarball. Configure. Final step is ‘make altinstall’ and then you can use it standalone. If you already use virtual environments you would then recreate your venv and the rest of your experience would remain the same. I’d share actual syntax but I’m mobile right now.

Alternatively a tool like pyenv makes this much easier.

Re:Python 3.11 Performance Benchmarks Are Looking Fantastic by TekMol on Monday June 06, 2022 @01:50PM (#31643497)
This might be above my paygrade, but let me try:

>>> Install dependencies with apt (a few popular pages on google for this).

I don't know what this means :) So let's go to step 2:

>>> Download tarball.

Me tries this:

    wget 'https://www.python.org/ftp/python/3.11.0/Python-3.11.0a1.tgz'
>>> Configure.

What does this mean?

>>> make altinstall

I guess I somehow need to untar the tar thing first?

Me tries this:

    tar -xf Python-3.11.0a1.tgz
Hurray, I have a directory :)

Let's cd into it:

    cd Python-3.11.0a1
And now the make altinstall?

    make altinstall
Gives me:

    bash: make: command not found
Hm...

    apt install make
    make altinstall
Gives me:

    make: *** No rule to make target 'altinstall'.  Stop.
Hm... yeah, looks like it is beyond my paygrade.
Re:Python 3.11 Performance Benchmarks Are Looking Fantastic by teddyh on Monday June 06, 2022 @02:06PM (#31643702)
> >>> Configure.

> What does this mean?

It means to run the “./configure” script first, which is normally present in the unpacked tar file. Also, on Debian, to compile programs, you usually first have to install the “build-essential” package.

Re:Python 3.11 Performance Benchmarks Are Looking Fantastic by TingPing on Monday June 06, 2022 @05:18PM (#31646409)
> > Install dependencies with apt (a few popular pages on google for this).

> I don't know what this means :) So let's go to step 2:

`apt-get build-dep python3`

Re:Python 3.11 Performance Benchmarks Are Looking Fantastic by heavyset_go on Monday June 06, 2022 @07:13PM (#31647667)
Check out pyenv, it will automatically build and install 3.11b3 if you ask it to.
Re:Python 3.11 Performance Benchmarks Are Looking Fantastic by TekMol on Thursday June 09, 2022 @05:34AM (#31679257)
How do you ask it to do so?
Re:Python 3.11 Performance Benchmarks Are Looking Fantastic by heavyset_go on Friday June 10, 2022 @09:18PM (#31701094)
This should work assuming you've got your compiler toolchain installed:

    pyenv install 3.11.0b3