pycharm中用pip安装第三方库wordcloud时出现如下错误:
Building wheels for collected packages: wordcloud
Building wheel for wordcloud (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\LMX\AppData\Local\Programs\Python\pythonNull\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\LMX\\AppData\\Loc
al\\Temp\\pip-install-9n27poll\\wordcloud_28001248e8dc45809075904cf6e6f71e\\setup.py'"'"'; __file__='"'"'C:\\Users\\LMX\\AppData\\Local\\Temp\\pip-install-9n27poll\\wordcloud_28001248
e8dc45809075904cf6e6f71e\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"
'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\LMX\AppData\Local\Temp\pip-wheel-5_ut2o6f'
解决方案:在python解释器(Interpreter)所在的目录的Script文件夹下安装相应的wheel文件 wheel文件的下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs 完成后即可成功安装wordcloud!
参考博客: Python中wordcloud安装失败的准确解决方案
|