gpt4 book ai didi

python - 如何在 Debian Squeeze 上安装 pysqlite2?

转载 作者:太空宇宙 更新时间:2023-11-04 11:27:29 25 4
gpt4 key购买 nike

我有点问题。我在 Debian Squeeze 上,我想安装 sqlite2。问题是,当我尝试:

# pip install pysqlite2

我得到:

Downloading/unpacking pysqlite2
Could not find any downloads that satisfy the requirement pysqlite2
No distributions at all found for pysqlite2
Storing complete log in /root/.pip/pip.log

我在尝试时遇到同样的错误:

# pip install python-pysqlite2

我也试过 easy_install:

# easy_install pysqlite2
Searching for pysqlite2
Reading http://pypi.python.org/simple/pysqlite2/
Couldn't find index page for 'pysqlite2' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pysqlite2
Best match: None
Traceback (most recent call last):
File "/usr/local/bin/easy_install", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1712, in main
File "/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1716, in <lambda>
File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 211, in run
File "/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 434, in easy_install
File "/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/package_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'

我还尝试从 here 下载 pyslite2 包,当我尝试使用时:

# dpkg -i python-pysqlite2-dbg_2.6.0-1_amd64.deb

我收到以下错误:

Selecting previously deselected package python-pysqlite2-dbg.
(Reading database ... 144103 files and directories currently installed.)
Unpacking python-pysqlite2-dbg (from python-pysqlite2-dbg_2.6.0-1_amd64.deb) ...
dpkg: dependency problems prevent configuration of python-pysqlite2-dbg:
python-pysqlite2-dbg depends on python-pysqlite2 (= 2.6.0-1); however:
Package python-pysqlite2 is not configured yet.
python-pysqlite2-dbg depends on python-dbg; however:
Package python-dbg is not installed.
dpkg: error processing python-pysqlite2-dbg (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-pysqlite2-dbg

我真的很乐意为此提供帮助。

提前致谢!

最佳答案

只需运行 apt-get install 即可安装所有缺少的依赖项:

apt-get -f install

关于python - 如何在 Debian Squeeze 上安装 pysqlite2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13725022/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com