You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -73,24 +36,24 @@ It is important for performance for the cache directory to be on the same filesy
73
36
74
37
uv can download and manage Python versions.
75
38
76
-
By default, Python versions are stored in the [data home](#data) in a `python/` subdirectory, e.g.,
39
+
By default, Python versions are stored as persistant data according to [the table above](#directory-strategies), in a `python/` subdirectory, e.g.,
77
40
`~/.local/share/uv/python`.
78
41
79
42
Use `uv python dir` to show the Python installation directory.
80
43
81
44
Use the `UV_PYTHON_INSTALL_DIR` environment variable to configure the installation directory.
82
45
83
-
For more details, see the [Python versions documentation](../concepts/python-versions.md).
46
+
!!! note
84
47
85
-
### Python executables
48
+
Changing where Python is installed will not be automatically reflected in existing virtual environments; they will keep referring to the old location, and will need to be updated manually (e.g. by re-creating them).
86
49
87
-
!!! note
50
+
For more details on how uv manages Python versions, see the [dedicated documentation page](../concepts/python-versions.md).
88
51
89
-
This feature is in preview, and is not enabled without `--preview` or `UV_PREVIEW`.
52
+
### Python executables
90
53
91
54
uv also supports adding Python executables to your `PATH`.
92
55
93
-
By default, Python executables are stored in the [bin home](#executables).
56
+
By default, Python executables are stored according to [the table above](#directory-strategies).
94
57
95
58
Use `uv python dir --bin` to show the Python executable directory.
96
59
@@ -100,7 +63,7 @@ Use the `UV_PYTHON_BIN_DIR` environment variable to configure the executable dir
100
63
101
64
uv can install Python applications as tools using `uv tool install`.
102
65
103
-
By default, tools are installed in the [data home](#data) under a `tools/` subdirectory, e.g.,
66
+
By default, tools are installed as persistant data according to [the table above](#directory-strategies), under a `tools/` subdirectory, e.g.,
104
67
`~/.local/share/uv/tools`
105
68
106
69
Use `uv tool dir` to show the tool installation directory.
@@ -113,28 +76,33 @@ For more details, see the [tools documentation](../concepts/tools.md).
113
76
114
77
When installing tools, uv will add tools to your `PATH`.
115
78
116
-
By default, tool executables are stored in the [bin home](#executables).
79
+
By default, tool executables are stored according to [the table above](#directory-strategies).
117
80
118
81
Use `uv tool dir --bin` to show the tool executable directory.
119
82
120
83
Use the `UV_TOOL_BIN_DIR` environment variable to configure the executable directory.
121
84
85
+
## uv
86
+
87
+
uv itself is also installed by [the installer](./installer.md) into the executables folder from [the table above](#directory-strategies), and it can be
88
+
overridden via the `UV_INSTALL_DIR` environment variable.
89
+
122
90
## Configuration
123
91
124
92
uv's behavior (including most of the storage locations on this page) can be configured through
125
93
configuration files stored in standard locations.
126
94
127
-
Configuration files are located in the [config directories](#config).
95
+
Configuration files are located in the corresponding system- or user-specific locations from [the table above](#directory-strategies).
128
96
129
97
For more details, see the [configuration files documentation](../concepts/configuration-files.md).
130
98
131
99
## Project environments
132
100
133
101
uv creates virtual environments for projects to isolate their dependencies.
134
102
135
-
By default, project virtual environments are created in `.venv` within the project directory.
103
+
By default, project virtual environments are created in `.venv` within the project directory, and a workspace's environment is created with the same name in the workspace root.
136
104
137
-
Use the `UV_PROJECT_ENVIRONMENT` environment variable to override this location.
105
+
Use the `UV_PROJECT_ENVIRONMENT` environment variable to override this location, which is should be either an absolute path, or relative to the workspace root.
0 commit comments