Welcome to my Technology Hotspot
Saturday, September 5, 2020
My PS4/Playstation 4 Gaming Haul - Last of US Part 2 unboxing
Monday, July 20, 2020
Installing pip with get-pip.py in a Python virtual environment on Windows MacOS & Linux
- To create a Python virtual environment type below commands on the required console prompt:
On Windows python -m venv ./venv .\venv\Scripts\activateOn Ubuntu
python3 -m venv ./venv
source ./venv/bin/activate There are some exceptional cases where vent creation might fail. Here are some workarounds -
https://askubuntu.com/questions/1268833/error-command-path-to-env-bin-python3-7-im-ensurepip-upgrade
123To exit a Python virtual environment, you can use the deactivate command. This command is available in most Unix-like systems and Windows.
Example
$ deactivateSteps to Exit Virtual Environment
1. Using deactivate Command
The most common way to exit a virtual environment is by using the deactivate command1.
Example:
$ deactivate2. Using source deactivate
In some cases, especially with certain virtual environment management tools like virtualenvwrapper, you might need to use the source deactivate command2.
Example:
$ source deactivate

- To install pip, securely download
get-pip.py by following this link: get-pip.py. Alternatively, use curl:
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.Python3 Virtualenv Setup
Requirements:
- Python3
- Pip3
$ brew install python3 #upgrade
Pip3 is installed with Python3
Installation
To install virtualenv via pip run:
$ pip3 install virtualenv
Usage
Creation of virtualenv:
$ virtualenv -p python3 <desired-path>
Activate the virtualenv:
$ source <desired-path>/bin/activate
Deactivate the virtualenv:
$ deactivate
You can see more about the Homebrew on the official page.
Saturday, June 6, 2020
About my iPad Pro & Zoom h1 voice recorder
Watch my long term usage review of the iPad Pro 2018 model with Apple Pencil. Also, check out the Zoom h1 audio recorder & the mic stand.
About my MacBook Pro Touchbar edition & gadget updates
Watch my long term review of my Macbook Pro touchbar 2018 model !!
Featured
TechBytes on Linux
This is a growing list of Linux commands which might come handy for the of Linux users. 1. Found out i had to set the date like this: ...
Popular Posts
-
This is a growing list of Linux commands which might come handy for the of Linux users. 1. Found out i had to set the date like this: ...
-
To set a PDF viewer as the default on Mac OS X: Select any PDF file from Finder. Control-click to open the menu. ... Choose Get...
-
ಮ್ಯಾಕ್ ಬುಕ್ ನಲ್ಲಿ ಕನ್ನಡ ದಲ್ಲಿ ಟೈಪ್ ಮಾಡಲು ಲಿಪಿಕ ಎನ್ನುವ ಈ ಕೆಳಗಿನ ಲಿಂಕ್ ಅನ್ನು ಕ್ಲಿಕ್ ಮಾಡಿ .pkg ಫೈಲ್ ಅನ್ನು ಡೌನ್ ಲೋಡ್ ಮಾಡಿ ಅದನ್ನು ಇನ್ಸ್ತಾಲ್ ಮಾಡಿ...