DEV Community

Discussion on: Python Tools for Managing Virtual Environments

Collapse
 
99hats profile image
99hats

Hatch uses pip, so hatch install [package] works. The docs could use a little more rounding out.

After using pipenv, poetry, pyenv-virtualenv, hatch, flit and pyflow, I've landed on hatch for windows as the most tolerable. I think I've run into trouble trying to use pyenv-win which isn't necessary. Instead one can just install any python version and run it as py -3.7 or py -3.8, so no need to mess with your paths.

On windows when using hatch shell I lose readline which I can't live without so I just use venv\Script\activate.

Thank you for your enjoyable articles. A good read even if I think I know the subject.

Thread Thread
 
99hats profile image
99hats

And adding to requirements is manual. Usually I add it to the configurable part of setup.py. I don't think this is in the docs anywhere either but there is a note in setup.py.

Thread Thread
 
bowmanjd profile image
Jonathan Bowman

Fascinating. Glad you are finding hatch useful. I should dig into hatch more.

I totally agree that pyenv or pyenv-win is often unnecessary when on a system (such as Windows or Fedora Linux) that allows the installation of multiple Python versions easily.

Readline. So necessary. I use ptpython a lot on Windows, as well.

Thank you! I am honored that you are reading.