[JustForFunPython] Isolation tools — “virtualenv”

Hi folks!

Sometimes we need to be isolated from outer stimulus to perform and finish our projects. Likewise, programs need to be isolated to be tested in different settings and environments. “virtualenv” is as you have already know, shortened term for “virtual environment”. This is one of the most widely used isolation tools, and let’s install it with a few lines of codes!

Photo by Safar Safarov on Unsplash

Let’s say we want to isolate in a folder named ‘my-project-folder’.

In MAC/Linux, we can specify a certain version of python by using ‘ — python’.

And ‘activate’ will literally activate the virtual environment.

In Windows, hm… have no idea yet. Will try later and update!

Thank you for visiting this humble posting and hope you stay safe!



Ydobon is nobody.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store