Skip to content

Commit 5d705cc

Browse files
committed
complain about python on windows
1 parent 535e230 commit 5d705cc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

content/blog/python_and_windows.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "Python on Windows: pyenv-win"
3+
date: "2025-01-29"
4+
tags: ["python", "rant"]
5+
---
6+
7+
Man I hate using Python on Windows.
8+
9+
For the longest time, I was using miniconda to manage my environment(s) on Windows. It was an easy, plug-and-play system, which was broadly supported.
10+
However, I had 2 problems:
11+
- Somehow, IPython broke in the VS Code terminal for me. The IPython REPL would always freeze after typing import. No idea why, it works in a standalone terminal.
12+
- Recently, I upgraded my Powershell from 7.4.something to 7.5.0, and something changed in how the conda script was activated, which caused the conda command to break in Powershell for me.
13+
14+
So I uninstalled it.
15+
16+
I had been thinking about uv for a while, but I really need a "global" environment, since I'm installing relatively large packages, like scipy, and I fragment my work into multiple projects, which makes redundant copies of libraries a particularly sore point for me.
17+
I know there is a caching system, and various workarounds, but they seem like a lot of effort for something that I'm not 1000% invested in (a lock file for dependencies).
18+
19+
One thing I had seen at some point in the past was pyenv-win, a port of pyenv for Windows. I already use a pyenv + virtualenvwrapper setup on my non-Windows machine, so this was particularly appealing.
20+
Luckily, there is also a port of pyenv-venv (in the form of pyenv-win-venv) for Windows, which allows management of venvs in a "global" location.
21+
22+
The installation was fast and pain-free, and full functionality only required a small change to the invocation script for pyenv-win-venv (that I'm going to PR soon).
23+
24+
I finally have a working environment manager on Windows, along with a working VS Code IPython terminal.
25+
As a bonus, I don't have to deal with conda (at least until I have to do ML stuff...)

0 commit comments

Comments
 (0)