AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-681282

Lane Ouyang's questions

Martin Hope
Lane Ouyang
Asked: 2020-11-21 22:47:19 +0800 CST

如何通过 Ubuntu 中的可执行命令名获取包名

  • 5

我知道在 CentOS/Fedora 中,我可以通过以下命令找到包名:

dnf provides <executable name>

但是Ubuntu中的什么命令会做同样的事情?

apt ubuntu
  • 1 个回答
  • 41 Views
Martin Hope
Lane Ouyang
Asked: 2020-07-17 22:46:31 +0800 CST

如何在 CentOS 8 上安装 jsoncpp

  • 5

我努力了:

$ sudo dnf install jsoncpp
Last metadata expiration check: 0:31:37 ago on Fri 17 Jul 2020 02:02:47 PM CST.
No match for argument: jsoncpp
Error: Unable to find a match: jsoncpp

而且我知道我可以从源代码安装 jsoncpp,但我只是想知道最好的方法是什么?

centos installation
  • 1 个回答
  • 1186 Views
Martin Hope
Lane Ouyang
Asked: 2020-05-20 18:50:51 +0800 CST

如何通过“dnf”命令知道哪个包提供了头文件

  • 7

我知道dnf provides可以找到一个包含特定命令的包,例如,

$ dnf whatprovides g++
Last metadata expiration check: 0:57:32 ago on Wed May 20 09:43:51 2020.
gcc-c++-9.3.1-2.wf31.x86_64 : C++ support for GCC
Repo        : @System
Matched from:
Provide    : g++ = 9.3.1-2.wf31

gcc-c++-9.3.1-2.wf31.x86_64 : C++ support for GCC
Repo        : release
Matched from:
Provide    : g++ = 9.3.1-2.wf31

但是当我需要一个头文件时,我想找出它的包名类似的dnf provides a-header-file-name,但它不起作用。例如,$ dnf 提供 cm/api/transactionmanager.hpp 上次元数据过期检查:1:01:49 前,2020 年 5 月 20 日星期三 09:43:51。错误:未找到匹配项

$ dnf provides transactionmanager.hpp
Last metadata expiration check: 1:01:55 ago on Wed May 20 09:43:51 2020.
Error: No Matches found
linux dnf
  • 1 个回答
  • 461 Views
Martin Hope
Lane Ouyang
Asked: 2019-12-18 22:47:15 +0800 CST

为什么 pip install turtle (图形)错误

  • 7

安装时出现以下错误turtle,我该怎么办?

$ sudo pip install turtle --proxy http://10.144.1.10:8080
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.
Collecting turtle
  Using cached https://files.pythonhosted.org/packages/ff/f0/21a42e9e424d24bdd0e509d5ed3c7dfb8f47d962d9c044dba903b0b4a26f/turtle-0.0.2.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-smo98rwf/turtle/setup.py", line 40
        except ValueError, ve:
                         ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-smo98rwf/turtle/

我正在使用 Fedora 31 和 pip 版本:

$ pip --version
pip 19.1.1 from /usr/lib/python3.7/site-packages/pip (python 3.7)

其他一些python库可以安装成功,比如:

$ sudo pip install scipy --proxy http://10.144.1.10:8080
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.
Collecting scipy
  Downloading https://files.pythonhosted.org/packages/37/9d/a606dc7b17ef0b7326afd128e132b7a483d5611da603334842df75d92d3c/scipy-1.4.0-cp37-cp37m-manylinux1_x86_64.whl (26.1MB)
     |████████████████████████████████| 26.1MB 824kB/s 
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib64/python3.7/site-packages (from scipy) (1.17.4)
Installing collected packages: scipy
Successfully installed scipy-1.4.0

顺便说一句,turtle 似乎没有安装在我的 python 中......

$ python
Python 3.7.5 (default, Dec 15 2019, 17:54:26) 
[GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import turtle
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'turtle'
>>> 

概括:

turtle graphics是python3标准库的一部分,不需要安装。如果import turtle显示类似“No module named...”的错误,它可以通过例如在 Fedora 中解决,sudo dnf install python3-tkinter

python installation
  • 1 个回答
  • 7624 Views
Martin Hope
Lane Ouyang
Asked: 2019-11-01 01:27:48 +0800 CST

Fedora 31 Cloud Base Image for OpenStack 的默认用户帐号和密码是什么?

  • 10

我从这里下载 Openstack 镜像的 Fedora Cloud Base 镜像: https://download.fedoraproject.org/pub/fedora/linux/releases/31/Cloud/x86_64/images/Fedora-Cloud-Base-31-1.9.x86_64。 qcow2

然后根据这个镜像在 OpenStack 上创建一个虚拟机。

在此虚拟机的控制台中,它显示,

Fedora 31 (Cloud Edition)
Kernel 5.3.7-301.fc31.x86_64 on an x86_64 (tty1)

Localhost login:

我的问题是,这里登录的默认用户帐户和密码是什么?

顺便说一句,我已尝试按照以下链接中的说明更改 root 的密码,但它不起作用。 https://forums.fedoraforum.org/showthread.php?297501-How-can-i-change-lost-root-password-in-F20

fedora cloud
  • 3 个回答
  • 12074 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve