0

少し問題があります。私は 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'

また、ここから 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

これについては本当に助けていただければ幸いです。

前もって感謝します!

4

1 に答える 1

1

apt-get installを実行するだけで、不足しているすべての依存関係をインストールできます。

apt-get -f install
于 2012-12-05T14:09:30.770 に答える