3 ms·
I am going to start learning Python, then eventually Django in a few weeks on a Surface. What is your overall setup for making it as painless as possible on Wi
by wtvanhest 9y ago
I am going to start learning Python, then eventually Django in a few weeks on a Surface. What is your overall setup for making it as painless as possible on Windows? I'd say my number 1 frustration in PC devops and I'm trying to figure out the install with the least amount of headaches.
- passive 9y agoI would recommend Python 3 for sure. I just use the installers from https://www.python.org/ https://www.python.org/ and don't tend to have any problems. I prefer lightweight tools, so I use Visual Studio Code. It won't hold your hand, but neither will it get in your way. When working on projects, get in the habit of using virtualenvs. It's a small amount of overhead, but will save you a ton of frustration in the long run. A primer on windows: From project directory, initialize it: > python -m venv .env (I put my virtualenvs in .env out of habit. Virtualenvwrapper, itself a useful addition for managing virtualenvs, puts them in your home directory, which can be fine too.) Activate it: > .env\Scripts\activate.bat Use "pip" to install your dependencies. Also use "pip freeze" to record those dependencies for installations elsewhere. I'm currently following this for dependency management: https://www.kennethreitz.org/essays/a-better-pip-workflow https://www.kennethreitz.org/essays/a-better-pip-workflow