Anaconda 使用
Mac Anaconda 第三方包地址:
~/opt/anaconda3/lib/python3.7/site-packages
Softwrap 换行
一行内容显示比较多时,希望能换行显示,而非拖动滑动条,修改配置文件:
~/opt/anaconda3/etc/jupyter/nbconfig/notebook.json
添加内容:
{
"MarkdownCell": {
"cm_config": {
"lineWrapping": true
}
},
"CodeCell": {
"cm_config": {
"lineWrapping": true
}
}
}
然后重新开启页面。
命令
Anaconda Command Reference
https://docs.conda.io/projects/conda/en/latest/commands.html
***
常用
$ conda -h # 查询conda的命令使用
$ conda --version # 查询conda版本
$ conda config --show # 显示conda的配置信息;channel, 对应的就是我们的镜像配置
$ conda config --set show_channel_urls yes # 设置搜索时显示通道地址
$ conda list # 查看安装了哪些包。
$ conda env list 或 conda info -e #查看当前存在哪些虚拟环境
$ conda update conda # 检查更新当前conda
(base) $ conda -h
usage: conda [-h] [-V] command ...
conda is a tool for managing and deploying applications, environments and packages.
Options:
positional arguments:
command
clean Remove unused packages and caches.
config Modify configuration values in .condarc. This is modeled
after the git config command. Writes to the user .condarc
file (/Users/user/.condarc) by default.
create Create a new conda environment from a list of specified
packages.
help Displays a list of available conda commands and their help
strings.
info Display information about current conda install.
init Initialize conda for shell interaction. [Experimental]
install Installs a list of packages into a specified conda
environment.
list List linked packages in a conda environment.
package Low-level conda package utility. (EXPERIMENTAL)
remove Remove a list of packages from a specified conda environment.
uninstall Alias for conda remove.
run Run an executable in a conda environment. [Experimental]
search Search for packages and display associated information. The
input is a MatchSpec, a query language for conda packages.
See examples below.
update Updates conda packages to the latest compatible version.
upgrade Alias for conda update.
optional arguments:
-h, --help Show this help message and exit.
-V, --version Show the conda version number and exit.
conda commands available from other packages:
build
convert
debug
develop
env
index
inspect
metapackage
render
server
skeleton
verify