virtualenv 运行python 解决依赖冲突问题 尤其是django那种蛋疼的版本问题

时间:2025-05-02 12:34:37
  1. Create a python virtual environment and install python dependencies.

    cd evalai
    virtualenv venv
    source venv/bin/activate # run this command everytime before working on project
    pip install -r requirements/dev.txt
  2. Change Postgresql credentials in settings/dev.py and run migrations

    Use your postgres username and password for fields USER and PASSWORD in dev.py file. After changing credentials, run migrations using the following command:

    even/bin/python manage.py migrate --settings=settings.dev