Anaconda清华镜像--安装、配置与使用

文章目录

  • 1. Anaconda下载安装
    • 1.1 下载地址
    • 1.2 安装
  • 2. 配置清华镜像源
  • 3. 测试使用
  • 4 未找到的模块

1. Anaconda下载安装

1.1 下载地址

清华镜像:https://mirrors.tuna.tsinghua.edu.cn/
Anaconda清华镜像--安装、配置与使用_第1张图片
Anaconda清华镜像--安装、配置与使用_第2张图片
Anaconda清华镜像--安装、配置与使用_第3张图片
选择适合自己系统的最新版本下载。

1.2 安装

双击下载后的exe文件:
Anaconda清华镜像--安装、配置与使用_第4张图片
Anaconda清华镜像--安装、配置与使用_第5张图片
Anaconda清华镜像--安装、配置与使用_第6张图片
Anaconda清华镜像--安装、配置与使用_第7张图片
Anaconda清华镜像--安装、配置与使用_第8张图片
Anaconda清华镜像--安装、配置与使用_第9张图片
Anaconda清华镜像--安装、配置与使用_第10张图片
Anaconda清华镜像--安装、配置与使用_第11张图片
此时安装的应用如下:
Anaconda清华镜像--安装、配置与使用_第12张图片
Anaconda Navigator:图形化界面
Anaconda Powershell Prompt:命令行
Anaconda Prompt:命令行

Anaconda Powershell Prompt 和 Anaconda Prompt 两者区别:

  1. https://stackoverflow.com/questions/56656493/what-is-the-difference-between-anaconda-prompt-and-anaconda-powershell-prompt
  2. https://www.coder.work/article/3155101

Jupyter Notebook:是一个交互式笔记本,支持运行40多种编程语言。IPython notebook是一个基于IPython REPL的web应用,安装IPython后在终端输入ipython notebook即可启动服务。

jupyter:是把IPython和Python解释器剥离后的产物,将逐渐替代IPython独立发行。

2. 配置清华镜像源

首先,先运行anaconda.
Anaconda清华镜像--安装、配置与使用_第13张图片
Anaconda清华镜像--安装、配置与使用_第14张图片
一般修改配置文件,如下:
https://mirror.tuna.tsinghua.edu.cn/help/anaconda/

找到用户目录下.condarc文件,以记事本打开。一般不可见,先显示隐藏的项目。
Anaconda清华镜像--安装、配置与使用_第15张图片
修改为下:

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
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

即可添加 Anaconda Python 免费仓库。

3. 测试使用

先创建一个新环境:
Anaconda清华镜像--安装、配置与使用_第16张图片
我使用pycharm测试python程序,先安pycharm:
下载地址:https://www.jetbrains.com/pycharm/download/#section=windows
Anaconda清华镜像--安装、配置与使用_第17张图片
选择免费的社区版下载即可。下载后双击安装。

Anaconda清华镜像--安装、配置与使用_第18张图片
Anaconda清华镜像--安装、配置与使用_第19张图片
Anaconda清华镜像--安装、配置与使用_第20张图片

4 未找到的模块

使用anaconda图形界面没有找到的模块可以去以下网址:
https://pypi.tuna.tsinghua.edu.cn/simple/

例如onnxruntime模块,可使用命令行添加:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple onnxruntime

你可能感兴趣的:(python,windows,pycharm,python)