Answer the question
In order to leave comments, you need to log in
Is there life on windows python developer?
Good afternoon.
I wrote my first website in flask. and I'm seriously thinking about python web development.
There were a couple of problems, wrote to the community. and now they strongly advise me to switch to linux, saying that many libraries do not work on windows.
I'm confused. is he right?
Answer the question
In order to leave comments, you need to log in
No, they are not right. Flask works fine on Windows too - that's when you come across non-working libraries (they exist), then you will try Linux and be surprised that they don't work there in the same way - write a bug report or fix the error yourself.
tl;dr: vagrant.
Windows is a great OS for development.
As an OS for execution - no.
You need to use a virtual machine, and for convenient work with virtual machines - vagrant.
Where to develop - do not care.
But do not forget that all this will work on Linux. Therefore, it is better to test and debug in your native environment. To do this, you must have a virtual server with Linux on board. Virtualization is not a problem now, so it's pretty easy to implement.
many libraries do not work on windows.Perhaps this happens if some tricky and terribly unpopular libraries, as a rule, everything you need, works great.
I am familiar with problems with ruby gems, but for the first time I hear about problems with python. It certainly shouldn't be on the web. On it, a platform-dependent script must still be written.
At one of the jobs, intra-corporate sites were made only in Django (python) under windows (a mandatory fad from the employer). There were no particular problems with libraries.
In addition, problems with end-to-end domain authorization were very simply solved. They deployed quite working solutions that performed all the assigned tasks.
Although I still prefer development and deployment on Linux.
And if all the comrades who answer for a minute forget about their love for Win or Linux, then they will answer in unison: I don’t care where you will develop. The most universal answer has already been given by Artem . Write where it is convenient. I have been writing in py for 5 years and have never met a single module that would work under linux and dump bugs under win.
If we work under Windows (I am forced to do this, since I use a lot of exotic for other purposes), then do not forget about vagrant. We mount the folder with the project and test it in Linux.
Now I am writing the code on a windows machine, because the working laptop has left.
In general:
- Pycharm closes most of the issues in development
- www.lfd.uci.edu/~gohlke/pythonlibs this site closes 99% of problems with installing python packages with C bindings. Yesterday I installed ujson.
- Docker for Windows closes all remaining problems with raising various services: mongodb, memcached, redis, postgresql, etc.
- Git for windows (along with git bash) makes it possible to use part of the linux toolkit, from bash to grep/sed/awk/find/etc. (optional, but it helps me a lot as a linux'oid) I don't feel any
discomfort at all.Yes, to be honest, even my current configuration is a linux like configuration that just works on Windows. But this does not mean that it is impossible to write comfortable code on it.
I also agree that linux / mac for python development will be more convenient.
I sobsno mainly because of the python on Linux climbed. Here it is much more convenient with python, and if we talk about web development, it is much more convenient.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question