ubuntu下怎么debug python

发布网友 发布时间:2022-04-24 05:46

我来回答

1个回答

热心网友 时间:2022-04-18 05:51

从官网上下的sourcecode,然后
./configure --prefix=/opt/python3.4.1
make
make install

结果运行的时候标准库不全或者出错,目前发现的有
sqlite3出错,setuptools不存在……
>>> import setuptools
Traceback (most recent call last):
File "<stdin>", line 1, in <mole>
ImportError: No mole named 'setuptools'
>>> import sqlite3
Traceback (most recent call last):
File "<stdin>", line 1, in <mole>
File "/opt/python3.4.1/lib/python3.4/sqlite3/__init__.py", line 23, in <mole>
from sqlite3.dbapi2 import *
File "/opt/python3.4.1/lib/python3.4/sqlite3/dbapi2.py", line 26, in <mole>
from _sqlite3 import *
ImportError: No mole named '_sqlite3'

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com