前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >python包管理Rye

python包管理Rye

作者头像
阿超
发布2024-09-29 09:22:13
640
发布2024-09-29 09:22:13
举报
文章被收录于专栏:快乐阿超

教育的目的应当教人如何思考,而非思考些什么;应为增进我们的心智,是我们能自行思考,而不是将别人的思考作为我们记忆的负担。——斯宾诺塞

Rye 是适用于 Python 的综合项目和包管理解决方案。Rye 的创建者希望为所有 Python 用户建立一站式服务,它提供了一种统一的体验,可以无缝地安装和管理 Python 安装、基于 pyproject.toml 的项目、依赖项和虚拟环境。它旨在适应复杂的项目、monorepo 并促进全球工具安装。好奇?观看简介

github:

https://github.com/astral-sh/rye

官方文档:

https://rye.astral.sh/

安装、使用:

代码语言:javascript
复制
Github-Id-VampireAchao:~ achao$ curl -sSf https://rye.astral.sh/get | bash

This script will automatically download and install rye (latest) for you.
######################################################################## 100.0%
Welcome to Rye!

This installer will install rye to /Users/achao/.rye
This path can be changed by exporting the RYE_HOME environment variable.

Details:
  Rye Version: 0.40.0
  Platform: macos (aarch64)

✔ Continue? · yes
✔ What should running `python` or `python3` do when you are not inside a Rye managed project? · Run a Python installed and managed by Rye
✔ Which version of Python should be used as default toolchain? · cpython@3.12
Installed binary to /Users/achao/.rye/shims/rye
Bootstrapping rye internals
Fetching requested internal toolchain 'cpython@3.12.6'
Downloading cpython@3.12.6
Checking checksum
Unpacking
Downloaded cpython@3.12.6
Updated self-python installation at /Users/achao/.rye/self

The rye directory /Users/achao/.rye/shims was not detected on PATH.
It is highly recommended that you add it.
✔ Should the installer add Rye to PATH via .profile? · yes
Added to PATH.
note: for this to take effect you will need to restart your shell or run this manually:

    source "$HOME/.rye/env"

To make it work with zsh, you might need to add this to your .zprofile:

    source "$HOME/.rye/env"

For more information read https://rye.astral.sh/guide/installation/

All done!
Github-Id-VampireAchao:~ achao$ 
Github-Id-VampireAchao:~ achao$ rye install posting
-bash: rye: command not found
Github-Id-VampireAchao:~ achao$ source "$HOME/.rye/env"
Github-Id-VampireAchao:~ achao$ rye install posting
Resolved 35 packages in 2.57s
   Built pyperclip==1.9.0
Prepared 34 packages in 745ms
Installed 35 packages in 54ms
 + annotated-types==0.7.0
 + anyio==4.6.0
 + brotli==1.1.0
 + certifi==2024.8.30
 + click==8.1.7
 + click-default-group==1.2.4
 + h11==0.14.0
 + httpcore==1.0.5
 + httpx==0.27.2
 + idna==3.10
 + linkify-it-py==2.0.3
 + markdown-it-py==3.0.0
 + mdit-py-plugins==0.4.2
 + mdurl==0.1.2
 + platformdirs==4.3.6
 + posting==1.13.0
 + pydantic==2.9.0
 + pydantic-core==2.23.2
 + pydantic-settings==2.4.0
 + pygments==2.18.0
 + pyperclip==1.9.0
 + python-dotenv==1.0.1
 + pyyaml==6.0.2
 + rich==13.8.1
 + setuptools==75.1.0
 + sniffio==1.3.1
 + textual==0.79.1
 + textual-autocomplete==3.0.0a9
 + tree-sitter==0.20.4
 + tree-sitter-languages==1.10.2
 + typing-extensions==4.12.2
 + tzdata==2024.2
 + uc-micro-py==1.0.3
 + watchfiles==0.24.0
 + xdg-base-dirs==6.0.1

Installed scripts:
  - posting

note: additional scripts were encountered in non-installed dependencies.
Github-Id-VampireAchao:~ achao$ posting
Github-Id-VampireAchao:~ achao$ posting

                                                                                                    
   Posting 1.13.0                                              achao@Github-Id-VampireAchao.local   
                                                                                                    
    GET     ▼ ▌Enter a URL...                                                             Send      
                                                                                                    
  ╭─ Collection ────────────────╮╭───────────────────────────────────────────────────── Request ─╮  
  │                             ││ Headers  Body  Query  Auth  Info  Options                     │  
  │  Collection is empty.       ││╸━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━│  
  │  Press ctrl+s to save the   ││╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱│  
  │  current request.           ││╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱│  
  │                             ││╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱There are no headers.╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱│  
  │                             ││╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱│  
  │                             ││╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱│  
  │                             ││╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱│  
  │                             ││  Name                  Value                    Add header    │  
  │                             │╰───────────────────────────────────────────────────────────────╯  
  │                             │╭──────────────────────────────────────────────────── Response ─╮  
  │                             ││ Body  Headers  Cookies  Trace                                 │  
  │                             ││╸━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━│  
  │                             ││                                                               │  
  │                             ││                                                               │  
  │                             ││                                                               │  
  │                             ││                                                               │  
  │                             ││                                                               │  
  │                             ││                                                               │  
  │                             ││                                                               │  
  │                             ││                             1:1 read-only  JSON ▼   Wrap ▐X▌  │  
  ╰─────────────────── default ─╯╰───────────────────────────────────────────────────────────────╯  
   ^j Send  ^t Method  ^s Save  ^n New  ^p Commands  ^o Jump  ^c Quit  f1 Help                      
                                                                                                    
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2024-09-27,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档