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

文章目录

1.1 下载地址

清华镜像:https://mirrors.tuna.tsinghua.edu.cn/

Anaconda清华镜像--安装、配置与使用
Anaconda清华镜像--安装、配置与使用
Anaconda清华镜像--安装、配置与使用
选择适合自己系统的最新版本下载。

; 1.2 安装

双击下载后的exe文件:

Anaconda清华镜像--安装、配置与使用
Anaconda清华镜像--安装、配置与使用
Anaconda清华镜像--安装、配置与使用
Anaconda清华镜像--安装、配置与使用
Anaconda清华镜像--安装、配置与使用
Anaconda清华镜像--安装、配置与使用
Anaconda清华镜像--安装、配置与使用
Anaconda清华镜像--安装、配置与使用
此时安装的应用如下:
Anaconda清华镜像--安装、配置与使用
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独立发行。

  1. 配置清华镜像源

首先,先运行anaconda.

Anaconda清华镜像--安装、配置与使用
Anaconda清华镜像--安装、配置与使用
一般修改配置文件,如下:
https://mirror.tuna.tsinghua.edu.cn/help/anaconda/

找到用户目录下.condarc文件,以记事本打开。一般不可见,先显示隐藏的项目。

Anaconda清华镜像--安装、配置与使用
修改为下:
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 免费仓库。

  1. 测试使用

先创建一个新环境:

Anaconda清华镜像--安装、配置与使用
我使用pycharm测试python程序,先安pycharm:
下载地址:https://www.jetbrains.com/pycharm/download/#section=windows
Anaconda清华镜像--安装、配置与使用
选择免费的社区版下载即可。下载后双击安装。

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

; 4 未找到的模块

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

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

Original: https://blog.csdn.net/jialong_chen/article/details/121485308
Author: 飞翔的霸王龙
Title: Anaconda清华镜像–安装、配置与使用

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/670813/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球