Unable to work with uv enviroment
We are using PyCharm 2024.3.5 to develop our code.
So far we have always used standard virtual environments for my python interprets and always worked fine.
One of code users asked if we could use uv instead of virtualenv and then we tried.
We have installed uv on our development system using pipx. We have set up the corresponding environments via hatch using us as installed and the environment is properly created and functional.
We then tried to instruct PyCharm to use this existing uv environment, but it cannot find any installed package. See image below.

We tried to click on the install packaging tools warning, it says it was done, but the problem and the warning remains.
As a second option, we tried to create the uv environment from PyCharm as a new one. The environment in created but again it is completely empty, meaning that no other packages were installed. At the end of the environment creation, a message saying ‘Invalid output format’ appeared.
Can you help us debugging this issue?
Thanks for your collaboration!
toto
Please sign in to leave a comment.
Hello, Antonio Bulgheroni
Could you please clarify your PyCharm version? Based on the issue description, it seems similar to the bug PY-78789 . Could you please check if the same behaviour is observed in the EAP version ?
Hi, thanks for your answer!
I'm using PyCharm 2024.3.5 and unfortunately we cannot try on a different version because of company restriction.
Hi,
This bug has been fixed in version 2025.1. I recommend waiting for the official release, which should be available soon.
Thank you for your understanding!
Hello i have the same issue with
pycharm 2025.1
, the package list detected by pycharm is completly empty, when my environment has a bunch of stuff installed.I get an error message that says the following command failed :
/path/to/project/.venv/bin/python3.12 pip list --format json
: Command failedWhich is normal as python does not have a subcommand named pip.
UV does though and the command:
uv pip list --format json
Works correctly in terminal.
pycharm has confused the python executable for the uv one. I tried multiple times to delete and recreate the env and the project i got the same isssue.
When using use existing env and choosing a uv env, you need to add path to uv and path to env, it auto add python path to uv path, i then proceed to correct those, but after saving the command still fails.
When i add the env as a virtualenv it works fine, and correctly lists all packages (i have also done
uv add --dev pip
to allow correct detection)Hello, Olga Kannavou ,
To check the issue, please create YouTrack ticket and attach the logs archive, which can be found under Help | Collect Logs and Diagnostic Data.