Programming in Python on Windows
Christopher Sean Hilton 01 Aug 2026 02:50 UTC
Hi,
I program in Python mainly on Mac and some form of Unix. I'm trying to get some code that I
wrote working under python in Windows and I feel like I'm on Mars. My program is in two
pieces:
* `py_trav_ship` -- A home written python module that implements the rulses of Book 5 ship
building. E.g. you could implement a ship design in pure python against this module for
validation.
* `TkHighGuardShip` -- A home written python script that puts a GUI wrapper around
`py_trav_ship`. E.g. you can use this to design your ship so you don't have to learn
python or json and use the command line stuff.
On Unix derived python getting this to work is simple (note well that the audience here is
people experienced with python and venvs):
$ python -m venv venv
$ . venv/bin/activate
(venv) $ python -m pip install --upgrade pip
(venv) $ python -m pip install path-to-modules/py_trav_ship_src
(venv) $ python
...
>>> import py_trav_ship
>>>
On windows I was promised that this should work but it doesn't:
c:\my-path> python.exe -m venv venv
c:\my-path> venv\Scripts\activate.bat
(venv) c:\my-path> python.exe -m pip install --upgrade pip
(venv) c:\my-path> python.exe -m pip install path-to-modules\py_trav_ship_src
(venv) c:\my-path> python.exe
...
>>> import py_trav_ship
Module not found error...
I'm looking to specifically talk to people who've programmed in Python with VirtualEnvs on
Windows and have created and consumed their own python modules. There may not be anyone here
who fits that description.
I'm posting here because I'm trying to put my money where my mouth is and get my ship
building program working under windows. I've already verified that it works on Mac and Unix.
Thanks if you can provide help.
-- Chris
--
Chris
__o "All I was trying to do was get home from work."
_`\<,_ -Rosa Parks
___(*)/_(*)____.___o____..___..o...________ooO..._____________________
Christopher Sean Hilton [chris/at/vindaloo/dot/com]