• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hyzyxmj
V2EX  ›  程序员

Cursor Debug 环境与新建终端环境不一致,是什么原因

  •  
  •   hyzyxmj · Apr 2, 2025 · 1323 views
    This topic created in 486 days ago, the information mentioned may be changed or developed.
    之前一直正常,也没配置过什么新的环境,现在通过 运行与调试功能 运行项目,命令 /usr/bin/env/root/.pyenv/versions/3.10.12/envs/secfox-uomc/bin/python 显示使用 python3.10.12 ,实际运行的却是 3.9.12 ,但新建终端,又能自动识别加载正确的 3.10.12

    <img src="https://imgur.com/a/EJfnVRk">
    1 replies    2025-04-02 10:43:53 +08:00
    EfTi1a81WP5VqWW4
        1
    EfTi1a81WP5VqWW4  
       Apr 2, 2025
    检查调试配置,确保路径与新建终端使用的解释器一致,不行再试试手动激活虚拟环境
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2759 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 04:50 · PVG 12:50 · LAX 21:50 · JFK 00:50
    ♥ Do have faith in what you're doing.