what does –enable-optimizations do while compiling python?

This flag enables Profile guided optimization (PGO) and Link Time Optimization (LTO). Both are expensive optimizations that slow down the build process but yield a significant speed boost (around 10-20% from what I remember reading). The discussion of what these exactly do is beyond my knowledge and probably too broad for a single question. Either … Read more

Pip error: Microsoft Visual C++ 14.0 is required

You need to install Microsoft Visual C++ 14.0 to install pycrypto: error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: http://landinghub.visualstudio.com/visual-cpp-build-tools In the comments you ask which link to use. Use the link to Visual C++ 2015 Build Tools. That will install Visual C++ 14.0 without installing Visual Studio. … Read more

How to postpone/defer the evaluation of f-strings?

Here’s a complete “Ideal 2”. It’s not an f-string—it doesn’t even use f-strings—but it does as requested. Syntax exactly as specified. No security headaches since we are not using eval(). It uses a little class and implements __str__ which is automatically called by print. To escape the limited scope of the class we use the … Read more

How can I convert a .py to .exe for Python?

Steps to convert .py to .exe in Python 3.6 Install Python 3.6. Install cx_Freeze, (open your command prompt and type pip install cx_Freeze. Install idna, (open your command prompt and type pip install idna. Write a .py program named myfirstprog.py. Create a new python file named setup.py on the current directory of your script. In … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)