I'm trying to install rasa-core on my windows 10 machine.
When installing with pip install, I get: Failed building wheel for Twisted
The same error appears when trying to install Twisted separately.
How could I solve this problem?
Download the .whl file from Unofficial Windows Binaries for Python Extension Packages
then after you are in the virtualenv
pip install C:\...yourpath...\Downlaods\<filename>
e.g.
pip install C:\...yourpath...\Downlaods\Twisted‑20.3.0‑cp38‑cp38‑win_amd64.whl
This worked for me..
Download Twister package from releases and install it eg.
pip install C:\...yourpath...\Downlaods\Twisted‑20.3.0‑cp38‑cp38‑win_amd64.whl
Install Twisted Using pip
Or Download https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted at this location
pip install Twisted-18.9.0-cp27-cp27m-win_amd64.whl
No conda install or Microsoft Studio.
Follow:
Download Twisted : https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
In CMD: cd C:\Users\USERNAME\Downloads
pip install Twisted-version.whl
If you don't already have Microsoft Visual C++ installed do so from the following link. Make sure you match the correct version for the Python you have installed.
https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_14.0_standalone:_Build_Tools_for_Visual_Studio_2017_.28x86.2C_x64.2C_ARM.2C_ARM64.29
Then install Twisted with: pip install Twisted[windows_platform]
Ensure you have [windows_platform] included.
Related
I'm trying to install 'polyglot' using the below command
pip install polyglot
But I'm getting the below error
Command "python setup.py egg_info" failed with error code 1 in C:\Users\K~1.SHA\AppData\Local\Temp\pip-install-tcez0ptg\polyglot\
My python version is Python 3.6.4
Since I'm new to python I tried the below commands which I found online but they haven't helped
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
pip install --upgrade pip setuptools wheel
How can I install polyglot successfully? Any help on this is appreciated.
To install polyglot in Windows using a Python 3.6 or Python 3.7 you will need a wheel for two dependencies:
You need to download them and then install them with pip on your local machine.
Here you will find many unofficial python builds:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
install PyICU.whl
install PyCLD2.whl
In both cases you will need be able to choose the right version of the build for your windows version and your python version.
It's easy, for example for PyICU:
PyICU wraps the ICU (International Components for Unicode) library.
PyICU‑2.3.1‑cp27‑cp27m‑win32.whl
PyICU‑2.3.1‑cp27‑cp27m‑win_amd64.whl
PyICU‑2.3.1‑cp35‑cp35m‑win32.whl
PyICU‑2.3.1‑cp35‑cp35m‑win_amd64.whl
PyICU‑2.3.1‑cp36‑cp36m‑win32.whl
PyICU‑2.3.1‑cp36‑cp36m‑win_amd64.whl
PyICU‑2.3.1‑cp37‑cp37m‑win32.whl
PyICU‑2.3.1‑cp37‑cp37m‑win_amd64.whl
the 27 means Python 2.7 and the 36 Python 3.6...
If you have 64 bits python and windows then choose the amd64 otherwhise the win32 version.
Once you have download them you will need to install it using pip in your python environment:
In my case:
python -m pip install C:\Users\Administrator\Downloads\pycld2-0.31-cp37-cp37m-win_amd64.whl
python -m pip install C:\Users\Administrator\Downloads\PyICU-2.3.1-cp37-cp37m-win_amd64.whl
pip install git+https://github.com/aboSamoor/polyglot#master
I've been trying to install flask-mysqldb using pip install flask-mysqldb, but every time I try it gives me an error that says :
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe' failed with exit status 2
I've looked around a lot and no answer works for me. I searched the file in https://www.lfd.uci.edu/~gohlke/pythonlibs/ but its not there.
I am on Windows 7 x64.
Of course you can not find whl for flask-mysqldb, but you can find mysqlclient.
Download suitable version for you platform from https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
Then, e.g. pip install mysqlclient-1.3.13-cp27-cp27m-win32.whl, depends what you download.
Finally, pip install flask-mysqldb again, this will work for you.
the same issue/problem I've also received,
That is flask_mysqldb 'no module'
first of all flask_mysqldb isn't installed through pip,
You have to install a suitable version for mysqlclient
for me it worked
I'm using window 10 having python3.8 installed....... to rectfiy the error use the follwing procedure:
click on the link
https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient and select mysqlclient‑1.4.6‑cp38‑cp38‑win32.whl (python3.8 a suitable version for me) download it
then search for the directory where downloaded ..... and then through command prompt type
pip install mysqlclient‑1.4.6‑cp38‑cp38‑win32.whl
and then
pip install flask_mysqldb
and done
I had the same problem
I was using python 3.8 and it's not supported by this package.
https://flask-mysqldb.readthedocs.io/en/latest/ : Flask-MySQLdb is compatible with and tested on Python 2.7, 3.5, 3.6 and 3.7
I recreated a virtual environment with python 3.7 and it all worked.
installing above must be made
For Windows
install pip install wheel
after go to on your browser ' https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python '
find the appropriate package for the python version and download.
and copy that file to C:\Users<your-computer-name> .
go to cmd again and write here pip install flask-mysqldb
When I tried to install pyzmq package in python, I always get this error message
PS C:\python37-32> pip install pyzmq
Failed building wheel for pyzmq
building 'zmq.libzmq' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visu
So I tried to fix it in two different ways:
Option 1: I downloaded Microsoft Visual C++ 14.00 --> It doesn't work
I downloaded the wheel "pyzmq-17.0.0-cp37-cp37m-win_amd64.whl" and tried to install it with the pip install comannd --> It doesn't work
Does anyone can give me an advice how I can install the package? That would be great
I try the following solution and it works for me. Solution:
Download an appropriate file from Unofficial Windows Binaries for Python Extension Packages.
For win10 as I use, just download: pyzmq-18.1.1-cp37-cp37m-win_amd64.whl
install this file from local with pip:
pip install download_directory/pyzmq-18.1.1-cp37-cp37m-win_amd64.whl
Upgrade your setup tools:
pip install --upgrade setuptools
I fixed it with this command:
pip install --upgrade pyzmq
I've been trying to install PyAudio for a speechrecognition project but for everything I've tried nothing has worked. I tried to install with the latest version of python (3.7) only to noobishly find out that pyaudio isnt compatible with that yet and now im trying with 3.4.
However, whenever I run 'pip install PyAudio' I get an error message saying 'error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).' I have Microsoft Visual C++ 10.0 installed but it just doesn't work.
I'm at my wits end here please help.
(Running Windows 8.1 btw)
A good site to know about is Christoph Gohlke's page "Python Extension Packages for Windows" at https://www.lfd.uci.edu/~gohlke/pythonlibs/.
I ended up solving my own problem by downloading a different version of python, the one that worked for me was Python 3.6.5rc1 (but any 3.6 version seems to work) (Found here: https://www.python.org/downloads/release/python-365rc1/ ) I don't know the full details of why this worked as I'm not the best at this kind of thing yet but it worked when I retried python -m pip install pyaudio(this installed pyaudio successfully)
First upgrade pip to pi3 using following command:
pip3 install --upgrade setuptools pip
and then try with
pip3 install pyaudio
It will install but old versions PyAudio-0.2.11.tar.gz, PyAudio-0.2.11-cp36-cp36m-win_amd64.whl, PyAudio-0.2.11-cp36-cp36m-win_amd64.whl, not support to python 3.7 and after it
Download file from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio , get the file for your Python version and bitness. Paste the file of interest in location "C:\Users\YOUR_USER_NAME"
Install it with pip install filename.whl
I'm trying to install the avro package for confluent-kafka with python3 on macOs Sierra.
Installing the confluent-kafka package works fine, no issues. The problem is when I try to install the avro package:
pip install confluent-kafka[avro]
I just get an error message from the bash, saying:
no matches found: confluent-kafka[avro]
How can I install this package? Anyone else that have managed to do it on mac?
Assuming you are not using bash (in my case it was zsh), the [] might mess with your shell. The following should solve this:
pip install "confluent-kafka[avro]"
For me this worked with the default install from pypi, no need for the github URL.
Try installing directly from github
pip install git+git://github.com/confluentinc/confluent-kafka-python.git
Solved! In my case it was python version
I was using python 3.10.1 version
Uninstall python 3.10.1 and python Launcher from add or remove programs
Download python 3.7.0 for x64 bit using this link or download from here Link
Now you can: pip install confluent-kafka[avro]