Search code examples
pythonpython-3.xpipmisaka

Can't install python Misaka


I've been trying to install Misaka for python 3.7 and also I am using windows 10 pro but there is an error which is weird because I already have c++ 14 installed here is the error after I type:

pip install misaka

In the windows command line:

running install
running bdist_egg
running egg_info
writing misaka.egg-info\PKG-INFO
writing dependency_links to misaka.egg-info\dependency_links.txt
writing requirements to misaka.egg-info\requires.txt
writing top-level names to misaka.egg-info\top_level.txt
reading manifest file 'misaka.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.so' found under directory                 
'misaka'
no previously-included directories found matching 'misaka\__pycache__'
no previously-included directories found matching 'docs\_build'
no previously-included directories found matching 'tests\__pycache__'
writing manifest file 'misaka.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build\lib.win32-3.6
creating build\lib.win32-3.6\misaka
copying misaka\api.py -> build\lib.win32-3.6\misaka
copying misaka\callbacks.py -> build\lib.win32-3.6\misaka
copying misaka\constants.py -> build\lib.win32-3.6\misaka
copying misaka\utils.py -> build\lib.win32-3.6\misaka
copying misaka\__init__.py -> build\lib.win32-3.6\misaka
running build_ext
generating cffi module 'build\\temp.win32-3.6\\Release\\misaka._hoedown.c'
creating build\temp.win32-3.6
creating build\temp.win32-3.6\Release
building 'misaka._hoedown' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual         C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

Also I tried installing misaka from the actual files using the command: python setup.exe install got the same error

I couldn't find anything on the internet that solves my problem.


Solution

  • I could solve my problem by installing Anaconda first and then installing the c++ Compiler for python with this command:

    conda install libpython m2w64-toolchain -c msys2
    

    I also had to upgrade my pip installer which I was using version 10, and I upgraded pip with this command:

    python -m pip install --upgrade pip
    

    and when I attempted to install misaka library:

    pip install misaka
    

    i got the message that it was already installed