Tuesday, August 20, 2019

Python Installation

This blog show you how to properly install Python3 on MacOS and Windows system.

                   1. Python installation on Windows
                   2. Python Installation on MacOS

Python3 Installation on Windows

1. Download Python3 from site - https://www.python.org/downloads/
2. Double click on the installer file (Current version - python-3.7.4.msi). You will get the below screen –


3. Click on Next button.

4. Click on Next button

5. Enter the install location or leave the default one and Click on Install button

6. Click on “Disable path length limit”

7. Click on Close button
8. Set python path in environment variable. For this, Right click on Computer and select Properties
9. Click on “Advanced System Settings”
10. Under Advanced, Click on “Environment Variables” button
11. Set the Python executable in PATH variable

12. Go to command and verify the installation


13. Now install the "pywin32" using the pip command
14. Launch command prompt and run the command - pip install pywin32

15. Installation Done


Python3 Installation on MacOS

Note – By default, Python v2.7 installed on MacOS prior to v10.14 but from v10.14 python v3.7 installed on the mac OS.

The below steps for python v3.7 installation through HomeBrew and create own python virtual environment. A virtual environment is a way to create an isolated space so you can run Python 2.7 for one project and Python 3.7 for another on the same computer


Pre-requisites –
----------------------------------------------------------------------------------------------------------------------------------
1. Make sure XCode should install on system
2. Java should install on the system and JAVA_HOME path should be set.
3. HomeBrew should install on system.

----------------------------------------------------------------------------------------------------------------------------------

Python3 Installation Steps

1. Launch Terminal
2. Run the command – brew install python3
3. The above command will start installing python3 
 


4. Now run below commands on terminal for creating virtual environment –
         mkdir ~/.virtualenvs
               python3 -m venv ~/.virtualenvs/myvenv

5. Now set the path of virtual environment in ~/.bash_profile file

6. For deactivating this, simply comment this line in .bash_profile and relaunch the terminal
7. Run the command to verify installation – python --version
8. Python with own virtual environment is done

Monday, August 12, 2019

Install Microsoft Visual Studio on Windows

This post contains the setup details of Microsoft Visual Studio on Windows system. Follow the steps below - 

1) Download Microsoft Visual Studio from link – https://visualstudio.microsoft.com/downloads/
2) Double click on the file - vs_community__1240984729.1565332077.exe (This is current version)


3) Click on Continue button

4) Select the below components and click on Install button
           a) Universal Windows Platform development
           b) Net desktop development


5) Once download will finish, installation will start as below - 

6) Once complete, Visual Studio launch

7) Click on “Not now, maybe later” link

8) Leave the default selected. Click on “Start Visual Studio” button

9) Shows below screen

10) Restart the system to finish the installation