Sunday, 7 January 2024

How To Install Python and Virtualenv In Windows 11

1)

INSTALL PYTHON
---------------------------
a)
Goto https://www.python.org/downloads/

b)
Download and Install Python

c)
Open command prompt and type python to verify the installation

2)
INSTALL VIRTUALENV
-------------------------------------
a)
Goto https://pypi.python.org/pypi/virtualenv

b)
download virtualenv-20.25.0.tar.gz
 
https://files.pythonhosted.org/packages/94/d7/adb787076e65dc99ef057e0118e25becf80dd05233ef4c86f07aa35f6492/virtualenv-20.25.0.tar.gz

c)
Extract "virtualenv-20.25.0.tar.gz"

d)
Open command prompt then cd to following path
>cd C:\Users\sam\Downloads\dist\virtualenv-20.25.0

e)
Install virtualenv
>python setup.py install


3)
CREATE AND ACTIVATE VIRTUALENVIRONMENT
-----------------------------------------------------------------------------
a)
Create virtualenv named "myenv"
>python -m virtualenv myenv
>dir

b)

Activate virtualenvironment "myenv"
>C:\Users\sam>.\myenv\Scripts\activate
(myenv) C:\Users\sam>
 

No comments:

Post a Comment