ubuntu
梦实学习室
渐入佳境
展开
-
Ubuntu系统更新软件时报错:检查您是否使用了第三方源。如果是就禁用它们,它们常常导致问题。然后在终端中运行以下命令:apt-get install -f
【代码】Ubuntu系统更新软件时报错:检查您是否使用了第三方源。如果是就禁用它们,它们常常导致问题。然后在终端中运行以下命令:apt-get install -f。dpkg-deb: 错误: 粘贴 子进程被信号(断开的管道) 终止了原创 2023-03-08 09:05:04 · 1228 阅读 · 0 评论 -
ERROR: pip‘s dependency resolver does not currently take into account all the packages that are inst
更新pip安装工具原创 2023-03-07 18:42:20 · 1758 阅读 · 0 评论 -
Ubuntu22.04系统:fatal: 无法连接到 github.com:github.com[0: 20.205.243.166]: errno=连接超时
Ubuntu系统:从github克隆项目失败:fatal: 无法连接到 github.com:github.com[0: 20.205.243.166]: errno=连接超时原创 2023-03-07 11:26:20 · 7816 阅读 · 4 评论 -
Ubuntu系统配置Flask服务开机启动
1、 创建一个re-local.service文件vim /etc/systemd/system/rc-local.service文件内容:[Unit]Description=/etc/rc.local CompatibilityConditionPathExists=/etc/rc.local[Service]Type=forkingExecStart=/etc/rc.local startTimeoutSec=0StandardOutput=ttyRemainAfte.原创 2021-12-03 16:49:39 · 1555 阅读 · 0 评论 -
Ubuntu + Nginx + Gunicorn + Flask 部署项目
1、安装Gunicornpip install gunicorn2、编写测试程序#文件名: test.pyfrom flask import Flaskfrom werkzeug.middleware.proxy_fix import ProxyFixapp = Flask(__name__)@app.route('/')def hello_world(): return 'Hello World!'if __name__ == '__main__':原创 2021-12-03 11:05:23 · 2490 阅读 · 0 评论 -
ubuntu服务器中安装nvidia driver显卡驱动
1、删除之前安装的nvidia驱动sudo apt-get purge nvidia-* 2、添加驱动源sudo add-apt-repository ppa:graphics-drivers/ppa 3、更新软件源sudo apt-get update4、安装nvidia driversudo apt-get install nvidia-driver-435原创 2021-11-03 14:18:50 · 2197 阅读 · 1 评论 -
import skbuild ModuleNotFoundError: No module named ‘skbuild‘
错误:import skbuild ModuleNotFoundError: No module named ‘skbuild’解决:pip install scikit-build或pip3 install scikit-build原创 2021-02-24 17:32:01 · 1221 阅读 · 0 评论 -
ubuntu修改python的pip源为国内源
一、pip安装时临时换源(清华源)pip install *** -i https://pypi.tuna.tsinghua.edu.cn/simple二、pip安装永久换源Linux:cd ~ # 进入家目录 mkdir .pip # 新建.pip隐藏文件夹 touch pip.conf # 新建pip.conf文件 vim pip.conf # 用vim编辑pip.conf文件 [global]i...原创 2020-12-17 14:51:18 · 23864 阅读 · 4 评论 -
ubuntu系统安装或更新输入密码登录系统完成后无法进入桌面
ubuntu系统安装或更新输入密码登录系统完成后无法进入桌面,其原因主要在于NVIDIA显卡驱动并不会随着系统更新而自动更新,此时就需要手动更新驱动了。具体操作方法是:当开机卡住很长时间进不了ubuntu桌面时,关掉电源重启; 在进入grub引导界面后,在光标行落在第一行时,按E进入编辑页面; 找到单词splash(倒数第二行),在其后按空格后输入nomodeset ; 再按ctrl+x或F10保存后重新进入ubuntu系统,就可以登录桌面系统了;(但此时桌面系统比较卡,这是显卡驱动没有更新,原创 2020-06-23 08:58:12 · 1351 阅读 · 0 评论