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

  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
    
原文地址:https://www.cnblogs.com/bonelee/p/9995407.html