安装kazam投屏软件后,无法启动。
我使用的是 Ubuntu 17.04。
/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
/usr/lib/python3/dist-packages/kazam/frontend/window_area.py:30: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_version('Wnck', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, GObject, Gdk, Wnck, GdkX11
/usr/lib/python3/dist-packages/kazam/backend/gstreamer.py:35: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure …Run Code Online (Sandbox Code Playgroud) 我正在尝试更新我的 python 版本,但每当我尝试:
pip install --upgrade python
Run Code Online (Sandbox Code Playgroud)
输出是:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade
your Python as Python 2.7 is no longer maintained. A future version of pip will drop
support for Python 2.7. More details about Python 2 support in pip, can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Requirement already up-to-date: python in /usr/lib/python2.7/lib-dynload (2.7.12)
Run Code Online (Sandbox Code Playgroud)
有谁知道如何解决这个问题?
创建执行pipenv shell命令时出现以下错误:
?/usr/bin/python3: No module named pipenv.pew
Virtualenv location:
Creating a Pipfile for this project…
Traceback (most recent call last):
File "/usr/bin/pipenv", line 11, in <module>
load_entry_point('pipenv==11.9.0', 'console_scripts', 'pipenv')()
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pipenv/cli.py", line 571, in …Run Code Online (Sandbox Code Playgroud) 我有一个.desktop运行 shell 脚本的应用程序,当双击该应用程序时,这个 shell 脚本运行一个 python 代码,我希望能够从我笔记本电脑上的所有目录启动它并保持图标稳定,即使图像或图标或应用程序的目录已更改!
如何使我的应用程序全球化?
我正在使用 ansible 来监控我的家庭计算网络,它由几台 Linux 机器(x64 和树莓派)组成。如何避免来自每个 Raspberry 客户端的警告?
[警告]:主机 raspi6.local 上的平台 linux 正在使用在 /usr/bin/python 中发现的 Python 解释器,但未来安装另一个 Python 解释器可能会改变这一点。有关 更多信息,请参阅 https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html。raspi6.local | 改变 | rc=0 >> 16:11:44 up 21:02, 3 个用户,平均负载:4,04, 4,01, 4,00
我还没有找到为 python3.9 安装 pip 的方法。当我运行该命令时,sudo apt install python3-pip它会为 pythpn3.8 而不是 3.9 安装 pip。如果我尝试使用sudo apt install python3.9-pip它会出错。
我想安装numpy,但如果我使用pip3 install numpy它,则会为 python3.8 而不是 3.9 安装它。
Ubuntu 版本是 20.04
我正在使用 Ubuntu 20.04 LTS。我最近为 Python 3.9 安装了 Matplotlib,当我尝试绘制图形时,它给了我错误:
Matplotlib is currently using agg, which is non-GUI backend, so cannot show the figure.
Run Code Online (Sandbox Code Playgroud)
我是否必须安装其他东西才能使其工作?
我在解释器中写的全部内容如下:
>>> print "Hello, World!"
File "<stdin>", line 1
print "Hello, World!"
^
SyntaxError: invalid syntax
Run Code Online (Sandbox Code Playgroud)
我是怎么得到错误的?我试图做的就是运行一个打印命令。
我已经完成了在我的 Ubuntu 12.04 计算机上安装 matplotlib 的过程。但是,当我尝试运行测试程序时,出现以下错误:
Traceback (most recent call last):
File "../py33/test.py", line 2, in <module>
import matplotlib.pyplot as plt
ImportError: No module named 'matplotlib'
Run Code Online (Sandbox Code Playgroud)
我正在尝试来自 matplotlib 网站(basic_example)的示例程序。我只是不明白为什么它说没有模块 matplotlib,即使我确实已经安装了它(使用sudo apt-get install python-matplotlib,并且已经完成sudo apt-get build-dep python-matplotlib;我也尝试过pip install matplotlib,因为我被告知要这样做,在安装 Python 本身之后,如果我想安装其他二进制文件)。
我正在运行安装了python(2.7) 和python3(3.3) 软件包的Xubuntu 13.10 i386 。我已经下载并编译了 Python 3.4 的源代码,但二进制文件名为python. 我该如何安装它python34?我要更改二进制文件的名称sudo make install吗?