Python Programming Environment Setup

Veröffentlicht am: 08 Januar 2017
auf dem Kanal: tutoriaLinux
51,356
1.4k

If you're interested in Python programming basics, you need to learn what Python Virtual Environments (Python virtualenvs) are:
-How to create a Python virtualenv (python 2 and python 3)
-How to use pip, the Python package manager, to:
-find Python libraries and packages
-install Python libraries and packages
-uninstall Python packages
-take a snapshot of current requirements

2:02 - Installing the Python virtual environments package
2:18 - What are Python virtual environments for?
3:45 - Containerization rant (jails, lxc, docker) and how it's similar to virtual environments
4:30 - What virtual environments are, on a practical level
5:31 - How to create a python virtual environment
7:46 - How to activate your Python virtualenv
8:57 - How to create a Python 3 virtualenv

9:37 - How to manage Python packages and libraries with pip, the Python package manager
9:44 - Use pip search to find packages
10:25 - Use pip to install a package into your Python virtualenv
13:42 - Upgrading Python virtualenv packages with pip
14:18 - How to uninstall Python packages from your virtualenv with pip

14:42 - How to deploy a Python application's libraries and packages with requirements.txt
15:42 - Installing a list of requirements from requirements.txt
16:09 - More on how to deploy an application in the real world (common problems)

17:06 - See which packages are currently installed in your Python virtualenv
17:21 - 'Freeze' your currently installed Python packages into a requirements file

17:56 - Basic tips for using Python virtualenvs with Git (.gitignore)


############################
Commands used in this video:
############################

apt-get install python-virtualenv

virtualenv venv
virtualenv -p python3 venv

source venv/bin/activate

pip search foobar
pip install foobar
pip install --upgrade foobar
pip uninstall foobar

pip install -r requirements.txt


################
Get More tutoriaLinux
################

Step-by-step project-based Linux course for beginners: https://www.udemy.com/course/hands-on...

Free Linux Sysadmin Course Playlist:    • The Linux Basics Course: Beginner to Sysad...  

DigitalOcean referral link: https://m.do.co/c/0380a1db56a6

Patreon:   / tutorialinux  
Official Site & e-mail list: https://tutorialinux.com/
Twitter:   / tutorialinux  
Facebook:   / tutorialinux  
Podcast: http://kernelpanicpodcast.com


Auf dieser Seite können Sie das Online-Video Python Programming Environment Setup mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer tutoriaLinux 08 Januar 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 51,356 Mal angesehen und es wurde von 1.4 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!