首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Debian Squeeze上安装pysqlite2?

如何在Debian Squeeze上安装pysqlite2?
EN

Stack Overflow用户
提问于 2012-12-05 22:06:20
回答 1查看 1K关注 0票数 0

我有点小问题。我正在使用Debian Squeeze,我想安装sqlite2。问题是,当我尝试执行以下操作时:

代码语言:javascript
复制
# pip install pysqlite2

我得到了:

代码语言:javascript
复制
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

当我尝试使用以下命令时,我得到了相同的错误:

代码语言:javascript
复制
# pip install python-pysqlite2

我也尝试过使用easy_install:

代码语言:javascript
复制
# 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包,当我尝试使用以下命令时:

代码语言:javascript
复制
# dpkg -i python-pysqlite2-dbg_2.6.0-1_amd64.deb

我得到以下错误:

代码语言:javascript
复制
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

我真的很希望能帮上忙。

提前感谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-12-05 22:09:31

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

代码语言:javascript
复制
apt-get -f install
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13725022

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档