If you see the error below when command "pip install pyedflib",

 

    ERROR: Complete output from command 'C:\Users\user\AppData\Local\conda\conda\envs\hogeony\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-0l2rujrj\\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\user\AppData\Local\Temp\pip-record-06gqnktb\install-record.txt' --single-version-externally-managed --compile: 
    ERROR: running install 
    running build 
    running build_py 
    creating build 
    creating build\lib.win-amd64-3.7 
    creating build\lib.win-amd64-3.7\pyedflib 
    copying pyedflib\edfreader.py -> build\lib.win-amd64-3.7\pyedflib 
    copying pyedflib\edfwriter.py -> build\lib.win-amd64-3.7\pyedflib 
    copying pyedflib\version.py -> build\lib.win-amd64-3.7\pyedflib 
    copying pyedflib\__init__.py -> build\lib.win-amd64-3.7\pyedflib 
    creating build\lib.win-amd64-3.7\pyedflib\_extensions 
    copying pyedflib\_extensions\__init__.py -> build\lib.win-amd64-3.7\pyedflib\_extensions 
    creating build\lib.win-amd64-3.7\pyedflib\data 
    copying pyedflib\data\_readers.py -> build\lib.win-amd64-3.7\pyedflib\data 
    copying pyedflib\data\__init__.py -> build\lib.win-amd64-3.7\pyedflib\data 
    copying pyedflib\data\test_generator.edf -> build\lib.win-amd64-3.7\pyedflib\data 
    running build_clib 
    building 'c_edf' library 
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ 
    ---------------------------------------- 
ERROR: Command "'C:\Users\user\AppData\Local\conda\conda\envs\hogeony\python.exe' -u -c 'import 

 

Download and install Visual C++ 2015 Build Tools (http://go.microsoft.com/fwlink/?LinkId=691126&fixForIE=.exe.),
which install Visual C++ 14.0 without installing Visual Studio as shown below.

 

After the installation completes, try pip instal pyediflib again.

 

Or, download and install visual studio community and C++ including Desktop development with C++.

https://visualstudio.microsoft.com/ko/downloads/

 

 

 

#References

https://stackoverflow.com/questions/29846087/microsoft-visual-c-14-0-is-required-unable-to-find-vcvarsall-bat

https://visualstudio.microsoft.com/ko/visual-cpp-build-tools/?rr=https%3A%2F%2Fgithub.com%2Fbenfred%2Fimplicit%2Fissues%2F76

+ Recent posts