Skip to content

This challenge demonstrates how to download packages locally by creating a virtual environment.

Notifications You must be signed in to change notification settings

randyaajr/RA-Modules-Packages-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Virtual Environment and Packages (Challenge 2)


This challenge demonstrates how to download packages locally by creating a virtual environment. All packages downlaoded are located in a sub folder named 'env'. I created a simple program which takes in a max amount of numbers from the user then calculates the sum of all numbers inputted. The final sum is then divided by the total number of inputs (max amount). This then outputs the average. Colorama has been imported to add some style to the terminal's output.

Activation

PS C:\Users\randy\Documents\GitHub\RA-Modules-Packages-Demo> env\scripts\activate

Notice that (env) is now visable in the terminal. This confirms the activation.

(env) PS C:\Users\randy\Documents\GitHub\RA-Modules-Packages-Demo>

Colorama Installation

(env) PS C:\Users\randy\Documents\GitHub\RA-Modules-Packages-Demo> pip install colorama

Challenge Requirements

First Task (MS VS Code Terminal Window or PowerShell):

  • You will create a virtual environment (notice that virtual environment or venv is a just a local folder that has to be created inside your main project folder) using any name you prefer.
  • After creating your virtual environment or venv, you will need to activate it.
  • Install the required package, for this challenge we can use the same package called “colorama”, but feel free to use another one.
  • Try to find the official page for this package.

Second Task (Your python code, applying colorama to your print message):

  • From colorama import ???
  • Use any color…
  • You can refer to my folder “Anmar-Modules-Packages-Demo” for more details

Requirements

certifi==2020.11.8
chardet==3.0.4
colorama==0.4.4
idna==2.10
urllib3==1.26.2

Colorama Project Link - PyPi.org

About

This challenge demonstrates how to download packages locally by creating a virtual environment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages