Until you run the changefinder sample in python

When I tried to run changefinder with python to extract change points, I got stuck from installing the library, so I made a note of moving the sample.

Install changefinder library

I tried to install the library published in here with pip install changefinder, but the installation of scipy does not work.

ImportError: No module named numpy.distutils.core


Failed building wheel for scipy

When searching, it seems that this error is quite encountered by everyone.

Since gcc and gfortran are required to install scipy, add gfortran to the already installed gcc and download gfortran from here & Installation. For me, Yosemite's gfortran 5.1.

After that, press pip install scipy again to complete the installation.

When I got stuck in the installation of scipy, I ran pip install changefinder and the installation was completed successfully.

Run the sample

An error occurs when running the sample that was on the library page.

Traceback (most recent call last): File "...", line 5, in import changefinder File "...", line 12, in cf = changefinder.ChangeFinder(r=0.01, order=1, smooth=7) AttributeError: 'module' object has no attribute 'ChangeFinder'

This wasn't a changefinder, it was simply a lack of knowledge of python. It seems that it was batting because the sample code name was changedfinder.py, so I renamed it and solved it.

The sample code worked fine.

reference

changefinder Install SciPy on Mac

Recommended Posts

Until you run the changefinder sample in python
Until you install Caffe and run the sample
[Mac] Run the RealSense D415 sample in Python
Until you install Gauge and run the official sample
Until you put Python in Docker
Until you run python with apache
Run the Python interpreter in a script
[Introduction to machine learning] Until you run the sample code with chainer
Until you insert data into a spreadsheet in Python
Until you run server Django in Visual Studio Code
Run automatic jobs in python
Find the difference in Python
Run shell commands in python
Until you can install blender and run it with python for the time being
After enabling the python virtual environment in the batch file, run the python file
Getting the arXiv API in Python
Python in the browser: Brython's recommendation
Let's run "python -m antigravity" in python
Save the binary file in Python
AtCoder: Python: Daddy the sample test.
Hit the Sesami API in Python
Run shell command / python in R
Get the desktop path in Python
Until you start crawling in Scrapy
Get the script path in Python
Hit the web API in Python
I wrote the queue in Python
Calculate the previous month in Python
Examine the object's class in python
Get the desktop path in Python
Run unittests in Python (for beginners)
Get the host name in Python
Until dealing with python in Atom
Until you put pyaudio in Mavericks
Run a simple algorithm in Python
Access the Twitter API in Python
The first step in Python Matplotlib
I wrote the stack in Python
Master the weakref module in Python
Until you install and run matplotlib
Mode line when you open the appropriate Python code in Vim
Try running the basic information Python sample problem only in the browser
When you run diff in python and want both returncode and output
Until you build the environment with ABCI and run MaskTrack RCNN
Learn the design pattern "Prototype" in Python
Learn the design pattern "Builder" in Python
Load the remote Python SDK in IntelliJ
Check the behavior of destructor in Python
If you want a singleton in python, think of the module as a singleton
Have Alexa run Python to give you a sense of the future
Learn the design pattern "Flyweight" in Python
Try using the Kraken API in Python
Learn the design pattern "Observer" in Python
Learn the design pattern "Memento" in Python
Write the test in a python docstring
Learn the design pattern "Command" in Python
OR the List in Python (zip function)
Sample script to trap signals in Python
Tweet using the Twitter API in Python
Learn the design pattern "Visitor" in Python
Until you can read the error log