About Virtual Environments A python virtual environment is a self-contained directory tree that includes a Python installation and number of additional packages. The main purpose of Python virtual environments is to create an isolated environment for different Python projects. This way you can install a specific version of a module on a per-project basis without…
Category: Python
Installing mysqlclient on Ubuntu 20.04
mysqlclient is a fork of MySQLdb1 that enables python3 to interface with a MySQL database on an Ubuntu server. First, ensure that you have python3 and MySQL server installed on your machine. Then, install the following dependencies for mysqlclient: $ sudo apt install python3-dev default-libmysqlclient-dev build-essential Finally, you can install mysqlclient via pip: (venv) $…