Python - UV PyCharm 不能识别 .venv 的环境
Python - UV 为每个项目创建独立、干净的Python工作空间
使用 uv run 可以运行 py 文件,但 PyCharm 不能识别 Python 环境
PS D:\OpenSource\Python\VipPython> uv python install 3.12
Python 3.12 is already installed
PS D:\OpenSource\Python\VipPython> uv run .\sync_device\repeating_sn.py
hello,world!

File -> Settings -> Project: XXX -> Python Interpreter -> Add Interpreter -> Add Local Interpreter

选择 New 新环境


运行环境里就会出现配置的对应当前项目的 Python 环境

点击运行

本文来自博客园,作者:VipSoft 转载请注明原文链接:https://www.cnblogs.com/vipsoft/p/19451875
浙公网安备 33010602011771号