Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



NumPy, SymPy, SciPy, Matplotlib


Panel
borderColor#dfe1e5
bgColor#eff9ff
borderWidth2
titlePage content

Table of Contents


Installing packages in Microsoft Visual Studio

Make a Python project

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

  1. Open Microsoft Visual Studio
  2. Select 

Creating a python project in Microsoft visual studio

  1. In visual studio select File → New → Project
  2. Select "Python Application" and enter desired name for the project. Then press "ok"
    Image RemovedOK". If you have not installed Python, open the Visual Studio Installer (marked red) and install Python.
    Image Added

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

Installing packages in microsoft visual studio

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

Packages, method 1

  1. Select View → Other Windows → Package Manager Console. The Package Manager Console will now open.
    Image Added
    Image Added
  2. Type the following command into the terminal and hit Enter:

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


    Image Added

  3. The packages are now installed!

Packages, method 2

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

    In visual studio select the Window → Other windows → Python enviroments. Python enviroments will now open in place of the solution explorer. 
    Image Removed

    Image Added Image Added


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

    Image Added

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

    Image Removed

    Image Added

  4. The message In the output log visual studio will now output "----- Successfully installed 'numpyNumPy' ------" should then be displayed in the Output window.

    if the install was sucsessful. Image Added