A memo for those who use Python in Visual Studio (me)

Install the required packages

Visual Studio is usually used in C #, but recently Python is also firmly supported. I'm using VS, which is familiar to the UI.

● Version used  Microsoft Viusual Studio Community 2015

Python has a certain amount of libraries, so install and import it You can do various things with the flow.

However, VS doesn't seem to load the library installed with pip ...

~~ Discover the difference in installation destination ~~

I was just messing around on the console, so I moved to the original Python directory It was an image where the library was installed.

In VisualStudio, it seems to install for each ~~ project folder, ~~

In any case, I will leave a memo about how to install with VS.

Use pip on VS

If the window layout is the default person, Solution Explorer is in the upper right It should be displayed. So under the project name Right-click on Python X.X. (The version depends on your environment ...) pip_dev.PNG

pip_dev_click.PNG

The red line menu will appear. This is exactly the library installation. I didn't notice ...

Click the red line to display the package installation window. 2017-05-03 (2).png The above figure is the case of installing the template engine jinja2. Enter the package name and click the OK button to start the installation.

2017-05-03 (3).png After the installation is complete, the package name has been added.     By the way, if you want to upgrade pip, you can enter the following.

2017-05-03 (1).png

I wrote down how to install the package in Visual Studio.

Recommended Posts

A memo for those who use Python in Visual Studio (me)
Settings for Python coding in Visual Studio Code
Tips for those who are wondering how to use is and == in Python
Things to keep in mind when using Python for those who use MATLAB
Python development in Visual Studio 2017
AWS SDK for Python (Boto3) development in Visual Studio 2017
Python development in Visual Studio
For those who are having trouble drawing graphs in python
Do something like a Python interpreter in Visual Studio Code
[Introduction to Python] How to use the in operator in a for statement?
A memo for those who want quick socket communication with netcat
Use print in a Python2 lambda expression
AWS ~ For those who will use it ~
[Short sentence] easygui for those who want to use a simple GUI with Python very easily
Get a token for conoha in python
Python Tools for Visual Studio Installation Guide
Use pathlib in Maya (Python 2.7) for upcoming Python 3.7
Run Python in C ++ on Visual Studio 2017
I tried using NVDashboard (for those who use GPU in jupyter environment)
Tips when amateurs use Flask in Visual Studio
Dart grammar for those who only know Python
Run Python YOLOv3 in C ++ on Visual Studio 2017
A memo about writing merge sort in Python
[Memo] I tried a pivot table in Python
Use a custom error page in python / tornado
A memo for creating a python environment by a beginner
[Visual Studio Code] [Python] Tasks.json + problemMatcher settings for Python
Create a Python development environment in 10 minutes (Mac OS X + Visual Studio Code)
Use something other than a <br> string for the <br> dict key in Python
Steps to put dlib in Python Tools for Visual Studio and have fun
[Solved] I have a question for those who are familiar with Python mechanize.
[For beginners] How to use say command in python!
Use config.ini in Python
Translator in Python from Visual Studio 2017 (Microsoft Translator Text API)
Use dates in Python
App development to tweet in Python from Visual Studio 2017
Use Valgrind in Python
Try searching for a million character profile in Python
Make Visual Studio Code autocomplete for python external libraries
Convenient to use matplotlib subplots in a for statement
Use communicate () when receiving output in a Python subprocess
For those who want to write Python with vim
Japanese output when dealing with python in visual studio
Memo for building a machine learning environment using Python
Set a proxy for Python pip (described in pip.ini)
For those who can't install Python on Windows XP
A memorandum for those who use Python very occasionally [API access JSON and XML parsing argument parsing shell command regular expression]
ABC's A problem analysis for the past 15 times to send to those who are new to Python
[Visual Studio Code] [Python] [Windows] Support for garbled Japanese characters in Python in VS Code task / debug output
How to use linux commands in Visual Studio Code terminal
Set up a Python development environment with Visual Studio Code
How to debug the Python standard library in Visual Studio
Enable the virtualenv Python virtual environment for Visual Studio Code
How to use the __call__ method in a Python class
Create a child account for connect with Stripe in Python
Building a development environment for Android apps-creating Android apps in Python
Building a Hy environment for Lisper who hasn't touched Python
A simple way to avoid multiple for loops in Python
A memo when creating a directed graph using Graphviz in Python
How to define multiple variables in a python for statement
How to develop in a virtual environment of Python [Memo]