-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-session.log
More file actions
47 lines (32 loc) · 957 Bytes
/
setup-session.log
File metadata and controls
47 lines (32 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Install Python 3.12 using uv
uv python install 3.12
# Initialize a new project folder
uv init my-new-project
# Change directory to the project
cd my-new-project
# Create a virtual environment using Python 3.13 (note the version switch)
uv venv --python 3.13
# Activate the virtual environment
source .venv/bin/activate
# Add Flask
uv add flask
# Synchronize dependencies (probably to lock and install)
uv sync
# Add Pandas (looks like you did this during sync)
uv sync
# Remove Flask
uv remove flask
# Remove Flask again (safe to ignore)
uv remove flask
# Remove remaining dependencies (pandas and friends)
uv remove flask # (possibly repeated command, but it cleared remaining deps)
# Run your main.py to test
uv run main.py
# Check which python interpreter is active
which python3
# Add pip explicitly
uv add pip
# List installed packages
uv pip freeze
# Exit the virtual environment
exit