Posts

Showing posts from July, 2021

how to create virtual environment for python or installing python packages or modules

Image
Creating Virtual  Environment for python First install python from its official website for Windows   click here to download python After downloading python. You can create virtual Environment  in command prompt or in power shell . To create it . you must make folder in C drive Name with python then open command prompt or power-shell . To open command prompt press  window key + R  then type cmd press enter To open power-shell in Search Bar . search power shell After opening any of these things. Type : cd python Note : above command work if you made a folder  with name python. Let create Virtual Environment . Type : python -m venv location of folder\venv  Press  Enter Note : Make sure you were PC connected to Internet . Example : python -m venv C:\python\venv You need to upgrade 'pip' . it is  python manager pip install --upgrade pip Above is a power shall image which show how commands are run After this you can able to install python module ...