Moonglade

Modern Markdown blogging with AI-powered localization and search.


pyenv Notes

This article documents the practice and experience of managing Python versions using `pyenv` in an Ubuntu 24.04 environment. The motivation was that while building the MongoDB source code, the official documentation required Python 3.10+, but the system's default version 3.12.3 caused the build to fail due to API incompatibility. Since modifying the source code was not an option, the decision was made to use `pyenv` to specifically install a 3.10.x version. The article details the process of automatically installing `pyenv` via a `curl` script and configuring `~/.bashrc`. It also highlights the extremely unfriendly user experience of `pyenv`, specifically noting the lack of progress indicators, minimal information feedback, and the absence of interactive options during installation and build processes. Additionally, addressing the issue where `pip` and `poetry` command-line mirror source configurations failed, the author successfully configured the Tsinghua University or Tencent Cloud mirror addresses to accelerate dependency package downloads by manually creating and editing the `~/.pip/pip.conf` and `~/.config/pypoetry/config.toml` files. The article emphasizes the importance of not arbitrarily modifying the system's pre-installed Python environment and repeatedly warns developers to avoid writing programs that lack user feedback and interactivity. It suggests that readers refer to this configuration method in similar scenarios to avoid potential pitfalls.

Views 96
daily env install mongodb pyenv study

New System Preinstalled Software Record

This document records a checklist for setting up a new host and configuring its environment, aiming to provide a standardized reference for future computer deployments or pre-installation for new employees. The content covers both Windows and Ubuntu systems, listing development tools and daily-use applications for each. The core of the development environment includes VS Code Insiders, Git, Docker, K8s, as well as database tools DBeaver and MongoDB Compass. For network proxy solutions, v2rayN or Clash is recommended for Windows, while alternatives such as Qv2ray are mentioned for Ubuntu. Regarding daily applications, cross-platform tools such as Edge, VLC, Calibre, and OBS are prioritized, and Windows-specific utilities like Listary and CopyQ are also included. Additionally, the article compiles key resources required for private cloud drive synchronization, including SSH keys, proxy configurations, and Docker mirror sources. It also provides specific configuration commands for SSH proxy forwarding on both Windows and Ubuntu, facilitating quick reuse and enabling an efficient, systematic installation process.

Views 82
Operating System Setup Software Installation daily env study work