You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »


Page content

Installing packages in microsoft visual studio

To install the necessary packages, we first have to make a Python project:

  1. Open Microsoft Visual Studio
  2. Select File → New → Project
  3. Select "Python Application" and enter desired name for the project. Then press "OK". If you have not installed Python, open the Visual Studio Installer (marked red) and install Python.

  4. Visual Studio will now open your new project with a script named the same as your project

After we have made our project, it's time to install the packages. This can be done in several ways:

Method 1:

  1. Select View → Other Windows → Package Manager Console. The Package Manager Console will now open.

  2. Type the following command into the terminal and hit Enter:

    python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose


  3. The packages are now installed!

Method 2:

  1. Select View → Other Windows → Python Environments. Python Environments will then open.

     



  2. In the dropdown menu where "Overview" currently is selected, select the "Packagestab and you will see a list of currently packages installed.

  3. Type in the package you wish to install in the search bar. For example "NumPy". Click the option "Run command: pip install numpy"


  4. In the output log visual studio will now output "----- Successfully installed 'numpy' -----" if the install was sucsessful. 


  • No labels