My specs Originally Python was used occasionally in Anaconda. The mainstream is R and R Studio. Under such circumstances, the need for Python increased (Deep), and I thought I should try using VScode, which can be used like RStudio. Markdown is also beautiful.
Easy to download and install. From the following. Visual Studio Code Download Site
In my case, Anaconda was already installed, so I wanted to do Python in a different environment, so I newly installed Python. (VScode uses this Python. It's best because it's used for different purposes.) Python download site If you are not confident, check the place that says "Add to PATH" when installing. Because it doesn't go through the PATH, it often doesn't work.
In Anaconda, package management is basically based on conda
.
This depends on the pace of Anaconda, so some packages cannot be used. Then you have no choice but to use pip
. ..
(Although pip can be used in Anaconda)
Anaconda (jupyter Notebook) is very convenient from a sharing point of view, so I use .ipynb
(jupyter Notebook) there.
Probably, building a Python environment is very difficult for people who are programming or analyzing data for the first time, and I want them to be able to understand the feelings of computers to some extent. The computer isn't bad at all w That's why Anaconda (jupyter Notebook) is a good entry for Python, but people are dissatisfied with it and have to move on. I'm waiting for Anaconda's response, so I can't move on. Well, is VScode okay? I don't know what it is
For the time being, it's easy to run Python with VScode.
Create an appropriate folder and create a new appropriate Python file (filename.py
). The code is appropriate
python
a = "Hello zumilab."
print(a)
Try hitting it and executing it.
Select the new Python you have installed with the interpreter (Ctrl + Shift + P
), then press F5
(Fn + F5
) and then ʻEnterto run it. If you can select Python, you should be able to execute it by moving the cursor to the line you want to execute and pressing
Shift + Enter`. If this is not possible, there will be no merit for R users.
Next is Building a virtual environment and installing packages.
Recommended Posts