Skip to main content

Posts

Showing posts from July, 2020

Installing pip with get-pip.py in a Python virtual environment

To create a Python virtual environment type below commands on the required console prompt: On Windows     python -m venv ./venv     .\venv\Scripts\activate On Ubuntu     python3 -m venv ./venv      source ./venv/bin/activate To install pip, securely   download   get-pip.py   by following this link:   get-pip.py . Alternatively, use   curl : curl https : // bootstrap . pypa . io / get - pip . py - o get - pip . py Then run the following command in the folder where you have downloaded  get-pip.py : python get - pip . py Warning   Be cautious if you are using a Python install that is managed by your operating system or another p ackage manager.  get-pip.py  does not coordinate with those tools, and may leave your system in an inconsistent state. Hence it is recommended to use venv (Python Virtual Environment) to isolate the working environment with the Python environment at the system level.