Linux
Linux
bc520bc
这个作者很懒,什么都没留下…
展开
-
gcc问题:'for' loop initial declarations are only allowed in C99 mode
C语言报错:'for' loop initial declarations are only allowed in C99 mode原因:这是因为gcc是基于c89标准,不能直接在for循环中初始化增量。 而C99标准可以在for循环内定义变量。for(int i = 0; i < l.c; ++i)将上述代码改成int i;for(i = 0; i < l...原创 2020-03-05 00:29:57 · 536 阅读 · 0 评论 -
虚拟机ubuntu与主机win 进行数据交互,使用samba的一些操作
首先下载samba, 1. 这里有2个方式, - 创建分享文件夹,右键点击,共享文件夹,会让你下载这个软件 - sudo apt-get install samba sudo apt-get install smbclient 2.需要配置samba服务器,使用如下命令打开samba的配置文件 sudo vim /etc/samba/smb.conf 加入配置信息 ...原创 2020-03-03 21:58:49 · 1635 阅读 · 0 评论 -
sudo 安装软件时报错。无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
sudo apt install gitE: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?根据保存信息,进行解锁即可s...原创 2020-03-03 18:25:15 · 291 阅读 · 0 评论 -
ubuntu anaconda pytorch
anaconda 提前已经安装好了这里我先创建了虚拟环境conda create -n pytorch1.1 python=3.6conda info --envs # 查找虚拟环境进入虚拟环境conda activate pytorch1.1发现报错CommandNotFoundError: Your shell has not been properly configur...原创 2020-01-14 09:40:51 · 149 阅读 · 0 评论 -
ubuntu anaconda pytorch镜像问题
添加镜像源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda config --set show...原创 2020-01-08 21:30:22 · 144 阅读 · 0 评论 -
Ubuntu 16.04安装anaconda3
1.进入清华镜像 [https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/](https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/)2.拉到最下面选择 Anaconda3-5.2.0-Linux-x86_643. bash Anaconda3-4.2.0-Linux-x86_64...原创 2020-01-08 16:05:00 · 122 阅读 · 0 评论 -
Ubuntu16.04安装Google浏览器
;;首先使用命令下载谷歌浏览器deb安装包wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb ;;找到安装包所在目录,使用命令开始安装sudo dpkg -i google-chrome-stable_current_amd64.deb ;;(可选)这个命令用于自动修复安装程序包所依赖...原创 2020-01-07 14:35:12 · 173 阅读 · 0 评论