choosenim完全指南:如何轻松安装和管理Nim编程语言多版本 choosenim完全指南如何轻松安装和管理Nim编程语言多版本【免费下载链接】choosenimTool for easily installing and managing multiple versions of the Nim programming language.项目地址: https://gitcode.com/gh_mirrors/ch/choosenimchoosenim是一款功能强大的Nim编程语言版本管理工具它能帮助开发者轻松安装和管理多个Nim版本让你在稳定版和开发版编译器之间自由切换。无论你是Nim新手还是资深开发者choosenim都能大幅提升你的开发效率。 为什么选择choosenimchoosenim的设计目标非常明确提供简单易用的Nim编译器及工具安装方式管理多个Nim安装版本并支持按需选择使用就像Rust的rustup和Python的pyenv一样choosenim作为工具链多路复用器通过~/.nimble/bin中的代理工具将所有Nim版本统一呈现给用户让版本切换变得前所未有的简单。 快速安装指南Windows系统安装从releases页面下载最新的Windows版本.zip文件解压zip归档文件运行runme.bat脚本按照屏幕提示完成安装提示还有一个第三方项目提供choosenim安装程序你可以在这里找到它请注意这不是Nim团队审核的使用风险自负。Unix系统安装使用curlcurl https://nim-lang.org/choosenim/init.sh -sSf | sh或者使用wgetwget -qO - https://nim-lang.org/choosenim/init.sh | sh可选你可以通过指定CHOOSENIM_CHOOSE_VERSION环境变量来设置init.sh脚本要安装的初始版本。 基本使用方法选择稳定版本要选择当前的stable版本Nim$ choosenim stable Installed component nim Installed component nimble Installed component nimgrep Installed component nimpretty Installed component nimsuggest Installed component testament Switched to Nim 1.0.0 $ nim -v Nim Compiler Version 1.0.0 [Linux: amd64]更新到最新稳定版$ choosenim update stable查看已安装版本$ choosenim show Selected: 1.6.6 Channel: stable Path: /home/dom/.choosenim/toolchains/nim-1.6.6 Versions: #devel * 1.6.6 1.0.0 #v1.0.0切换到特定版本你可以通过版本号直接选择choosenim 1.6.6或者通过分支/标签名称选择choosenim #devel注意选择分支可能需要Nim进行引导这可能会比较慢。️ 高级使用技巧列出可用版本choosenim versions仅显示已安装的版本choosenim versions --installed更新choosenim本身choosenim update self查看当前Nim路径choosenim show path从本地目录选择Nim版本如果你有本地编译的Nim版本可以直接指定路径choosenim ~/projects/nim 工作原理choosenim将多个Nim工具链安装在~/.choosenim/toolchains目录中。例如运行nim命令时实际上执行的是~/.nimble/bin/nim中的代理程序它会委托给当前选择的工具链如~/.choosenim/toolchains/nim-1.0.0/bin/nim。工具链安装方式在Windows和Linux上choosenim会下载并安装官方发布的二进制文件在其他平台上会下载官方源代码发布版并进行构建只有选择新版本时才会执行安装操作随着官方二进制文件支持更多平台choosenim会相应地安装它们。 系统依赖WindowsLinuxmacOS (*)C compilerDownloaded automaticallygcc/clanggcc/clangOpenSSLN/AN/AN/AcurlN/AAny recent version (※)Any recent version许多macOS依赖项应该已经安装。但你可能需要安装C编译器。有关依赖项的更多信息请参见这里。 ※ 有些用户需要安装libcurl4-gnutls-dev参见这里安装Nim的#HEAD版本或特定提交时需要Git。unxz二进制文件是可选的但它可以让choosenim下载更小的tarball。 完整命令参考 choosenim -h choosenim: The Nim toolchain installer. Choose a job. Choose a mortgage. Choose life. Choose Nim. Usage: choosenim version/path/channel Example: choosenim 1.0.0 Installs (if necessary) and selects version 0.16.0 of Nim. choosenim stable Installs (if necessary) Nim from the stable channel (latest stable release) and then selects it. choosenim #head Installs (if necessary) and selects the latest current commit of Nim. Warning: Your shell may need quotes around #head: choosenim #head. choosenim ~/projects/nim Selects the specified Nim installation. choosenim update stable Updates the version installed on the stable release channel. choosenim versions [--installed] Lists the available versions of Nim that choosenim has access to. Channels: stable Describes the latest stable release of Nim. devel Describes the latest development (or nightly) release of Nim taken from the devel branch. Commands: update version/channel Installs the latest release of the specified version or channel. show Displays the selected version and channel. show path Prints only the path of the current Nim version. update self Updates choosenim itself. versions [--installed] Lists available versions of Nim, passing --installed only displays versions that are installed locally (no network requests). Options: -h --help Show this output. -y --yes Agree to every question. --version Show version. --verbose Show low (and higher) priority output. --debug Show debug (and higher) priority output. --noColor Dont colorise output. --choosenimDir:dir Specify the directory where toolchains should be installed. Default: ~/.choosenim. --nimbleDir:dir Specify the Nimble directory where binaries will be placed. Default: ~/.nimble. --firstInstall Used by install script. 分析数据有关choosenim的分析数据详情请查看analytics文档。 许可证choosenim使用MIT许可证详情请参见LICENSE文件。通过choosenim管理Nim版本变得如此简单让你可以专注于编写出色的Nim代码而不必担心版本兼容性问题。立即安装choosenim体验Nim编程的乐趣吧【免费下载链接】choosenimTool for easily installing and managing multiple versions of the Nim programming language.项目地址: https://gitcode.com/gh_mirrors/ch/choosenim创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

相关新闻

最新新闻

SerenityOS 命令行选项解析指南:getopt 与 getopt_long 用法、返回值与底层实现

SerenityOS 命令行选项解析指南:getopt 与 getopt_long 用法、返回值与底层实现

SerenityOS 命令行选项解析指南:getopt 与 getopt_long 用法、返回值与底层实现 【免费下载链接】serenity The Serenity Operating System 🐞 项目地址: https://gitcode.com/GitHub_Trending/se/serenity 导读 本文以 getopt(3) 手册 为核心&a…

2026/9/25 12:45:43
轻量服务器还是ECS?大促云服务器选购与避坑实战指南

轻量服务器还是ECS?大促云服务器选购与避坑实战指南

每年大促节点,群里永远有人在问同一个问题:“38元的轻量服务器到底怎么抢?为什么我每次点进去都是已售罄?68元直购和99元的ECS我到底选哪个?”作为一个常年帮团队和自己采购云服务器的老用户,我太清楚这种纠…

2026/9/24 14:25:52
为 AI 代理的 Review 动作编写 Cedar 审批门控策略:review-agent-governance 策略编写实战指南

为 AI 代理的 Review 动作编写 Cedar 审批门控策略:review-agent-governance 策略编写实战指南

为 AI 代理的 Review 动作编写 Cedar 审批门控策略:review-agent-governance 策略编写实战指南 【免费下载链接】agents Multi-harness agentic plugin marketplace for Claude Code, Codex, Cursor, OpenCode, GitHub Copilot, and Google Antigravity 项目地址:…

2026/9/26 3:42:08
PaddleOCR 手写数学公式识别算法 CAN 实战指南:Counting-Aware Network 训练、评估与推理部署

PaddleOCR 手写数学公式识别算法 CAN 实战指南:Counting-Aware Network 训练、评估与推理部署

PaddleOCR 手写数学公式识别算法 CAN 实战指南:Counting-Aware Network 训练、评估与推理部署 【免费下载链接】PaddleOCR Turn any PDF or image document into structured data for your AI. A powerful, lightweight OCR toolkit that bridges the gap between i…

2026/9/23 8:01:38
Spring源码解析:构造器注入的类型转换与候选匹配机制

Spring源码解析:构造器注入的类型转换与候选匹配机制

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/26 4:08:27
openai-agents-python 多模型接入指南:深入解析 AnyLLMModel 适配层与 any-llm 路由

openai-agents-python 多模型接入指南:深入解析 AnyLLMModel 适配层与 any-llm 路由

openai-agents-python 多模型接入指南:深入解析 AnyLLMModel 适配层与 any-llm 路由 【免费下载链接】openai-agents-python A lightweight, powerful framework for multi-agent workflows 项目地址: https://gitcode.com/GitHub_Trending/op/openai-agents-pyth…

2026/9/25 15:49:36

日新闻

周新闻