我想在 gedit 中拆分屏幕以便同时查看多个文件。
我找到了这个插件
https://github.com/jonocodes/GeditSplitView
但搬家后
SplitView.plugin
拆分视图.py
到 .local/share/gedit/plugins
并转到编辑-> 首选项-> 插件,如果我尝试单击拆分视图按钮,则会出现无输入符号。“未找到‘python’插件加载器”
如果我从终端运行 gedit,我会收到以下消息:
(gedit:17504): libpeas-WARNING **: 'python' 插件加载器尚未启用
有什么建议吗?
我想在 Eclipse 上使用 python。我怎么做?
我在 Ubuntu 14.04 上使用 Eclipse 3.8.1。
所以在玩一些别名时,我意识到终端中有三个 python 命令(不考虑 python 3 命令):
所以我的问题是为什么会这样?为什么我们需要三个?我理解需要有一个通用的(python),并且需要有另一个来区分 python3 和 python2,但其余的我不知道。
此外,如何查看它们是否链接到同一个文件(符号链接)?
我的机器上已经安装了 python 2.7。我不记得是我安装了它还是内置安装。无论如何,我想使用 python 3.x 安装工作,我想知道我是否需要先卸载 2.7 版本。系统中是否有依赖此版本的组件?
谢谢。
我正在运行 Ubuntu 15.10。我通过 aptitude 安装了 Pyhon 2.7:
sudo apt-get install python
Run Code Online (Sandbox Code Playgroud)
现在我正在尝试使用本指南安装 pip 。我下载了get-pip.py,然后我尝试:
sudo python get-pip.py
Run Code Online (Sandbox Code Playgroud)
安装工作正常,但我收到了这些烦人的警告:
The directory '/home/administrator/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/administrator/.cache/pip' or its parent directory is not owned by the current user and caching wheels has …Run Code Online (Sandbox Code Playgroud) 我最近将我的 ubuntu 从 15.10 更新到 16.04,从那时起youtube-dl就无法使用了。我收到以下错误
youtube-dl https://www.youtube.com/v=KV2ssT8lzj8
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl", line 7, in <module>
from youtube_dl import main
ImportError: No module named 'youtube_dl'
Run Code Online (Sandbox Code Playgroud) 我跑,pip install pycosat但我得到:
Downloading/unpacking pycosat
Downloading pycosat-0.6.1.tar.gz (59kB): 59kB downloaded
Running setup.py (path:/tmp/pip_build_masi/pycosat/setup.py) egg_info for package pycosat
Installing collected packages: pycosat
Running setup.py install for pycosat
building 'pycosat' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYCOSAT_VERSION="0.6.1" -I/usr/include/python2.7 -c pycosat.c -o build/temp.linux-x86_64-2.7/pycosat.o
pycosat.c:9:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_masi/pycosat/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', …Run Code Online (Sandbox Code Playgroud) 我的老师用 Jupyter Notebook 或 IPython 绘制了一些函数。我已经安装了 Jupyter Notebook 并拥有主屏幕,但我如何绘制函数?
我已经尝试过:plot sin(x)但我收到此消息:
File "<ipython-input-4-7979a129f00f>", line 1
plot sin(x)
^
SyntaxError: invalid syntax
Run Code Online (Sandbox Code Playgroud)
请问一个干净的删除方法,这样python 3就不会被以前的版本干扰了。我不确定如何安装 python2.7,因为不是我做的。而且我是 Linux 的新手,所以我真的不知道我该怎么办......
这是我检查python版本时的信息。谢谢!!:)
administrator@TUBVLMF-AWR163:~$ python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/bin/anaconda/lib/python2.7/site.pyc matches /usr/bin/anaconda/lib/python2.7/site.py
import site # precompiled from /usr/bin/anaconda/lib/python2.7/site.pyc
# /usr/bin/anaconda/lib/python2.7/os.pyc matches /usr/bin/anaconda/lib/python2.7/os.py
import os # precompiled from /usr/bin/anaconda/lib/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /usr/bin/anaconda/lib/python2.7/posixpath.pyc matches /usr/bin/anaconda/lib/python2.7/posixpath.py
import posixpath # precompiled from /usr/bin/anaconda/lib/python2.7/posixpath.pyc
# /usr/bin/anaconda/lib/python2.7/stat.pyc matches /usr/bin/anaconda/lib/python2.7/stat.py
import stat # precompiled from /usr/bin/anaconda/lib/python2.7/stat.pyc
# /usr/bin/anaconda/lib/python2.7/genericpath.pyc matches /usr/bin/anaconda/lib/python2.7/genericpath.py
import genericpath # precompiled from /usr/bin/anaconda/lib/python2.7/genericpath.pyc
# …Run Code Online (Sandbox Code Playgroud)