Let's try analysis! Chapter 8: Analysis environment for Windows created with Python and Eclipse (PyDev)

Introduction

It started this time as well. Let's try analysis! Series

Let's start from this chapter Analysis We have entered the next Leeds practice edition. In future articles, I will introduce analytical techniques that utilize Python and Scala.

In this chapter, as a preparation for the following chapters, I would like to first introduce a simple environment construction for analysis using Python. The focus is on building an environment for working on __Windows Eclipse (using PyDev) __. Since Linux has convenient commands such as yum, you can create an environment relatively easily. On the other hand, in Windows, there are some points that take some time to install the library (numpy, scipy, matplotlib are introduced in this chapter), so I would like to explain mainly the parts that I personally felt to be a stumbling block. I will.

The environment construction introduced in this chapter

I will proceed with.

__ * In the next chapter, we plan to introduce a simple analysis environment construction created with Scala + Eclipse + R. __

Python installation

First, install Python itself. It's easy to install, just go to the Downloads page (https://www.python.org/downloads/) on the Python site, get the download file and run it (the latest Python 3. Install 4.1).

fig01.png

Launch a command prompt and see if Python starts successfully. Type python -V on the command prompt to get the version information. If it is not displayed properly, it is possible that the path does not pass. You can set the path of windows7 with Computer ➞System Properties ➞Advanced System Settings ➞Environment Variables ➞System Variables ➞Path➞Edit Button. In the edit screen, add the location of the folder containing the python executable file (python.exe) (for example, C: \ Python34;).

Install numpy, scipy, matplotlib

In preparation for installing a library such as numpy, add the address of the folder with pip to the environment variable (for example, __C: \ Python34 \ Scripts; __).

numpy installation

To install numpy on python34 of windows, download the file with cp34 in the file name from Numerical Python And execute.

fig02.png

After the installation is complete, check if it was installed successfully. Type python in the command prompt to start python, then type ʻimport numpy` and it's OK if no error occurs.

Install scipy

You can install scipy by the same procedure as numpy. Download and run the installation file containing the python3.4 string from SciPy: Scientific Library for Python ..

fig03.png

Type python in the command prompt to start python, then type ʻimport scipy` and it's OK if no error occurs.

Install matplotlib

Installing matplotlib is easier than the one above. You can type pip 3.4 install matplotlib from the command prompt (assuming the Scripts folder is in your path).

At the command prompt, type python to start python, type ʻimport matplotlib`, and if no error occurs, it's OK.

Install PyDev in Eclipse

Install Eclipse as a preparation. Download and run the installation file for Windows from the eclipse page.

Start Eclipse and __Help ➞ Install new Software __ (Select YES (OK) when asked if you want to create a workspace the first time you start it).

fig04.png

Enter http://pydev.org/updates, select PyDev and press Next to proceed and you're done.

fig05.png

Press open perspective.

fig06.png

Select PyDev and OK.

fig07.png

Select __PyDev ➞ Interpreters ➞ Python Interpreter __ from __windows ➞ Preferences __ in Eclipse. From the New button, specify the folder containing the python3.4 exe file.

fig08.png

Hello World with PyDev

Activate PyDev on the top right side of Eclipse. Then create a project with File ➞ New ➞ PyDev Project. The project name is set to test here. Select 3.0 for Grammer Version. Right-click on the generated test project icon and create New➞PyDev Module (I'll leave it out of the package here for simplicity). Leave the package name blank and give it the name of the module. Finally, select Module: Main and you're done.

Type print ("hello world ") and run it and you should see hello world printed on the console screen.

fig09.png

From now on, you will need to import numpy, scipy, matplotlib and work as needed.

===========================================

Thank you for your cooperation.

Introductory edition

Part 1 Introduction

Part 2 Introduction to Analysis Learned in Excel

Part 3 Data visualization (not limited to big data)

Appendix

==================

Notice: The Fringe81 engineer team is looking for friends!


Please see the following page for the atmosphere of the team and recruitment information.

-Fringe81 Engineer Team Page -Recruitment page

Recommended Posts

Let's try analysis! Chapter 8: Analysis environment for Windows created with Python and Eclipse (PyDev)
Image Processing with Python Environment Setup for Windows
Python with eclipse + PyDev.
Character code for reading and writing csv files with python ~ windows environment ver ~
Python for Data Analysis Chapter 2
Python for Data Analysis Chapter 3
Let's get started with Python ~ Building an environment on Windows 10 ~
Create a Python execution environment for Windows with VScode + Remote WSL
Build a 64-bit Python 2.7 environment with TDM-GCC and MinGW-w64 on Windows 7
Building a Windows 7 environment for getting started with machine learning with Python
Create a USB boot Ubuntu with a Python environment for data analysis
LaTeX and R (a little Python) environment construction with SublimeText3 (Windows)
Comfortable Jupyter Lab (Python) analysis environment created with Docker + VSCode + Remote Container
Put Cabocha 0.68 on Windows and try to analyze the dependency with Python
Python project environment construction procedure (for windows)
Let's create a virtual environment for Python
Building a Python 3.6 environment with Windows + PowerShell
Let's try gRPC with Go and Docker
Put MeCab binding for Python with pip on Windows, mac and Linux
Tweet analysis with Python, Mecab and CaboCha
[Let's play with Python] Aiming for automatic sentence generation ~ Perform morphological analysis ~
Quickly build a python environment for deep learning and data science (Windows)
Clean python environment with pythonz and virtualenv
Rock-paper-scissors with Python Let's run on a Windows local server for beginners
Let's get along with Python # 0 (Environment construction)
[For beginners] Try web scraping with Python
Let's install box2d-py with Windows 10 environment pip
Building an environment to comply with the Python coding standard (PEP8) with Eclipse + PyDev
Easy Python data analysis environment construction with Windows10 Pro x VS Code x Docker
Build a local development environment with WSL + Docker Desktop for Windows + docker-lambda + Python
Recommended environment and usage when developing with Python
Causal reasoning and causal search with Python (for beginners)
(Windows) Causes and workarounds for UnicodeEncodeError on Python 3
Try running Google Chrome with Python and Selenium
Building an Anaconda environment for Python with pyenv
Python (Windows 10) Virtual Environment / Package with VS Code
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Let's control EV3 motors and sensors with Python
Commands for creating a python3 environment with virtualenv
Try using tensorflow ① Build python environment and introduce tensorflow
Try building an environment for MayaPython with VisualStudioCode
Python with eclipse + PyDev.
Output debug log with GAE dev_appserver.py on Eclipse + PyDev
Mac + Eclipse (PyDev) + Django environment construction
Notes for using python (pydev) in eclipse
python windows environment
Get a large amount of Starbucks Twitter data with python and try data analysis Part 1
A story about how Windows 10 users created an environment to use OpenCV3 with Python 3.5
Until you create a machine learning environment with Python on Windows 7 and run it
[Python for Hikari-] Chapter 06-04 Functions (arguments and return value 3)
Data analysis for improving POG 1 ~ Web scraping with Python ~
Building a Docker working environment for R and Python
Benchmark for C, Java and Python with prime factorization
Install selenium on Mac and try it with python
Python 3.4 Create Windows7-64bit environment (for financial time series analysis)
Build a python environment for each directory with pyenv-virtualenv
Use Python installed with pyenv for PL / Python execution environment
Try to operate DB with Python and visualize with d3
Summary of tools for operating Windows GUI with Python
Let's make a simple game with Python 3 and iPhone
Data analysis environment construction with Python (IPython notebook + Pandas)
3. Natural language processing with Python 4-1. Analysis for words with KWIC
Building an environment for natural language processing with Python
PIL with Python on Windows 8 (for Google App Engine)