Sublime text 4 + Anaconda3 + conda配置Python开发环境(记录)

本文指导如何下载并安装SublimeText4和Anaconda3,然后详细介绍了在SublimeText4中安装Anaconda插件以实现代码自动补全和提示功能。配置文件包括对python_interpreter的设定以及conda相关配置,确保了代码编辑环境的顺畅使用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、下载安装sublime text 4 

  下载地址为 :Sublime Text - Text Editing, Done Righthttps://www.sublimetext.com/ 安装过程不在赘述。

二、下载安装Anaconda3

下载地址为:

   Anaconda | The World's Most Popular Data Science Platformhttps://www.anaconda.com/

三、配置环境

        在Sublime Text 4中安装Anaconda插件并配置自己的环境

        (实现代码自动补全,提示)

{
	"python_interpreter":"d:\\anaconda3\\python.exe",     //实际安装路径
	"suppress_word_completions":true,                          
	"suppress_explicit_completions":true,
	"complete_parameters":true, 
	"auto_formatting":true,
	"auto_formatting_timeout":3,
	"enable_signatures_tooltip":true,
	"merge_signatures_and_doc":true,
	"swallow_startup_errors":true,
	"anaconda_linting":false,
}

        安装conda并配置环境

// Default Windows settings for sublime-text-conda:
{
    // executable is the path to anaconda's python
    // this python executable is used in order to find conda
    "executable": "D:\\anaconda3\\python.exe",

    // Directory in which the conda envs are stored
    // Default location is the user's home directory
    "environment_directory": "D:\\anaconda3\\envs",

    // System architecture for Python installation
    // options: 32 or 64 bit
    "architecture": "64",

    // configuration is the path to conda's configuration file
    "configuration": "C:\\Users\\ChenGuang\\.condarc",

    // when true, the scripts will be run through the shell
    // If your code has a GUI (e.g. a matplotlib plot),
    // this needs to be true, otherwise Windows suppresses it.
    "run_through_shell": true,

    // when true, the script execution will be handed over to
    // the pythonw executable, instead of python
    "use_pythonw": false,

    // open repl in second row tab below current file,
    // closing any existing tabs in that area
    // assumes files are kept in group 0 (typical)
    "repl_open_row": false,

    // when opening a repl using repl_open_row, close any
    // existing conda repls in the second row first
    "repl_row_close_existing": false,

    // save the current file (if dirty) when opening repl
    "repl_save_dirty": true,

    // syntax highlighting for Open REPL command
    // choice between 'python' and 'plaintext'
    "repl_syntax": "python"
}

 注:配置文件.condarc 是第一次运行conda config时,自动创建在用户目录下的隐藏文件

 结束:

评论 15
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

Chen_陈某人

一杯水,一包烟,一把键盘敲一天

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

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

打赏作者

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

抵扣说明:

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

余额充值