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

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

  •  
  •   hyzyxmj · Apr 2, 2025 · 1314 views
    This topic created in 482 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   ·   1501 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 16:43 · PVG 00:43 · LAX 09:43 · JFK 12:43
    ♥ Do have faith in what you're doing.