It is because you didn’t have XZ Utils in your mac when you compiled your python. In my case, uninstall my current python version and install xz using homebrew and reinstall the python version that I removed.
While installing tensorflow using pip, you might get stuck at grpcio installation. Solution Then, Happy coding!
Environment: Ubuntu 18.04 Error 1. OSError: mysql_config not found Solution 1 Error 2. unable to execute ‘x86_64-linux-gnu-gcc’: No such file or directory Solution 2 Error 3. MySQLdb/_mysql.c:46:10: fatal error: Python.h: No such file or directory Solution 3 Final Code Happy Coding!
In this post, we will talk about how to connect the AWS API gateway to EC2. Normally, we use the API gateway to make an API when we are using Lambda. However, for some cases, you might want to use an API gateway as a proxy for the EC2 instance server. Let’s say we have an EC2 instance running the Flask application that we installed from the last post. We want to make an API that is pointing the server…
In Python, to get UNIX timestamp, you need to use the time library like below. Since its type is a float, you need to cast to int if you need. Furthermore, if you want to consider your timezone, you can simply add the hours like below. The following example is the utc+9 case. Happy coding!
Here I introduce several ways to identify if the word consists of the English alphabet or not. 1. Using isalpha method In Python, string object has a method called isalpha However, this approach has a minor problem; for example, if you use the Korean alphabet, it still considers the Korean word as an alphabet. (Of course, for the non-Korean speaker, it wouldn’t be a problem 😅 ) To avoid this behavior, you should add encode method before call isalpha. 2….
First, create an input. Then, we will get the value using ‘id’, ‘class’, and ‘name’ respectively. Easy?
When you need to launch multiple containers that work as a single application, it is difficult to manage with a single Dockerfile. That’s why we need to use “docker compose” so that we can manage our containers from a higher level. The application that we will test is a simple Django application. The database is PostgreSQL, and it will also be installed using Docker. Normally, it is not recommended to install the database using Docker. The database should be running…