-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wordcloud fails to install with pip under Windows 10 Python 3.5 Anaconda #134
Comments
This is an issue of compiling cython code with visual studio. Do you have visual studio installed? I'm not very familiar with it. |
@amueller I actually do have it installed which is why I am finding it weird. Maybe it is some configuration issue? Are there any plans of you making a conda package for this. Will make installing it way more easier. |
any help would be welcome ;) I'm currently pretty busy. |
Cool cool! Ill start working on it then :) |
So I successfully built a conda package. Should I add it to conda-recipes or should I open a Pull Request here? I personally think adding it here will be a bit more simpler |
yeah that sounds good. Sorry but I'm travelling and very busy right now. |
I have exactly the same problem. Windows 10, Anaconda 3, Python 3.5 |
Was this solved? I have the same error. Windows 7 Python 3.5 |
Ok. I solved my issue using wheels. Here are the steps:
This installed worcloud 1.2.1. I tried the simple example and it worked. |
Hi! Command "c:\users\edward\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Edward\AppData\Local\Temp\pip-build-2d2vuafp\wordcloud\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\Edward\AppData\Local\Temp\pip-o05ujb8m-record\install-record.txt --single-version-externally-managed --compile" *failed with error code 1 in C:\Users\Edward\AppData\Local\Temp\pip-build-2d2vuafp\wordcloud* please help to improve P.S. sorry i've made)))) |
@edvbb you need to include the traceback. |
@iturki , this worked for me. Windows 10, Anaconda 4.2.0, Python 3.5.2 |
In the Anaconda prompt, enter: After this, start python shell, and try to import the wordcloud module. It should be imported successfully |
Thanks iturki your solution has sloved my problem of importing wordcloud |
@iturki thsnks your solution sloved my problem too! |
@iturki thank you so much |
@iturki I'll echo everyone else... thank you! Worked. |
Btw, I added this to the readme. If it's not clear, please let me know. I'm also trying to upload a Windows wheel to pip but it's been a bit tricky. |
whle installing wordcloud from below, getting this error wordcloud-1.3.2-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform environment : windows 10, Python 2.7, Anaconda 5.1 |
Hi: I'm trying to install wordcloud package in the anaconda prompt and I get this error: PackagesNotFoundError: The following packages are not available from current channels:
Current channels:
(base) C:\Users\varun>pip install wordcloud Failed building wheel for wordcloud
Command "C:\Users\varun\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\varun\AppData\Local\Temp\pip-build-l3kw950e\wordcloud\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\varun\AppData\Local\Temp\pip-zmbt8rcs-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\varun\AppData\Local\Temp\pip-build-l3kw950e\wordcloud\ Please suggest. |
Installing visual studio will take 4 GB of space. Is there an alternative? |
use the package provided by gohlke that's mentioned in the readme. |
@amueller Thank you bud. Well, installing the 'Microsoft Visual C++ Build tools' solved errors around wordcloud, feedparser and vaderSentiment. |
@iturki work perfect for me :D |
Installing Visual C++ fixed the problem for me. http://landinghub.visualstudio.com/visual-cpp-build-tools |
@iturki solution worked, may be a super noob but file name does not have carrots around it for anyone else struggling to make it work. conda 4.6, python 3.6, 64 bit |
I recommend using the conda forge channel. |
Hey guys, I am trying to run the code to make a wordcloud. Every time I am using the command ImportErrorTraceback (most recent call last) C:\Users\sanyo\Anaconda2\lib\site-packages\wordcloud_init_.py in () C:\Users\sanyo\Anaconda2\lib\site-packages\wordcloud\wordcloud.py in () C:\Users\sanyo\Anaconda2\lib\site-packages\PIL\Image.py in () ImportError: DLL load failed: The specified module could not be found. Can anybody please help? |
@sandeepsanyo see #356 |
Can anyone help me to solve this? I am trying to install wordcloud in Pycharm. Thanks Collecting wordcloud
Command ""E:\Pycharm Project\venv\Scripts\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\FraNk\AppData\Local\Temp\pycharm-packaging\wordcloud\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\FraNk\AppData\Local\Temp\pip-record-pb2h3spv\install-record.txt --single-version-externally-managed --compile --install-headers "E:\Pycharm Project\venv\include\site\python3.6\wordcloud"" failed with error code 1 in C:\Users\FraNk\AppData\Local\Temp\pycharm-packaging\wordcloud\ |
I recommend you install using conda instead as described in the readme: https://github.com/amueller/word_cloud |
Agreee and run in conda shell not cmd prompt
…On Mon, May 28, 2018, 10:33 AM Andreas Mueller ***@***.***> wrote:
I recommend you install using conda instead as described in the readme:
https://github.com/amueller/word_cloud
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcGH4db2yNpn1AZL9_3ACnXwjndSTriZks5t3ArRgaJpZM4Htc51>
.
|
@Arko2016 this worked for me, thank you! |
I am getting an error: "error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools" I have Microsoft Visual Studio Build Tools 2015 installed, along with the Visual Studio Code IDE. It's my understanding that Microsoft Visual Studio Build Tools 2015 includes Microsoft Visual C++ 14.0. |
@Amuchastegui how are you trying to install? |
pip install wordcloud
(from the bash shell)
…On Tue, Jul 31, 2018 at 9:45 AM, Andreas Mueller ***@***.***> wrote:
@Amuchastegui <https://github.com/amuchastegui> how are you trying to
install?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC-Pf-lNV3P13BNxGwv8U63rwsWFgwArks5uMF9wgaJpZM4Htc51>
.
|
@Amuchastegui Windows wheel have just been released. Let us know if you still have issues. |
It's working now, thanks! |
C:\Users\admin\AppData\Local\Programs\Python\Python38-32\Scripts>pip install wordcloud |
can you hlep the slove issue |
Have you tried this? #134 (comment) The error log clearly describes what went wrong. You need a C++ compiler which wasn't found. It's easier to just install directly from the wheel file. |
If pip doesn't install the wheel, it's probably because you're using 32bit Python. I would suggest using 64bit python for which there is a wheel. |
ohk tq
…On Thu, Mar 5, 2020 at 11:33 PM Andreas Mueller ***@***.***> wrote:
If pip doesn't install the wheel, it's probably because you're using 32bit
Python. I would suggest using 64bit python for which there is a wheel.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#134?email_source=notifications&email_token=AIK3QUFHOHQYXZ5HXMBL7ADRF7SOLA5CNFSM4B5VZZ22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN6JE3A#issuecomment-595366508>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIK3QUC73Z7QGDZDAQUDC23RF7SOLANCNFSM4B5VZZ2Q>
.
|
Hi, I tried this but it did not worked for me |
With 64 bit python "pip install wordcloud" should work. If not, please open a new issue. |
worked for me, thanks |
My question isnt solved with a c++compiler |
PS C:\Code> pip3 install wordcloud |
what should i do |
@poojakhodke see #614. |
Hi, Note: I've dowload the build tools |
Thanks a lot. This helped. |
use this command it worked for me |
Team Github,
python -m pip install wordcloud after installing this the problem got rectified and solved legacy errors and build tools visuall c++ errors at python prompt. This solution works for me a lot after installing the MicrosoftVisual c++ build tools got greatly worked a lot to install word cloud and the stopwords process at Python prompt, Great. have a lovely day, Great work done. Regards, |
installing a wheel with |
Collecting wordcloud
Using cached wordcloud-1.2.1.tar.gz
Building wheels for collected packages: wordcloud
Running setup.py bdist_wheel for wordcloud
Complete output from command C:\Anaconda3\python.exe -c "import setuptools;file='C:\Users\vaast\AppData\Local\Temp\pip-build-xepnqb1f\wordcloud\setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d C:\Users\vaast\AppData\Local\Temp\tmp5d658m49pip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.5\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.5\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.5\wordcloud
copying wordcloud__init__.py -> build\lib.win-amd64-3.5\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-3.5\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.5\wordcloud
running build_ext
building 'wordcloud.query_integral_image' extension
error: Unable to find vcvarsall.bat
Failed building wheel for wordcloud
Failed to build wordcloud
Installing collected packages: wordcloud
Running setup.py install for wordcloud
Complete output from command C:\Anaconda3\python.exe -c "import setuptools, tokenize;file='C:\Users\vaast\AppData\Local\Temp\pip-build-xepnqb1f\wordcloud\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\vaast\AppData\Local\Temp\pip-lonpl8b1-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running build_ext
building 'wordcloud.query_integral_image' extension
error: Unable to find vcvarsall.bat
Command "C:\Anaconda3\python.exe -c "import setuptools, tokenize;file='C:\Users\vaast\AppData\Local\Temp\pip-build-xepnqb1f\wordcloud\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\vaast\AppData\Local\Temp\pip-lonpl8b1-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\vaast\AppData\Local\Temp\pip-build-xepnqb1f\wordcloud
The text was updated successfully, but these errors were encountered: