- 博客(25)
- 收藏
- 关注
原创 Git、GitHub和GitLab的区别
GitGit官网Git 是一个分布式的版本控制系统。版本控制系统是一种用于记录一个或多个文件内容变化,方便查阅特定版本修订情况的系统。没有使用版本控制系统之前,如果需要记录同一份文件不同版本的修改,可能会以“file_v1”、“file_v2”、“file_v3”等命名方式来保存不同时刻对文件的新增、修改,删除等操作。分布式系统可以把代码仓库完整地镜像下来,相当于每个人的电脑都是一个完整的版本库。集中式版本控制系统:版本库是集中存放在中央服务器的,工作的时候,用的是自己的电脑.
2022-01-23 18:34:28
4696
原创 GO | 安装 for MacOS
检查是否安装Go语言:终端输入brew info go出现“Not installed”即没有安装Go安装Go语言:终端输入brew install go配置Go语言环境变量Go语言安装好后,默认的安装路径是:/usr/local/go,可以进去看看各种安装文件打开 .bash_profile 文件vim .bash_profile在文件最后输入export GOPATH=/usr/local/goexport GOBIN=$GOPATH/binexpo..
2021-11-18 21:35:27
545
原创 Linux | MacOS | 常用命令
进入文件夹cd <path>查看文件全部内容cat <filename>查看文件尾部内容tail [-f] <filename>
2021-08-22 00:33:08
136
原创 Homebrew | 介绍与安装
一、Homebrew介绍Homebrew是一款Mac OS平台下的软件包管理工具,拥有安装、卸载、更新、查看、搜索等很多实用的功能。简单的一条指令,就可以实现包管理,而不用你关心各种依赖和文件路径的情况,十分方便快捷。二、Homebrew安装安装/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"卸载/usr/bin/ruby -e "$..
2021-08-21 01:01:31
312
原创 LaTex | Fatal Package fontspec Error: The fontspec package requires either XeTeX or(fontspec) LuaTeX
LaTeX编译源文件出错Fatal Package fontspec Error: The fontspec package requires either XeTeX or(fontspec) LuaTeX. \msg_fatal:nn {fontspec} {cannot-use-pdftex}解决方案:编译器切换成XeLaTexOptions -> Configure TeXstudio -> Build -> XeLaTex...
2020-10-01 23:53:58
12442
4
原创 Pycharm | 连接配置远程服务器
一、连接服务器1.Tool->Deployment->Configuration2.添加服务器3.配置服务器信息设置成功可返回4.Mapping二、配置服务器(将python解释器设置为远程服务器上的python)1.File->settings->xxx->Project Interpreter2.配置信息...
2020-09-06 16:35:40
210
原创 Python | DataFrame基本操作(未完待续。。。)
查看行、列名 df.indexdf.columns 查看维度 df.shape 删除指定的列 # columns:删除的列名# axis:1-按行删除;2-按列删除# inplace:是否替换数组df.drop(columns = 'column_name', axis=1, inplace=True) 删除所有含nan的行(ro...
2020-04-28 09:15:15
306
原创 Python | import gensim 出错:unable to import 'smart_open.gcs', disabling that module
1.打开命令行窗口查看smart_open版本:pip list2.降级 smart_open 到1.10.0版本pip install smart_open==1.10.0
2020-04-27 13:58:18
1722
原创 Linux and Windows | 安装Pytorch
1.进入Pytorch官网https://pytorch.org/get-started/locally/2.根据环境选择* Pytorch版本* 系统环境* 工具* 语言3.运行上图生成的安装命令pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org...
2020-04-26 19:13:28
328
原创 IntelliJ IDEA连接MaxCompute项目空间
1、安装在IDEA中File>Settings>Plugins中Browse repositories搜索安装即可:MaxCompute Studio2、新建MaxCompute Studio项目3、View > Tool Windows> Project Explorer4、选择Project Explorer5、单击左上角的+,选择...
2020-04-26 19:07:10
1942
原创 Linux | 安装jupyter notebook
1.安装jupyter notebookpip install jupyter notebook注:前提安装好pip2.查看是否安装成功pip freeze |grep jupyter3.生成配置文件jupyter notebook --generate-config注:完成后会显示生成位置4.修改配置文件参数4.0打开配置文件vim ~/.jupy...
2020-04-26 01:00:03
310
原创 Linux | MacOS | 安装、创建和配置virtualenv虚拟环境
1.安装pip3 install virtualenv2.验证virtualenv是否安装成功virtualenv --version3.创建虚拟环境virtualenv --no-site-packages --python=python3 venv注:此处指定解释器为python3;venv为虚拟环境的名字,可随意指定4.进入虚拟环境source venv/bi...
2020-04-25 15:06:11
328
原创 Linux | 安装pip
1.下载文件wgethttps://bootstrap.pypa.io/get-pip.py2.安装pythonget-pip.py
2020-04-25 14:53:03
182
原创 jupyter notebook 密码/token
问题:登陆jupyter需要输入密码或者Token解决方案:1、打开命令行窗口win+R2、输入jupyter notebook list,即可获得Token
2020-02-09 17:57:54
1984
原创 Linux | 批量杀死进程的方法
例:ps aux|grep python|grep tingting|cut -c 9-15|xargs kill -9 ps aux|grep python|grep -v grep|cut -c 9-15|xargs kill -15ps aux:查看linux 所有进程的命令。这时检索出的进程将作为下一条命令“grep python”的输入。grep python:所...
2019-05-22 13:06:27
351
原创 pip | 永久更改的安装源
1.在windows文件管理器中,输入%APPDATA%2.会定位到一个新的目录下,在该目录下新建pip文件夹,然后到pip文件夹里面去新建个pip.ini文件3.在新建的pip.ini文件中输入以下内容[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple(此处使用的是清华源)...
2019-05-21 19:37:36
1433
原创 failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on your systems' PATH
问题描述:安装graphviz之后,使用时出现如下错误failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on your systems' PATH解决方法:1. 下载并安装graphvizhttps://graphviz.gitlab.io/_pages/Download/Do...
2019-05-02 10:51:59
9378
原创 windows | 安装jupyter
1.安装jupyter命令行输入:pip3 install jupyter2.修改jupyter notebook配置文件(工作目录)先切换到python安装目录下的script:(1) D:\Python\Scripts(2) jupyter notebook --generate-config(3)打开以下生成的文件(4) 修改工作路径:c.Noteb...
2019-05-01 11:12:23
541
原创 Linux | kill进程的方式
1、pkillpkill -u username2、killallkillall -uusername3、killall 强制killall -9 -uusername4、killkill PID注:PID通过 ps -u 查看
2019-04-18 17:35:16
194
原创 Linux | 执行shell脚本错误:$'\r':command not found
产生原因:shell脚本是在window下编辑完成后上传到Linux上执行的,window下的换行是回车符+换行符,也就是\r\n;而Linux下换行是换行符\n。因此Linux下无法识别\r为回车符,所以导致每行都多了个\r,是脚本编码产生的问题。解决方法:1、安装:yum install dos2unix -y(如果已有dos2unix命令,可以跳过此步骤)2、文...
2019-04-09 13:21:53
680
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人