[Python] activate script missing from Python virtual environment (venv) on Ubuntu 22.04 with...

Discussão em 'Python' iniciado por Stack, Julho 17, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to deploy a Django project on my Ubuntu server using a virtual environment. I created a directory named ae9f7a37e98d4a8f98643ced843d71d7_venv, but when I try to activate it using:

    source /www/wwwroot/ddlvv/ae9f7a37e98d4a8f98643ced843d71d7_venv/bin/activate

    I get this error:

    -bash: /www/wwwroot/ddlvv/ae9f7a37e98d4a8f98643ced843d71d7_venv/bin/activate: No such file or directory

    When I check the contents of the bin/ folder, I see Python binaries but no activate script:

    ls -l /www/wwwroot/ddlvv/ae9f7a37e98d4a8f98643ced843d71d7_venv/bin

    Output:

    2to3 pip3 pydoc3 python3.12
    idle3 pip3.12 python3 python3.12-config


    It seems like the virtual environment wasn't set up correctly. I'm using Python 3.12.3 and Ubuntu 22.04.

    What caused this, and how can I properly create a working virtual environment so I can run my Django project?

    i use aapanel for deploy this Django app

    aapanel

    Continue reading...

Compartilhe esta Página