164 questions
1
vote
0
answers
60
views
Running a tool with uvx from a private repo using an access token
I want to frequently test a Python application I'm developing with uv, which I publish to a private repository on a GitLab instance. I've generated an access token with read access to the repo and I ...
Best practices
0
votes
2
replies
44
views
Packaging a python application that depends on other servers running
I am developing a LangGraph project with uv. It makes use of LangGraph's implementation of the model context protocol to interface with a number of third-party services, among them an interface for ...
2
votes
1
answer
140
views
How to set extra index with credentials for uv like pip configuration
Similiar to this question, we want to specify an extra package index to be used by uv. However, our package index url contains private information, i.e., user name and token.
Up to now, we used pip to ...
1
vote
1
answer
98
views
Can uv integrate with e.g. pytorch prebuilt docker env?
So, pytorch requires a rather large bundle of packages. The prebuilt docker pytorch gpu images (https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/running.html) are quite helpful in ...
0
votes
1
answer
147
views
issue installing manim on windows
Resolved 38 packages in 1.11s
× Failed to build `pyglm==2.8.2`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit code: 1)
[stdout]
...
0
votes
0
answers
94
views
Is the exclude-newer setting in uv sufficient for determinism and reproducibility without a lockfile?
The Python package management tool uv has an exclude-newer setting, documented as follows:
Limit candidate packages to those that were uploaded prior to a given point in time.
Accepts a superset of ...
0
votes
0
answers
75
views
UV Docker Cache behaviour issues
I have checked out Docker Caching and the uv docker example. Both of them fail to clarify on the behaviour of the cache directory.
In the local system, I'm able to check and verify that the ...
0
votes
0
answers
100
views
uv is building projects without a [build-system] definition in the pyproject.toml
The documentation for uv says:
If your project does not include a [build-system] definition in the pyproject.toml, uv will not build it by default.
However:
C:\Users\USERNAME\Downloads>uv init ...
1
vote
1
answer
120
views
What does the uvw command do?
When I install uv though winget, the uv, uvx and uvw aliases get added.
I know that uvx is an alias for uv tool run, but what is uvw an alias for?
1
vote
1
answer
239
views
How to prevent uv with a tkinter application giving xcb error
I am using uv to manage my python environments and I am getting a low level error message when I try to run a simple tkinter script
# xxx.py
import tkinter as tk
def main():
root = tk.Tk()
...
4
votes
1
answer
302
views
Add Python package with UV using environment variable
I want to install the streamlink Python package to my corporate environment. For licencing issue, it needs to be:
Built with --no-binary option for streamlink package.
Built using ...
2
votes
1
answer
289
views
Do I have to copy every workspace member in the Dockerfile to be able to use `uv sync --locked`
I'm currently in the process of migrating an existing codebase in my org to use uv as a package manager. It's a monorepo and having the ability to setup workspaces within a single repo was amazing. I'...
6
votes
1
answer
323
views
Open source AI: How can I use uv or pip to install the *correct* build of PyTorch (CUDA, CPU, ROCm, etc.)?
My project uses PyTorch and Lightning. Since PyTorch is system dependent, users need to install it manually, based on their platform, using the platform-specific pip command provided by the PyTorch ...
0
votes
0
answers
251
views
uv dependency resolution error: "conflicting URLs for package" with pyproject.toml workspace and optional dependencies
I am using uv to manage my dependency. My pyproject.toml looks like
[project]
name = "project_1"
version = "2.3.0"
description = "My Project description."
requires-python ...
0
votes
0
answers
80
views
Autocomplete pdb and .venv
I have the following file 'test.py'
#!/usr/bin/env python3
if __name__ == '__main__':
test: str = "This is a test"
breakpoint()
print(test)
When executing this (no venv) auto-...
2
votes
0
answers
348
views
UV package manager cannot find my workspace member
I intended to use git submodule to bring my other source code(backend) into my-app. Then I wanted utilize uv's workspace so that it manages the dependencies of both my-app and the backend altogether.
...
5
votes
2
answers
2k
views
How can I install a Python package temporarily with uv without adding it to pyproject.toml?
I’m experimenting with the uv package manager for Python. Sometimes I want to try out a package briefly, but I don’t want to commit it to my project’s dependencies until I know I’ll use it.
In npm, ...
0
votes
2
answers
665
views
Use ansible-dev-tools with uvx
When installing ansible-dev-tools into venv with
python -m venv .venv
source .venv/bin/activate
pip install ansible-dev-tools
All the provided executables are located at .venv/bin and are executable ...
2
votes
1
answer
2k
views
How to uv add git repo with subpackages
I want to use uv to install packages and add dependencies, equivalent to the following pip workflow:
git clone https://github.com/<username>/<repository>.git
cd <repository>
pip ...
2
votes
1
answer
3k
views
Activate 'uv' environment - 'venv' mismatch
I am trying to set up an environment in Visual Studio Code for a Python project using uv on Ubuntu.
I have tried different sequences of actions, but without success. Here is the latest one:
uv init
uv ...
1
vote
2
answers
758
views
uv one-liner to create new environment in VS Code
I'm trying to find a simple one-line instruction to create a new project and environment using uv so that I can work up python scripts using VS Code's interactive window. This is in Mac OS.
uv init ...
-5
votes
3
answers
5k
views
How to install uv when I already need an virtual environment to install it?
I want to set up a new Python project and use uv for package management. I don't have it installed on my global system, so I can't initialize an virtual env with
uv venv
The only solution I see now ...
0
votes
1
answer
268
views
marimo switches to global python instead of using uv venv
running marimo with uv as I have done with other projects, but for some reason it switches from the venv created using uv to the global version of python and nothing I do can seem to make it run in uv....
3
votes
1
answer
4k
views
How to change the uv cache directory
I wanted to change the cache directory in uv. When I followed the documentation and typed the following command:
uv cache dir --cache-dir 'E:\Program Files\uv\cache'
It does not actually change the ...
0
votes
1
answer
1k
views
VS Code settings to detect virtual environment created by UV
Unlike conda, UV create virtual environments under the project, with respect to their name.
I have a fresh Mac, installed Cursor which is a variant of VS Code;
when I open a Jupyter notebook, it has ...