2024年11月24日星期日 上午10:28:04

How To Install Python 3.11 on Debian 11/10

1 年 前
#21013 引用
How To Install Python 3.11 on Debian 11/10

https://tecadmin.net/how-to-install-python-3-11-on-debian/
0
1 年 前
#22414 引用
1
0
1 年 前
#22415 引用
1
0
1 年 前
#22416 引用

root@raspberrypi:~/Python-3.11.5#
make -j 4





*** WARNING: renaming "_sqlite3" since importing it failed: /root/Python-3.11.5/build/lib.linux-armv7l-3.11/_sqlite3.cpython-311-arm-linux-gnueabihf.so: undefined symbol: sqlite3_deserialize

The necessary bits to build these optional modules were not found:
_lzma                                                          
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Following modules built successfully but were removed because they could not be imported:
_sqlite3                                                      


Following modules built successfully but were removed because they could not be imported:
_sqlite3                                                      

running build_scripts
creating build/scripts-3.11
copying and adjusting /root/Python-3.11.5/Tools/scripts/pydoc3 -> build/scripts-3.11
copying and adjusting /root/Python-3.11.5/Tools/scripts/idle3 -> build/scripts-3.11
copying and adjusting /root/Python-3.11.5/Tools/scripts/2to3 -> build/scripts-3.11
changing mode of build/scripts-3.11/pydoc3 from 644 to 755
changing mode of build/scripts-3.11/idle3 from 644 to 755
changing mode of build/scripts-3.11/2to3 from 644 to 755
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
root@raspberrypi:~/Python-3.11.5#



https://blog.csdn.net/jaket5219999/article/details/53512071


root@raspberrypi:~# python3.10 -c 'import _sqlite3 as m;print(m.__file__)'
/usr/local/lib/python3.10/lib-dynload/_sqlite3.cpython-310-arm-linux-gnueabihf.so


0
1 年 前
#22417 引用
sudo cp /usr/local/lib/python3.10/lib-dynload/_sqlite3.cpython-310-arm-linux-gnueabihf.so /root/Python-3.11.5/build/lib.linux-armv7l-3.11/_sqlite3.cpython-311-arm-linux-gnueabihf.so
0
1 年 前
#22418 引用


root@raspberrypi:~# cd Python-3.11.5
root@raspberrypi:~/Python-3.11.5# make -j 4
CC='gcc -pthread' LDSHARED='gcc -pthread -shared    ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall'   ./python -E ./setup.py  build
running build
running build_ext

The necessary bits to build these optional modules were not found:
_lzma                                                          
To find the necessary bits, look in setup.py in detect_modules() for the module's name.

running build_scripts
copying and adjusting /root/Python-3.11.5/Tools/scripts/pydoc3 -> build/scripts-3.11
copying and adjusting /root/Python-3.11.5/Tools/scripts/idle3 -> build/scripts-3.11
copying and adjusting /root/Python-3.11.5/Tools/scripts/2to3 -> build/scripts-3.11
changing mode of build/scripts-3.11/pydoc3 from 644 to 755
changing mode of build/scripts-3.11/idle3 from 644 to 755
changing mode of build/scripts-3.11/2to3 from 644 to 755
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11

0