Python installation and Pip Installation

Hello Everyone, Hope you are doing good

I would like to present this tutorial who are looking for installing the python and pip.

Following steps that need to install the python and pip:

  1. In Search Engine, type Python.org. Then select Welcome to python.org, it will redirect to the python website. Link
  2. Then Click Downloads>Windows.
  3. It will redirect to the downloads page. There, find out the Python 3.8.10 and Download Windows Installer (64-bit). Note: Don’t Download other versions.

Ater Downloaded the file, Install the Python 3.8.10 and note down the path of installation “C:\User_Profile\AppData\Local\Programs\Python\Python38”. Then Click Install Now option. It Takes a Few minutes to Install.

  1. Then search, Edit the System Environment Variables in our machine and open it.

  1. New pop window will open, in which Click Environment variables.

  1. Then the User variable Pop up window will open. Choose Path in System variables then click Edit option.

  1. Edit Environment Variables pop up will open. Click new button and Enter the path file of installation.“C:\User_Profile\AppData\Local\Programs\Python\Python38”. Then click OK all pop up windows.

  1. And also add path of python’s lib>site-packages C:\User_Profile\AppData\Local\Programs\Python\Python38\Lib\site-packages by using above method (step8)

  1. Now Open the Command Prompt application in our machine.
    10.1. Type “python’’ and enter in it.

10.2. Type “Exit” and enter

10.3. Type exit()

  1. Then we need to Install pip for windows. Go and search install pip on windows, or open the link and follow the step from it.

11.1 type curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py and enter.

11.2. Type python get-pip.py and enter. Note: Wait for loading data

11.3 Type pip help and Enter.

11.4 If it does not work at the end, please close the command prompt and re Type “python’’ and enter in it. And exit. Then Type pip help and enter. Refer image

.

  1. Then type pip install pandas and it will automatically download the Required files.

  1. Then type pip install boto3 and enter .Boto required files will be downloaded in it.
  2. Then type pip install pybase64 and enter. For reference click this link.
  3. Type cd File_path_name. Note: Path name enters the file path where it is located for example: cd C:\User_Profile\Downloads. Then Enter. Cd Command used for change the location
    15.1. Type python encrypt.py and enter Note: encrypt is file name. It can change as per file name.

Questions

For questions on your retrieval case open a new topic and get individual support

Feedback

Click image button to share your thoughts

9 Likes

Awesome man :star_struck:

Regards,
NaNi

1 Like

I would recommend linking directly to the Install Documentation as a reference in your tutorial for future readers as information can quickly become outdated when not the source documentation.

As a side note, if you are installing Python using a pre-existing binary, pip is already include in >= 3.4

Installing Python Modules — Python 3.12.0 documentation

  • pip is the preferred installer program. Starting with Python 3.4, it is included by default with the Python binary installers.

Installing Python Modules — Python 2.7.18 documentation ** Unsupported

  • pip is the preferred installer program. Starting with Python 2.7.9, it is included by default with the Python binary installers.
3 Likes

Installing PIP On Windows

  1. Step 1: Download PIP get-pip.py. Before installing PIP, download the get-pip.py file. …
  2. Step 2: Installing PIP on Windows. To install PIP type in the following: python get-pip.py. …
  3. Step 3: Verify Installation. …
  4. Step 4: Add Pip to Windows Environment Variables. …
  5. Step 5: Configuration.

Hi Team,

After doing all step by step installation and configuration also my python scope showing invalid path like:

“Python Scope: The specified Python path is not valid: C:\Users\username\AppData\Local\Programs\Python\Python38\Scripts\python.exe”

Please help me m stuck in this past 2 days