skip to Main Content

Ubuntu – Unable to install packages with pip in VS code

I am trying to install Flask with the following command: pip install flask But pip returns: Requirement already satisfied: flask in /home/john/anaconda3/lib/python3.11/site-packages (3.0.0) Requirement already satisfied: Werkzeug>=3.0.0 in /home/john/anaconda3/lib/python3.11/site-packages (from flask) (3.0.1) Requirement already satisfied: Jinja2>=3.1.2 in /home/john/anaconda3/lib/python3.11/site-packages (from flask)…

VIEW QUESTION

Mongodb – pymongo count_doucment() not working with datetime

Hi i am trying to query data from mongodb using python = 3.8, django=4.2.2, arrow==1.2.3 pymongo = 3.13.0, mongodb is serverless. this is my filter object filter['created_at']={ '$gte': arrow.now(settings.LOCAL_TIME_ZONE).shift(hours=-24).span('day')[0].to(settings.TIME_ZONE).datetime, '$lt': arrow.now(settings.LOCAL_TIME_ZONE).span('day')[1].to(settings.TIME_ZONE).datetime, } when i print filter['created_at'] i get output as…

VIEW QUESTION

Docker – How to configure certificate for fastapi app

I created two applications (backend (fastapi. Works on 8000 port), frontend (reactjs. Works on 80 port)) they are communicate each with other. My docker-compose file: version: '3.7' services: frontend: container_name: "frontend" build: context: ./frontend stop_signal: SIGTERM ports: - "80:80" volumes:…

VIEW QUESTION

Postgresql – fuzzy matching address data

I have the task of matching two lists of names and addresses - represented in two database tables in PostgreSQL. Address data can be strings like Otto-Johannsen-Straße 7 or even Otto-Johannsen-Str. 7 Wohnung oben which have to match to Otto-Johannsen-Str.…

VIEW QUESTION
Back To Top
Search