Comments on: How to Install Python 3.9 on Debian 9 https://tecadmin.net/how-to-install-python-3-9-on-debian-9/ How to guide for System Administrator's and Developers Sat, 27 Aug 2022 05:47:46 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: scott https://tecadmin.net/how-to-install-python-3-9-on-debian-9/#comment-64777 Sat, 27 Aug 2022 05:47:46 +0000 https://tecadmin.net/?p=24199#comment-64777 This doesn’t work.. When I download the python version on my version 3 pi and try to import a package (numpy) I receive this error:

Traceback (most recent call last):
File “/home/pi/.local/lib/python3.9/site-packages/numpy/core/__init__.py”, line 23, in
from . import multiarray
File “/home/pi/.local/lib/python3.9/site-packages/numpy/core/multiarray.py”, line 10, in
from . import overrides
File “/home/pi/.local/lib/python3.9/site-packages/numpy/core/overrides.py”, line 6, in
from numpy.core._multiarray_umath import (
ImportError: libcblas.so.3: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “”, line 1, in
File “/home/pi/.local/lib/python3.9/site-packages/numpy/__init__.py”, line 140, in
from . import core
File “/home/pi/.local/lib/python3.9/site-packages/numpy/core/__init__.py”, line 49, in
raise ImportError(msg)
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

* The Python version is: Python3.9 from “/usr/local/bin/python3.9”
* The NumPy version is: “1.23.2”

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: libcblas.so.3: cannot open shared object file: No such file or directory

]]>
By: Abhishek https://tecadmin.net/how-to-install-python-3-9-on-debian-9/#comment-63003 Sun, 13 Jun 2021 18:22:57 +0000 https://tecadmin.net/?p=24199#comment-63003 1. Enter bash shell script
sudo nano ~/.bashrc
2. Enter aliases for python 3.9
alias python=python3.9
alias pip=pip3.9
3. Save the changes to the script and exit
Ctrl+S followed by Ctrl+X

]]>
By: Mauricio Gomez https://tecadmin.net/how-to-install-python-3-9-on-debian-9/#comment-62992 Fri, 11 Jun 2021 02:27:32 +0000 https://tecadmin.net/?p=24199#comment-62992 It did work, with “sudo make altinstall”. Where is the executable located? I want to run script, but I don’t know where to point the shebang.

]]>
By: ALeksandr https://tecadmin.net/how-to-install-python-3-9-on-debian-9/#comment-62750 Thu, 01 Apr 2021 13:10:49 +0000 https://tecadmin.net/?p=24199#comment-62750 sudo make altinstall

]]>
By: mcsebi https://tecadmin.net/how-to-install-python-3-9-on-debian-9/#comment-57620 Wed, 13 Jan 2021 00:55:27 +0000 https://tecadmin.net/?p=24199#comment-57620 I would also make python3.9 my default python installation, how do i do that?

]]>