Danh mục: Python

  • python – python3-venv

    Install the prerequisite for adding custom PPAs: # apt install software-properties-common -y Then proceed and add the deadsnakes PPA to the APT package manager sources list: # add-apt-repository ppa:deadsnakes/ppa # apt update You can now install Python 3.12 with the following command: # apt install python3.12 # apt install python3.12-venv To verify the installation and Python…

  • “ModuleNotFoundError: No module named ‘django’ in Python”

    ModuleNotFoundError: No module named ‘django’ in Python # 👇️ in a virtual environment or using Python 2 pip install Django # 👇️ for python 3 (could also be pip3.10 depending on your version) pip3 install Django # 👇️ if you get permissions error sudo pip3 install Django pip install Django –user # 👇️ if you…