- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我已经安装了python2.7
,它已经与Linux Mint一起安装。我最近把它升级到了python2.7.12
。但我认为它没有升级,而是创建了另一个python2.7.12
副本。从那时起,当我运行命令sudo apt-get upgrade
时,我得到错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
apt-xapian-index : Depends: python:any (>= 2.7.1-0ubuntu2)
caribou : Depends: python:any (>= 2.7.1-0ubuntu2)
duplicity : Depends: python:any (>= 2.7.1-0ubuntu2)
gconf2 : Depends: python:any
gimp : Depends: python:any (>= 2.7.1-0ubuntu2)
ipython : Depends: python:any (>= 2.7.1-0ubuntu2)
ipython-notebook : Depends: python:any (>= 2.7.1-0ubuntu2)
jackd2 : Depends: python:any
libgcj-common : Depends: python:any
libglib2.0-dev : Depends: python:any (>= 2.7.1-0ubuntu2)
mintstick : Depends: python:any (>= 2.7.1-0ubuntu2)
mintupdate : Depends: python:any (>= 2.7.5-5~)
nemo-emblems : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
pylint : Depends: python:any (>= 2.7.1-0ubuntu2)
python-all : Depends: python (= 2.7.5-5ubuntu3) but 2.7.12-1 is installed
python-all-dev : Depends: python (= 2.7.5-5ubuntu3) but 2.7.12-1 is installed
python-apt : Depends: python:any (>= 2.7.1-0ubuntu2)
python-aptdaemon : Depends: python:any (>= 2.7.1-0ubuntu2)
python-astroid : Depends: python:any (>= 2.7.1-0ubuntu2)
python-bs4 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-cairo : Depends: python:any (>= 2.7.1-0ubuntu2)
python-chardet : Depends: python:any (>= 2.7.1-0ubuntu2)
python-colorama : Depends: python:any (>= 2.7.1-0ubuntu2)
python-commandnotfound : Depends: python:any (>= 2.7.1-0ubuntu2)
python-configglue : Depends: python:any (>= 2.7.1-0ubuntu2)
python-configobj : Depends: python:any (>= 2.7.1-0ubuntu2)
python-crypto : Depends: python:any (>= 2.7.5-5~)
python-cupshelpers : Depends: python:any (>= 2.7.1-0ubuntu2)
python-dateutil : Depends: python:any (>= 2.7.1-0ubuntu2)
python-dbus : Depends: python:any (>= 2.7.1-0ubuntu2)
python-debian : Depends: python:any (>= 2.7.1-0ubuntu2)
python-debtagshw : Depends: python:any (>= 2.7.1-0ubuntu2)
python-decorator : Depends: python:any (>= 2.7.1-0ubuntu2)
python-defer : Depends: python:any (>= 2.7.1-0ubuntu2)
python-dev : Depends: python (= 2.7.5-5ubuntu3) but 2.7.12-1 is installed
python-dirspec : Depends: python:any (>= 2.7.1-0ubuntu2)
python-distlib : Depends: python:any (>= 2.7.5-5~)
Depends: python:any (< 2.8)
python-dnspython : Depends: python:any (>= 2.7.1-0ubuntu2)
python-docutils : Depends: python:any (>= 2.7.1-0ubuntu2)
python-feedparser : Depends: python:any (>= 2.7.1-0ubuntu2)
python-gi : Depends: python:any (>= 2.7.1-0ubuntu2)
python-gnome2 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-gobject-2 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-gtk2 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-html5lib : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-httplib2 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-imaging : Depends: python:any (>= 2.7.1-0ubuntu2)
python-jinja2 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-kivy : Depends: python:any (>= 2.7.5-5~)
Depends: python:any (< 2.8)
python-kivy-common : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
python-ldb : Depends: python:any (>= 2.7.1-0ubuntu2)
python-libxml2 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-lockfile : Depends: python:any (>= 2.7.1-0ubuntu2)
python-logilab-common : Depends: python:any (>= 2.7.5-5~)
Depends: python:any (< 2.8)
python-lxml : Depends: python:any (>= 2.7.1-0ubuntu2)
python-mako : Depends: python:any (>= 2.7.1-0ubuntu2)
python-markupsafe : Depends: python:any (>= 2.7.1-0ubuntu2) python-notify : Depends: python:any (>= 2.7.1-0ubuntu2)
python-numpy : Depends: python:any (>= 2.7.1-0ubuntu2)
python-oauthlib : Depends: python:any (>= 2.7.5-5~)
Depends: python:any (< 2.8)
python-oneconf : Depends: python:any (>= 2.7.1-0ubuntu2)
python-opencv : Depends: python:any (>= 2.7.1-0ubuntu2)
python-opengl : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
Depends: python-ctypes
python-openssl : Depends: python:any (>= 2.7.1-0ubuntu2)
python-paramiko : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pexpect : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pil : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pip : Depends: python:any (>= 2.7.5-5~)
Depends: python:any (< 2.8)
python-piston-mini-client : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pkg-resources : Depends: python:any (>= 2.7)
Depends: python:any (< 2.8)
python-protobuf : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pyatspi : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pycurl : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pygame : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pygments : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pyinotify : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pyparsing : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pyrex : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pyside.qtcore : Depends: python:any (>= 2.7.1-0ubuntu2)
python-qt4 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-reportlab : Depends: python:any (>= 2.7.1-0ubuntu2)
python-requests : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-roman : Depends: python:any (>= 2.7.1-0ubuntu2)
python-samba : Depends: python:any (>= 2.7.1-0ubuntu2)
python-scipy : Depends: python:any (>= 2.7.1-0ubuntu2)
python-serial : Depends: python:any (>= 2.7.1-0ubuntu2)
python-setuptools : Depends: python:any (>= 2.7)
Depends: python:any (< 2.8)
python-sip : Depends: python:any (>= 2.7.1-0ubuntu2)
python-six : Depends: python:any (>= 2.7.5-5~)
Depends: python:any (< 2.8)
python-skimage : Depends: python:any (>= 2.7.1-0ubuntu2)
python-smbc : Depends: python:any (>= 2.7.1-0ubuntu2)
python-tdb : Depends: python:any (>= 2.7.1-0ubuntu2)
python-tornado : Depends: python:any (>= 2.7.1-0ubuntu2)
python-twisted-core : Depends: python:any (>= 2.7.1-0ubuntu2)
python-twisted-names : Depends: python:any (>= 2.7.1-0ubuntu2)
python-twisted-web : Depends: python:any (>= 2.7.1-0ubuntu2)
python-tz : Depends: python:any (>= 2.7.1-0ubuntu2)
python-ubuntu-sso-client : Depends: python:any (>= 2.7.1-0ubuntu2)
python-urllib3 : Depends: python:any (>= 2.7.5-5~)
Depends: python:any (< 2.8)
python-utidylib : Depends: python:any (>= 2.7.1-0ubuntu2)
python-webkit : Depends: python:any (>= 2.7.1-0ubuntu2)
python-xapian : Depends: python:any (>= 2.7.1-0ubuntu2)
python-xdg : Depends: python:any (>= 2.7.1-0ubuntu2)
python-zmq : Depends: python:any (>= 2.7.5-5~)
python-zope.interface : Depends: python:any (>= 2.7.1-0ubuntu2)
sessioninstaller : Depends: python:any (>= 2.7.1-0ubuntu2)
totem : Depends: python:any (>= 2.7.1-0ubuntu2)
totem-plugins : Depends: python:any (>= 2.7.1-0ubuntu2)
ubuntu-system-service : Depends: python:any (>= 2.7.1-0ubuntu2)
virtualbox : Depends: python:any (>= 2.7.5-5~)
E: Unmet dependencies. Try using -f.
sudo apt-get -f install
,我会得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
docutils-common fonts-font-awesome fonts-mathjax freeglut3 gir1.2-gtk-2.0
gist ipython-notebook-common libavcodec-dev libavformat-dev
libavresample-dev libavutil-dev libcairo-script-interpreter2
libdc1394-22-dev libfreeimage3 libgsoap4 libharfbuzz-dev
libharfbuzz-gobject0 libilmbase-dev libjasper-dev libjbig-dev
libjs-highlight libjs-jquery-ui libjs-marked libjs-mathjax liblzma-dev
libopencv-calib3d-dev libopencv-core-dev libopencv-features2d-dev
libopencv-flann-dev libopencv-gpu-dev libopencv-gpu2.4 libopencv-imgproc-dev
libopencv-ml-dev libopencv-ocl2.4 libopencv-photo-dev
libopencv-stitching-dev libopencv-stitching2.4 libopencv-superres2.4
libopencv-ts-dev libopencv-ts2.4 libopencv-video-dev libopencv-videostab2.4
libopencv2.4-java libopencv2.4-jni libopenexr-dev libpcre3-dev libpcrecpp0
libpixman-1-dev libportmidi0 libpyside1.2 libpython-all-dev
libpython-stdlib:i386 libpython2.7-minimal:i386 libpython2.7-stdlib:i386
libraw1394-dev libraw9 libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-mixer-2.0-0
libsdl2-ttf-2.0-0 libshiboken1.2 libsmpeg0 libswscale-dev libtiff5-dev
libtiffxx5 libvncserver0 libxcb-render0-dev libxcb-shm0-dev
libxcomposite-dev libxcursor-dev libxdamage-dev libxfixes-dev libxi-dev
libxinerama-dev libxrandr-dev python-chardet-whl python-colorama-whl
python-distlib-whl python-html5lib-whl python-matplotlib-data python-pip-whl
python-requests-whl python-setuptools-whl python-simplegeneric
python-six-whl python-urllib3-whl ruby-json x11proto-composite-dev
x11proto-damage-dev x11proto-fixes-dev x11proto-randr-dev
x11proto-xinerama-dev xclip xsel
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libutempter0 xterm
Suggested packages:
xfonts-cyrillic
The following packages will be REMOVED:
apt-xapian-index apturl apturl-common caribou cinnamon cinnamon-bluetooth
cinnamon-control-center cinnamon-desktop-data cinnamon-screensaver
cinnamon-session cinnamon-settings-daemon duplicity gcalcli gconf2 gdebi
gedit gimp gir1.2-cinnamondesktop-3.0 gir1.2-muffin-3.0 gksu gnome-terminal
gnome-terminal-data gstreamer0.10-gconf gstreamer0.10-gnomevfs
gtk-recordmydesktop guake ipython ipython-notebook jackd2 libatk1.0-dev
libbonoboui2-0 libcairo2-dev libcinnamon-desktop4 libcv-dev libcvaux-dev
libgcj-common libgcj14 libgdk-pixbuf2.0-dev libgksu2-0 libglib2.0-dev
libgnome2-0 libgnome2-bin libgnome2-common libgnome2-perl libgnome2-vfs-perl
libgnomeui-0 libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra
libgtk2.0-dev libhighgui-dev libopencv-contrib-dev libopencv-dev
libopencv-highgui-dev libopencv-legacy-dev libopencv-objdetect-dev
libopencv-ocl-dev libopencv-superres-dev libopencv-videostab-dev
libpango1.0-dev libpurple-bin libreoffice-gnome mdm mint-artwork-common
mint-artwork-gnome mint-common mint-meta-cinnamon mint-meta-codecs
mint-meta-core mintbackup mintdrivers mintinstall mintnanny mintsources
mintstick mintsystem mintupdate mintupload mintwelcome nemo nemo-emblems
nemo-fileroller nemo-folder-color-switcher nemo-preview nemo-share
oneconf-common pdftk pylint python-all python-all-dev python-apt
python-aptdaemon python-aptdaemon.gtk3widgets python-astroid python-bs4
python-cairo python-chardet python-colorama python-commandnotfound
python-configglue python-configobj python-crypto python-cupshelpers
python-dateutil python-dbus python-debian python-debtagshw python-decorator
python-defer python-dev python-dirspec python-distlib python-dnspython
python-docutils python-feedparser python-gconf python-gdata python-gi
python-gi-cairo python-glade2 python-gnome2 python-gnomekeyring
python-gobject python-gobject-2 python-gtk2 python-gtksourceview2
python-html5lib python-httplib2 python-imaging python-imaging-compat
python-jinja2 python-kivy python-kivy-bin python-kivy-common python-ldb
python-libxml2 python-lockfile python-logilab-common python-lxml python-mako
python-markupsafe python-matplotlib python-nemo python-notify python-numpy
python-oauthlib python-oneconf python-opencv python-opengl python-openssl
python-paramiko python-pexpect python-pil python-pip
python-piston-mini-client python-pkg-resources python-protobuf
python-pyatspi python-pyatspi2 python-pycurl python-pygame python-pygments
python-pyinotify python-pyparsing python-pyrex python-pyside.qtcore
python-pyside.qtgui python-pyside.qtopengl python-qt4 python-qt4-dbus
python-qt4-gl python-reportlab python-requests python-roman python-samba
python-scipy python-serial python-setuptools python-sexy python-sip
python-six python-skimage python-skimage-lib python-smbc python-tdb
python-tornado python-twisted-core python-twisted-names python-twisted-web
python-tz python-ubuntu-sso-client python-urllib3 python-utidylib python-vte
python-webkit python-xapian python-xdg python-zmq python-zope.interface
python3-oneconf samba samba-common-bin sessioninstaller
system-config-printer-common system-config-printer-gnome
system-config-printer-udev tomboy totem totem-mozilla totem-plugins
totem-plugins-extra transmission-gtk ubuntu-system-adjustments
ubuntu-system-service virtualbox virtualbox-dkms virtualbox-qt
The following NEW packages will be installed:
libutempter0 xterm
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
mintsources python-gtk2 (due to mintsources) python-glade2 (due to
mintsources) python-pycurl (due to mintsources)
0 upgraded, 2 newly installed, 217 to remove and 15 not upgraded.
Need to get 673 kB of archives.
After this operation, 514 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
最佳答案
根据您对python版本的回复,它已经升级了!
关于python - sudo apt-get upgrade在Linux Mint上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42952628/
我正在处理一组标记为 160 个组的 173k 点。我想通过合并最接近的(到 9 或 10 个组)来减少组/集群的数量。我搜索过 sklearn 或类似的库,但没有成功。 我猜它只是通过 knn 聚类
我有一个扁平数字列表,这些数字逻辑上以 3 为一组,其中每个三元组是 (number, __ignored, flag[0 or 1]),例如: [7,56,1, 8,0,0, 2,0,0, 6,1,
我正在使用 pipenv 来管理我的包。我想编写一个 python 脚本来调用另一个使用不同虚拟环境(VE)的 python 脚本。 如何运行使用 VE1 的 python 脚本 1 并调用另一个 p
假设我有一个文件 script.py 位于 path = "foo/bar/script.py"。我正在寻找一种在 Python 中通过函数 execute_script() 从我的主要 Python
这听起来像是谜语或笑话,但实际上我还没有找到这个问题的答案。 问题到底是什么? 我想运行 2 个脚本。在第一个脚本中,我调用另一个脚本,但我希望它们继续并行,而不是在两个单独的线程中。主要是我不希望第
我有一个带有 python 2.5.5 的软件。我想发送一个命令,该命令将在 python 2.7.5 中启动一个脚本,然后继续执行该脚本。 我试过用 #!python2.7.5 和http://re
我在 python 命令行(使用 python 2.7)中,并尝试运行 Python 脚本。我的操作系统是 Windows 7。我已将我的目录设置为包含我所有脚本的文件夹,使用: os.chdir("
剧透:部分解决(见最后)。 以下是使用 Python 嵌入的代码示例: #include int main(int argc, char** argv) { Py_SetPythonHome
假设我有以下列表,对应于及时的股票价格: prices = [1, 3, 7, 10, 9, 8, 5, 3, 6, 8, 12, 9, 6, 10, 13, 8, 4, 11] 我想确定以下总体上最
所以我试图在选择某个单选按钮时更改此框架的背景。 我的框架位于一个类中,并且单选按钮的功能位于该类之外。 (这样我就可以在所有其他框架上调用它们。) 问题是每当我选择单选按钮时都会出现以下错误: co
我正在尝试将字符串与 python 中的正则表达式进行比较,如下所示, #!/usr/bin/env python3 import re str1 = "Expecting property name
考虑以下原型(prototype) Boost.Python 模块,该模块从单独的 C++ 头文件中引入类“D”。 /* file: a/b.cpp */ BOOST_PYTHON_MODULE(c)
如何编写一个程序来“识别函数调用的行号?” python 检查模块提供了定位行号的选项,但是, def di(): return inspect.currentframe().f_back.f_l
我已经使用 macports 安装了 Python 2.7,并且由于我的 $PATH 变量,这就是我输入 $ python 时得到的变量。然而,virtualenv 默认使用 Python 2.6,除
我只想问如何加快 python 上的 re.search 速度。 我有一个很长的字符串行,长度为 176861(即带有一些符号的字母数字字符),我使用此函数测试了该行以进行研究: def getExe
list1= [u'%app%%General%%Council%', u'%people%', u'%people%%Regional%%Council%%Mandate%', u'%ppp%%Ge
这个问题在这里已经有了答案: Is it Pythonic to use list comprehensions for just side effects? (7 个答案) 关闭 4 个月前。 告
我想用 Python 将两个列表组合成一个列表,方法如下: a = [1,1,1,2,2,2,3,3,3,3] b= ["Sun", "is", "bright", "June","and" ,"Ju
我正在运行带有最新 Boost 发行版 (1.55.0) 的 Mac OS X 10.8.4 (Darwin 12.4.0)。我正在按照说明 here构建包含在我的发行版中的教程 Boost-Pyth
学习 Python,我正在尝试制作一个没有任何第 3 方库的网络抓取工具,这样过程对我来说并没有简化,而且我知道我在做什么。我浏览了一些在线资源,但所有这些都让我对某些事情感到困惑。 html 看起来
我是一名优秀的程序员,十分优秀!