Django 1.7 with two versions of python how to make it work?



  • I have Ubuntu 14.04

    python -V 
    Python 2.7.6
    

    python3 -V
    Python 3.4.3

    Django 1.8.7 (Installation through pip)

    You can see django
    I can't see python3

    How do you get django to work with python3?



  • In this case, use may be made of https://virtualenv.readthedocs.org/en/latest/ :

    user@server: pip install virtualenv
    user@server: virtualenv -p /path/to/python3.3 myenv
    user@server: source myenv/bin/activate
    (myenv)user@server: pip install django
    

    The second line says that in a virtual environment,. python3.3




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2