pyenv
pyenv is a popular command-line tool that helps Python developers manage multiple Python versions efficiently. If you work on various Python projects, each requiring a different version of Python, pyenv keeps your workflow smooth…
pyenv is a popular command-line tool that helps Python developers manage multiple Python versions efficiently. If you work on various Python projects, each requiring a different version of Python, pyenv keeps your workflow smooth…
Create systemd service file vi /usr/lib/systemd/system/backend.service Add [Unit] Description=Gunicorn instance to serve Django Application After=network.target [Service] User=www-data Group=www-data Environment=”APP=app” WorkingDirectory=/path/to/app/backend Environment=”PATH=/path/to/app/backend/venv/bin” ExecStart=/path/to/app/backend/venv/bin/gunicorn…
When running migration for a Django application with “python manage.py migrate”, I got the following error message ModuleNotFoundError: No module named ‘MySQLdb’…
When installing a python module on Ubuntu, I got the following error message error: invalid command ‘bdist_wheel’ The error is fixed by…
First, install the dependency yum install -y wget zlib-devel yum groupinstall -y “Development tools” Install OpenSSL as the openssl-devel package provided by…
When running a python application, I got the error message ModuleNotFoundError: No module named ‘PIL’ (venv) boby@sok-01:~/work/powder (master)$ python main.py Traceback (most…
When running a python application, I get the error message (venv) boby@sok-01:~/work/powder (master)$ python main.py 59 seconds remaining Process Process-1: Traceback (most…
When installing the python mysqlclient module with pip, I got the error “OSError: mysql_config not found”. (venv) root@sok:~# pip install mysqlclient Collecting…
Uvicorn is a lightning-fast ASGI server used to serve Python ASGI frameworks like FastAPI, Django Channels, Quart, BlackSheep, etc… https://www.uvicorn.org To install…
Flask is a Python framework. You can find more info at the official website. https://flask.palletsprojects.com/ How to start a Flask application? To…
When running following python script i get error “HTTP Error 403 request disallowed by robots.txt” from mechanize import Browser a = [‘https://google.com’,…
When install dlib python module, i get error ERROR: Failed building wheel for dlib fatal error: Python.h: No such file or directory…