Wordcloud安装错误,帮助调试/查找问题

时间:2017-11-11 21:40:05

标签: python pip anaconda

道歉,我之前在今天早上发布了一个类似的问题,但我有一个更精确的解决方案列表。

我的第一个完整性检查是尝试在安装了python2,python3和anaconda的Mac工作笔记本电脑上安装wordcloud。它工作了10秒钟。

我从Windows PC上卸载了Python2,Python3和anaconda。重新安装Python3并确保路径已设置。试过pip安装wordcloud,我收到这个错误:

C:\Users\ghodg> pip install wordcloud
Collecting wordcloud
  Using cached wordcloud-1.3.1.tar.gz
Requirement already satisfied: matplotlib in c:\users\ghodg\appdata\roaming\python\python36\site-packages (from wordclou
d)
Requirement already satisfied: numpy>=1.6.1 in c:\users\ghodg\appdata\local\programs\python\python36-32\lib\site-package
s (from wordcloud)
Requirement already satisfied: pillow in c:\users\ghodg\appdata\roaming\python\python36\site-packages (from wordcloud)
Requirement already satisfied: six>=1.10 in c:\users\ghodg\appdata\local\programs\python\python36-32\lib\site-packages (
from matplotlib->wordcloud)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\ghodg\appdata\roaming\python\python3
6\site-packages (from matplotlib->wordcloud)
Requirement already satisfied: python-dateutil>=2.0 in c:\users\ghodg\appdata\local\programs\python\python36-32\lib\site
-packages (from matplotlib->wordcloud)
Requirement already satisfied: pytz in c:\users\ghodg\appdata\local\programs\python\python36-32\lib\site-packages (from
matplotlib->wordcloud)
Requirement already satisfied: cycler>=0.10 in c:\users\ghodg\appdata\roaming\python\python36\site-packages (from matplo
tlib->wordcloud)
Requirement already satisfied: olefile in c:\users\ghodg\appdata\roaming\python\python36\site-packages (from pillow->wor
dcloud)
Installing collected packages: wordcloud
  Running setup.py install for wordcloud ... error
    Complete output from command c:\users\ghodg\appdata\local\programs\python\python36-32\python.exe -u -c "import setup
tools, tokenize;__file__='C:\\Users\\ghodg\\AppData\\Local\\Temp\\pip-build-pg6zztjv\\wordcloud\\setup.py';f=getattr(tok
enize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" inst
all --record C:\Users\ghodg\AppData\Local\Temp\pip-nq0gfgxv-record\install-record.txt --single-version-externally-manage
d --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.6
    creating build\lib.win32-3.6\wordcloud
    copying wordcloud\color_from_image.py -> build\lib.win32-3.6\wordcloud
    copying wordcloud\tokenization.py -> build\lib.win32-3.6\wordcloud
    copying wordcloud\wordcloud.py -> build\lib.win32-3.6\wordcloud
    copying wordcloud\wordcloud_cli.py -> build\lib.win32-3.6\wordcloud
    copying wordcloud\__init__.py -> build\lib.win32-3.6\wordcloud
    copying wordcloud\stopwords -> build\lib.win32-3.6\wordcloud
    copying wordcloud\DroidSansMono.ttf -> build\lib.win32-3.6\wordcloud
    running build_ext
    building 'wordcloud.query_integral_image' extension
    creating build\temp.win32-3.6
    creating build\temp.win32-3.6\Release
    creating build\temp.win32-3.6\Release\wordcloud
    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\ghodg\appdata\local\programs\python\python36-32\include -Ic:\u
sers\ghodg\appdata\local\programs\python\python36-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\I
NCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\
include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\includ
e\winrt" /Tcwordcloud/query_integral_image.c /Fobuild\temp.win32-3.6\Release\wordcloud/query_integral_image.obj
    error: command 'cl.exe' failed: No such file or directory
  

命令“c:\ users \ ghodg \ appdata \ local \ programs \ python \ python36-32 \ python.exe -u -c”import setuptools,tokenize; __ file __ ='C:\ Users \ ghodg \ AppData \ Local \ temp \ pip-build-pg6zztjv \ 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 \ ghodg \ AppData \ Local \ Temp \ pip-nq0gfgxv-record \ install- record.txt --single-version-external-managed --compile“在C中失败,错误代码为1:\ Users \ ghodg \ AppData \ Local \ Temp \ pip-build-pg6zztjv \ wordcloud \

重新安装了anaconda。然后尝试了conda install -c https://conda.anaconda.org/amueller wordcloud。也没工作。甚至DL为.whl文件提供了正确版本的Python,也没有用。重新安装了Python2。确保可视化工具得到更新。确保pip安装已更新。

在powershell工作现在scipy,pandas,sqlalchemy和其他一些人使用pip install。

0 个答案:

没有答案