MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Python Tutorials: How to use pip command to Python3.x instead of Python2.7?

First of all, pip is made for Python2.x and pip3 is made for Python3.x. Thus you need to select wisely which version of module you are installing.

Installing through pip3 Python3.x


$ sudo pip3 install mysql-connector
$ sudo pip3 install mysql-connector-python-rf
$ pip3 install --upgrade --force pip
$ python3 -m pip install some_module
$ pip3 -V

Installing through pip for Python2.x


$ sudo pip install mysql-connector
$ sudo pip install mysql-connector-python-rf
$ python2 -m pip install some_module
$ pip -V

You must set new password first time you login to mysql else it would through following erros.


Rajeshs-MacBook-Pro:bin rajeshkumar$ /usr/local/mysql/bin/mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.7.28

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

Code language: JavaScript (javascript)

How to set up your password for the first time?


$ /usr/local/mysql/bin/mysql -u root -p

SET PASSWORD = PASSWORD('your_new_password');
or
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';Code language: JavaScript (javascript)

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Complete Guide to Pytest: From Basics to Advanced

Pytest is the most widely used Python testing framework. You write tests as plain functions that use the assert keyword, and pytest adds fixtures, parametrization, markers and…

Read More

Python Tutorials: Database operations using python – mysql

This tutorial connects Python to MySQL with the official mysql-connector-python driver and runs the full set of CRUD operations: create a database and table, then insert, read,…

Read More

From Coding Beginner to DevOps Engineer: Which Programming Languages Actually Matter in 2026

The Path from Beginner to DevOps Engineer When you’re just starting out with code, the sheer number of programming languages feels ridiculous. Should you pick Python? Java?…

Read More

How to Validate UPI & Paytm Payment QR Codes Programmatically (Step-by-Step Guide

Great question. You can validate “payment QR codes” at two levels: Below is a practical, copy-pasteable approach you can drop into your stack (PHP/Laravel, plus quick Node/Python…

Read More

Top 10 Python IDEs in 2026: Features, Pros, Cons & Comparison

Introduction Python Integrated Development Environments (IDEs) are essential tools for developers that provide a comprehensive environment for writing, testing, and debugging Python code. In 2026, Python IDEs…

Read More

Databricks Certified Associate Developer for Apache Spark 3.0 – Python

Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have…

Read More