ModuleNotFoundError: No module named 'misaka' - python-3.x

In python misaka module not able to install while installing pip install misaka showing download error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Vi
sual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
please suggest the above solution. i checked python version for system 64 same is there.

use following code in your cmd
pip install misaka
to install miska library
some example
from misaka import Markdown, HtmlRenderer
rndr = HtmlRenderer()
md = Markdown(rndr)
print(md('some text'))

Working solution!
Go to https://visualstudio.microsoft.com/downloads/ scroll down one page and download Visual Studio 2017 community.
Go through following link to download the required components for Microsoft Visual C++ 14.0, the link provides what components to be selected while downloading.
https://developercommunity.visualstudio.com/content/problem/409173/error-microsoft-visual-c-140-is-required.html
Once the download finishes, you will be asked to restart your system.
Having restarted your system, type
pip install django-misaka
Hope it works as it worked for me!

you should have install the module using pip
pip install django-misaka

Related

How to install dlib in linux offline?

I have a linux server can not link the Internet and I wand to install dlib in my anaconda enviroment. But I do not know how to install cmake and boost for python? can any one help me? thx
You can't install Dlib directly without cmake and visual studio
First Download the CMake installer and install it from 'https://cmake.org/download/'
Add CMake executable path to the Enviroment Variables:
set PATH="%PATH%;C:\Program Files\CMake\bin"
Then "pip install CMake"
Install Visual Studio build tools from 'https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=15#'
In Visual Studio 2017 go to the Individual Components tab, Visual C++ Tools for Cmake, and check the checkbox under the "Compilers, build tools and runtimes" section.
The at last "pip install dlib"
It definitely works., have a try :)

Pocket sphinx and virtual assistant

I am trying to do a virtual assistant as my major project. So I want to install pocket sphinx package to run this offline. If anyone know this please answer to this.
I thing you are using pocketsphinx for speech to text conversion. If its so pocketsphinx package used to convert speech into text(offline as well) in Python.
Below comments is used to installing the packages.
pip install SpeechRecognition
conda install swig
pip install pocketsphinx
Once Installing pocketsphinx you may get the error like "Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ please install "Microsoft Visual C++ 14.0" then do "pip install pocketsphinx" Once installed the above packages you can start testing some ".wav" file for speech to text conversion.
import speech_recognition as sr
AUDIO_FILE='C:\\Users\\Downloads\\test.wav'
r=sr.Recognizer()
with sr.AudioFile(AUDIO_FILE) as source:
audio=r.record(source)
text=r.recognize_sphinx(audio)
with open("result.txt","w") as text_file:
text_file.write(format(text))

No module named 'pyautogui'

i am using pyautogui for a bot on python 3.7. In the very first line it imports pyautogui
import pyautogui and when i run it it says No module named 'pyautogui' , I tried it with a version of it for 3.7 and 3.8 and upgrading it (because it might have been the cause). I am coding on MS visual studio 2019 and i tried it on 3.7 for 32-bit and 64-bit (none of that seemed to help). Can anyone help me?
For VS 2019 installs:
This artical details how to install it correctly
https://learn.microsoft.com/en-us/visualstudio/python/tutorial-working-with-python-in-visual-studio-step-05-installing-packages?view=vs-2019
For non Visual Studio installs
You will need to install pyautogui with pip.
In the command line run
pip install pyautogui
You can find the install docs for pyautogui here: https://pyautogui.readthedocs.io/en/latest/install.html

Could not build wheels for numpy which use PEP 517 and cannot be installed directly

I saw several posts regarding this issue, I tried almost all solutions but end up with the same error. I am trying to install numpy with pip 20.2.4. I got this below error message.
Failed to build numpy
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
I tried all the below commands but I am running out of ideas:
pip install --upgrade pip setuptools wheel
sudo pip install numpy --no-binary :all:
I always get the same message:
Failed to build numpy
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
Do you have other ideas to solve this issue? Thank you!
Here is a similar error of what I think you got.
I've solved it by installing the "Build Tools para Visual Studio 2019" and installing the section of desktop C++ compiler.
Steps
Go to Microsoft Studio Downloads and search down in section "All Downloads" > "Tools for Visual Studio 2019".
Download "Build Tools para Visual Studio 2019".
Install C++ compiler package (Elevated privileges are required).
Retry pip instalation pip install numpy
Enjoy.

pdftotext is not getting installed in windows

I am trying to extract data from an invoice. I found invoice2data will do that job. I have pip installed invoice2data.
from invoice2data import extract_data
This is getting imported.
result = extract_data('sample.pdf')
When I run the above line it is showing that
OSError: pdftotext not installed. Can be downloaded from https://poppler.freedesktop.org/
When I try pip installing pdftotext it was showing virtual c++ 14.0 is required.I installed it using build tools. Again it was showing the same error. So I downloaded the files from https://pypi.org/project/pdftotext/ and pasted the extracted files in my anaconda/Lib/sitepackages directory. Now when I try to pip install pdftotext it is showing Requirement already satisfied: pdftotext in c:\users\vicky\anaconda3\lib\site-packages (2.1.2) Now, when I try to extract data from the pdf it is again showing the same error that pdftotext is not installed. How can I overcome this error or is there any other package that will satisfy my requirement?
Thanks in advance.
Install poppler-utils before pdftotext
sudo apt-get install poppler-utils
some simple steps to do, which worked for me...
1. download and install Visual Studio with C++ Build Tools, as Microsoft Visual C++ is required.
https://visualstudio.microsoft.com/downloads/
2. Download the latest binaries of Popplers for Windows
https://blog.alivate.com.au/poppler-windows/index.html
3. Extract and copy the 'poppler' folder which is inside the folder 'include'
4. Past this 'poppler' folder inside the 'Anaconda3/include/' folder
5. Then run 'pip install pdftotext'
YOU ARE DONE!!!

Resources