![pip install mysqlclient mysql_config: not found](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
pip install mysqlclient mysql_config: not found
On Ubuntu 18.04, when i install mysqlclient python module, i get error (venv) boby@sok-01:~/Downloads/django-deploy$ pip install mysqlclient==1.4.2.post1 Collecting mysqlclient==1.4.2.post1 Using
![Running Python Application with gunicorn and nginx](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
Running Python Application with gunicorn and nginx
Create a service file for gunicorn root@django:~# cat /etc/systemd/system/gunicorn2.service [Unit] Description=gunicorn2 daemon Requires=gunicorn2.socket After=network.target [Service] User=ubuntu Group=www-data WorkingDirectory=/home/ubuntu/myapp/wagtail2 ExecStart=/home/ubuntu/myapp/venv/bin/gunicorn \
![pycharm python editor](https://serverok.in/wp-content/uploads/2019/07/pycharm-280x180.png)
Installing PyCharm Community Edition on Ubuntu
PyCharm Community Edition is a free python editor from JetBrains. You can download it from https://www.jetbrains.com/pycharm/download/#section=linux Download and extact the
![](https://serverok.in/wp-content/uploads/2019/07/django-280x180.png)
Getting started with Django Framework
Django is a python framework for developing web applications. To install Django, run pip install django To create a project,
![](https://serverok.in/wp-content/uploads/2019/07/python-280x180.png)
Running Web Server with python SimpleHTTPServer
SimpleHTTPServer is a python module that allow you to run web server for static files. To start web server, run
![Creating and using virtualenv](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
Creating and using virtualenv
To create a virtualenv, run virtualenv NAME_OF_VIRTUALENV On Ubuntu 18, this command will create virtualenv with Python 2.7. To create
![virtualenv](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
virtualenv
Install virtualenv on Ubuntu Creating and using virtualenv virtualenv is used to create isolated python environments. With python3, you can
![Install virtualenv on Ubuntu](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
Install virtualenv on Ubuntu
To install virtualenv on Ubuntu, run sudo apt install virtualenv
![gunicorn](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
gunicorn
gunicorn behind Apache web server Running Python Application with gunicorn and nginx Serve a Django application using Gunicorn
![Install jupyter notebook](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
Install jupyter notebook
To install jupyter notebook on Ubuntu run pip install jupyter To start jupyter notebook, create an empty folder, change to
![Django Framework](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
Django Framework
Django is a Python framework. You can find more info at https://www.djangoproject.com Django Tutorials Getting started with Django Framework https://realpython.com/tutorials/django/