Versions Compared

Key

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




Panel
borderColor#dfe1e5
bgColor#eff9ff
borderWidth2
titlePage content

Table of Contents


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:

    Code Block
    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.

    Image Added

  3. Type in the package you wish to install in the search bar, e. For example g. "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