上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 前期准备 (1)专业版Pycharm(社区版没有deployment功能),学生,教师可申请免费专业版,详情可看我的博客。 (2)可通过SSH连接Ubuntu服务器,并且服务器安装了Python解释器。 部署本地Pycharm项目到Ubuntu服务器 1.点击Tools - Deployment - 阅读全文
posted @ 2020-03-22 23:17 DuanYongchun 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 原因:TensorFlow2.0版本修改了许多函数名字 tf.sub()更改为tf.subtract() tf.mul()更改为tf.multiply() tf.types.float32更改为tf.float32 tf.pact()更改为tf.stact() tf.Session()更改为tf.c 阅读全文
posted @ 2020-03-22 17:35 DuanYongchun 阅读(19595) 评论(0) 推荐(1) 编辑
摘要: 安装TensorFlow GPU pip install --ignore-installed --upgrade tensorflow-gpu 安装测试: $ source activate tf #激活tf环境 import tensorflowas tf hello= tf.constant( 阅读全文
posted @ 2020-03-22 16:30 DuanYongchun 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 原因:Anaconda的python版本是3.7的,TensorFlow尚不支持此版本,于是我们创建一个Python的虚拟环境以支持TensorFlow 创建tf环境 conda create --name tf python=3.6 #创建tf环境 激活tf环境 conda activate tf 阅读全文
posted @ 2020-03-22 16:13 DuanYongchun 阅读(2201) 评论(0) 推荐(0) 编辑
摘要: 创建 创建文件: touch a.txt创建文件夹: mkdir NewFolderName 删除 删除文件: rm a.txt删除文件夹: rmdir FolderName删除带有文件的文件夹: rm -r FolderName 移动单个文件 cd到文件所在目录,执行:mv 文件名 目标路径 移动 阅读全文
posted @ 2020-03-22 15:54 DuanYongchun 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: 原因:环境未配置 执行【vim ~/.bashrc】命令,进入配置文件,在最后一行按'o'插入一行,并添加语句: export PATH=/home/duanyongchun/anaconda3/bin:$PATH 重启环境变量: source ~/.bashrc 阅读全文
posted @ 2020-03-22 15:50 DuanYongchun 阅读(2503) 评论(0) 推荐(0) 编辑
摘要: 复制:【Ctrl+Insert】 粘贴:【Shitf+Insert】 阅读全文
posted @ 2020-03-22 11:00 DuanYongchun 阅读(2943) 评论(0) 推荐(0) 编辑
摘要: PuTTY传输: 安装PuTTY,然后将PuTTY安装目录下的pscp.exe文件拷贝到/Windows/System32/目录下,在cmd控制台执行命令: # pscp 要传输的文件路径 ubuntu账户名@ubuntu服务器地址:文件在ubuntu服务器的存放位置 # 例如 pscp F:\Ba 阅读全文
posted @ 2020-03-22 09:42 DuanYongchun 阅读(2602) 评论(0) 推荐(0) 编辑
摘要: 添加新用户 首先用adduser命令添加普通用户: #adduser newusername 只有在root权限才可以添加新用户 修改密码: #passwd username 赋予root权限 方法1:修改/etc/sudoers文件 #vi /etc/sudoers # 打开sudoers文件 # 阅读全文
posted @ 2020-03-22 04:20 DuanYongchun 阅读(6451) 评论(0) 推荐(0) 编辑
摘要: 查看文件 查看Home(不是home)目录下文件: [duanyongchun@localhost ~]$ ls 查看根目录下文件: [duanyongchun@localhost ~]$ cd / [duanyongchun@localhost /]$ ls 查看home目录下文件: [duany 阅读全文
posted @ 2020-03-22 01:39 DuanYongchun 阅读(1998) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页