create account

RE: [Python Tips] Virtual Environments by euriguiwi2018

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @themarkymark/python-tips-virtual-environments

· @euriguiwi2018 ·
Hi @themarkymark An interesting work. Well-written, very well-documented. My son studying Computer Science in college.

Python applications will often use packages and modules that don’t come as part of the standard library. Applications will sometimes need a specific version of a library, because the application may require that a particular bug has been fixed or the application may be written using an obsolete version of the library’s interface. 

This means it may not be possible for one Python installation to meet the requirements of every application. If application A needs version 1.0 of a particular module but application B needs version 2.0, then the requirements are in conflict and installing either version 1.0 or 2.0 will leave one application unable to run.

The solution for this problem is to create a virtual environment, a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages.

Different applications can then use different virtual environments. To resolve the earlier example of conflicting requirements, application A can have its own virtual environment with version 1.0 installed while application B has another virtual environment with version 2.0. If application B requires a library be upgraded to version 3.0, this will not affect application A’s environment.

I'm wishing you success and growth, and happiness.
A hug
properties (22)
authoreuriguiwi2018
permlinkre-themarkymark-python-tips-virtual-environments-20180523t044511326z
categoryprogramming
json_metadata{"tags":["programming"],"users":["themarkymark"],"app":"steemit/0.1"}
created2018-05-23 04:45:12
last_update2018-05-23 04:45:12
depth1
children0
last_payout2018-05-30 04:45:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,436
author_reputation563,882,122,111
root_title"[Python Tips] Virtual Environments"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id57,200,097
net_rshares0