環境 windows10 Anaconda3(python3) でトライします!
$ pip install pyedflib
下記のようにエラー多数表示
building 'c_edf' library
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command "c:\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\admin\\AppData\\Local\\Temp\\pip-build-wqdv5yko\\pyedflib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\admin\AppData\Local\Temp\pip-vz6ak0lw-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\admin\AppData\Local\Temp\pip-build-wqdv5yko\pyedflib\
C++のビルド環境が必須の模様。
ツールの入手
http://landinghub.visualstudio.com/visual-cpp-build-tools
管理者権限でインストール
visualcppbuildtools_full.exe
二回目のインストール
C:\Users\admin>pip install pyedflib
Collecting pyedflib
Using cached pyEDFlib-0.1.6.tar.gz
Requirement already satisfied: numpy in c:\anaconda3\lib\site-packages (from pyedflib)
Building wheels for collected packages: pyedflib
Running setup.py bdist_wheel for pyedflib ... done
Stored in directory: C:\Users\admin\AppData\Local\pip\Cache\wheels\a3\1f\38\f933de694c8824c05b4ab60f26f71f35a3d807d38791e79cf5
Successfully built pyedflib
Installing collected packages: pyedflib
Successfully installed pyedflib-0.1.6
テスト実行
C:\Users\admin>python
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyedflib
>>>