- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我有点问题。我在 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/
我有许多 ID 的数据文件隐藏在深层目录结构中,例如: ID1/a/b/c/data1 ID1/d/e/data2 ID1/f/g/h/i/data3 ID2/j/data1 ID2/k/l/m/da
我仍然使用 Debian Squeeze,并且由于此版本已存档(2016 年 2 月 29 日),我使用 archive.debian.org 上的存档存储库 deb http://archive.d
我发现文档说如果可能的话减少返回类型的维度,否则返回一个一致的类型。 df = pd.DataFrame( {'a': np.ones(4, dtype='float32'), '
我有t.shape=(M, N),现在我想将新值v分配给数组的一部分,该部分是用变量索引的m 和 n。 m 是一个数组,n 可以是 int 也可以是一个数组。如果 n 是一个数组,我会执行 m=m.r
所以我正在尝试在 K&R 中进行练习。它要我做一个类似于挤压的功能,我不明白它有什么问题。我已经检查过了。我不想在网上找到解决方案,我想了解为什么我的代码无法运行。 //removes charact
以下是基于 Coursera 深度学习类(class)计算成本函数和梯度以便对图像进行分类的代码。 计算成本如下 cost = -np.sum(Y*np.log(A) + (1-Y)*np.log(1
很多时候,数组是用 np.squeeze() 压缩的。在文档中,它说 Remove single-dimensional entries from the shape of a. 但是我仍然想知道:为
我永远不记得如何做到这一点。 怎么走 从向量(大小(n1))到列矩阵(大小(n1,1))? 或者从矩阵(大小(n1,n2))到数组{T,3}(大小(n1,n2,1))? 或从数组{T,3}(大小(n1
我创建了一个包含一些数据的表,当我添加 display: block 时我收到一个错误,我使用在堆栈上找到的解决方案修复了这个错误-溢出即 squeezed when is display:bloc
如何“挤压重复”的单词?类似于“压缩重复字符”与 tr -s '' 我想更改例如: hello.hello.hello.hello 到 hello 最佳答案 这可以是一种方式: $ cat a hel
我正在尝试为我正在执行的 Web 应用程序设置部署,但启动脚本遇到一些问题。这是我到目前为止所做的: #!/bin/bash DIR=/webroot/webapp.com PATH=/usr/loc
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a software
当我写: \begin{frame}[label=foo,squeeze] ... \end{frame} 以后使用 \againframe{foo}要重复框架,重复框架上的内容不会被“挤压”(在我的
可以运行以下代码并且不会出现错误: >>> np.squeeze(['']) array('', dtype='>> np.squeeze([[]]) array([], dtype=float64)
我正在尝试构建一个模型,其中我有一个张量,必须对其进行压缩,然后将其输入 LSTM。 模型无法编译,因为压缩张量没有层属性。 Using TensorFlow backend. Traceback (
我有点问题。我在 Debian Squeeze 上,我想安装 sqlite2。问题是,当我尝试: # pip install pysqlite2 我得到: Downloading/unpacking
这个问题在这里已经有了答案: How do I complete K&R Exercise 2-4? (6 个答案) 关闭 9 年前。 所以这里的练习是设计一个程序,它接受一个字符串并删除该字符串中
有没有一种方法可以在同一个容器中将两个元素并排 float ,而不会在窗口尺寸减小时将最右边的元素压到下方?相反,我希望窗口覆盖正确的元素。 这是CSS: #logo { margin-left: 4
我目前正在使用 squeeze 从矩阵中删除两个单一维度。矩阵是一个大的 4d 矩阵 M(:,:,:,:)。前两个维度是行和列坐标(y 和 x)。第三维变量(indexes)选择了M第三维的几个值。
我想编写一个压缩函数 squeeze(s1,s2) 来删除 s1 中与字符串 s2 中的任何字符匹配的每个字符。 除了时间复杂度 (m * n) 之外,是否有任何可用的算法,即遍历字符串 s1 m 次
我是一名优秀的程序员,十分优秀!