python环境安装

本文详细介绍了如何配置conda的国内镜像源,以提升包的下载速度,并展示了如何在PyCharm中配置已有的conda环境,确保开发环境的顺利搭建。通过设置conda配置文件,并列举了清华镜像源的各个通道,指导用户进行conda环境的创建、激活与删除。同时,提供了PyCharm中选择conda环境作为解释器的步骤,帮助开发者高效地管理Python项目。
摘要由CSDN通过智能技术生成

conda安装配置

conda的安装配置流程基本都一样,参考网上即可。

conda的国内镜像配置如下。

使用清华的镜像源;配置文件: C:\Users\Lenovo\.condarc

a) conda config --set show_channel_urls yes
b) 创建环境: conda create -n python3.6 python=3.6
c) 切换环境: conda activate python3.6 ; conda deactivate python3.6 ; conda env remove -n python3.6 

channels:
  - defaults
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
  - 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

pycharm环境配置

主要的配置流程参考:在PyCharm中配置使用Anaconda环境_TK · X的博客-CSDN博客_pycharm使用anaconda

解释器配置选用已经安装的配置环境,如下图。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ant-666

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值