Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Virtualenv and All His Friends

Virtualenv and All His Friends

These are slides from a GRPUG talk on environment setups.

Links to installers:
https://www.python.org/downloads
https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py

Bootstrap project:
https://github.com/dornerworks/arniepye

Eff2cdaa8474520ed29ebc38031fab87?s=128

Jace Browning

August 18, 2014
Tweet

More Decks by Jace Browning

Other Decks in Programming

Transcript

  1. Virtualenv and All His Friends @JaceBrowning

  2. “Create a new virtual environment and pip install … into

    it.”
  3. Python < 3.4 Python >= 3.4 Windows 1 3 OSX

    2 4
  4. The Pieces • Python • setuptools • pip • virtualenv

  5. Python < 3.4 Python >= 3.4 Windows 1 3 OSX

    2 4
  6. Python • python.org • ActiveState Python • Anaconda

  7. Python Windows PATH variable: C:\Python27\;C:\Python27\Scripts\;

  8. setuptools $  wget  https://bitbucket.org/pypa/ setuptools/raw/bootstrap/ez_setup.py   $  python  ez_setup.py

  9. pip $  easy_install  pip

  10. virtualenv $  pip  install  virtualenv

  11. Python < 3.4 Python >= 3.4 Windows 1 3 OSX

    2 4
  12. Python • python.org • Homebrew

  13. Python ~/.bash_profile: export PATH="/Library/Frameworks/ Python.framework/Versions/2.7/bin:${PATH}"

  14. setuptools + pip + virtualenv (same as before)

  15. A quick detour about bootstrapping…

  16. github.com/ dornerworks/arniepye

  17. Python < 3.4 Python >= 3.4 Windows 1 3 OSX

    2 4
  18. Python + pip In the installer from python.org, check the

    box to automatically update your system paths.
  19. virtualenv $  pip  install  virtualenv

  20. Python < 3.4 Python >= 3.4 Windows 1 3 OSX

    2 4
  21. Python + pip In the installer from python.org, check the

    box to automatically update your system paths.
  22. virtualenv $  pip  install  virtualenv

  23. Moral of the Story ! Start new development with Python

    3.4+
  24. “Create a new virtual environment and pip install … into

    it.”
  25. $  virtualenv  env   $  env/bin/pip  install  testpackage   $

     env/bin/python   >>>  import  testpackage   >>>  exit()