anaconda安装和使用总结
作者:互联网
1.anaconda下载
https://www.anaconda.com/products/distribution
2.anaconda更新清华镜像源
- anaconda界面→file→preferences→configure conda
- 清空复制粘接以下内容
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
anaconda | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
3.anaconda更新命令
- base环境
conda update conda conda update anaconda conda update python conda update --all
4.anaconda新建环境
- base环境
- 新建环境
conda create -n miaomiao python==x.x.x
- 激活环境
conda activate miaomiao
- 删除环境
conda remove --name miaomiao --all
5. 配置jupyter
- 在base环境下安装
- 安装ipykernel
conda install ipykernel
- 配置jupyter
python -m ipykernel install --user --name miaomiao
6.akshere命令
https://akshare.akfamily.xyz/installation.html
- 在base环境下安装
- 安装
pip install akshare -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com --user --upgrade
- 升级akshere
pip install akshare --upgrade -i https://pypi.org/simple
- 常用股票命令
https://akshare.akfamily.xyz/data/stock/stock.html
7. talib安装
- 在base环境下安装
- talib安装教程:https://www.bilibili.com/read/cv13959183
- 手动教程如下:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib
放入指定目录安装:
pip install TA_Lib-0.4.18-cp38-cp38-win_amd64.whl
代码进入目录安装
pip install D:\my_packages\ TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl
8.miaomiao环境安装程序
- 管理员权限打开anaconda,切换miaomiao环境
- 安装jupyterlab
- 安装powershell prompt
9.启动jupyterlab
- 进入base环境,点击jupyterlab
标签:总结,mirrors,anaconda,conda,tsinghua,https,edu,安装 来源: https://www.cnblogs.com/procorossoscs/p/16492540.html