Установить wordcloud в pycharm Jetbrains с python версии 3.6 не удалось - PullRequest
0 голосов
/ 07 мая 2020

Я пытаюсь установить wordcloud в pycharm (pip install wordcloud) с python 3.6 в терминале, но получаю эту ошибку. Я устанавливаю каждую библиотеку в терминал с помощью инструкции pip install, но не смог установить wordcloud. Как я могу это решить?


(venv) C:\Users\Mansi Dhingra\Desktop\Projects\api>pip install wordcloud
Collecting wordcloud
  Using cached https://files.pythonhosted.org/packages/6b/9f/27cec92eee9f1d4f02f986ad0cc6dfc0797b117be6e968da8f92c6c183aa/wordcloud-1.7.0.tar.gz
Requirement already satisfied: numpy>=1.6.1 in c:\users\mansi dhingra\desktop\projects\api\venv\lib\site-packages (from wordcloud)
Requirement already satisfied: pillow in c:\users\mansi dhingra\desktop\projects\api\venv\lib\site-packages (from wordcloud)
Requirement already satisfied: matplotlib in c:\users\mansi dhingra\desktop\projects\api\venv\lib\site-packages (from wordcloud)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\mansi dhingra\desktop\projects\api\venv\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\mansi dhingra\desktop\projects\api\venv\lib\site-packages (from matplotlib->wordcloud)
Requirement already satisfied: cycler>=0.10 in c:\users\mansi dhingra\desktop\projects\api\venv\lib\site-packages (from matplotlib->wordcloud)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\mansi dhingra\desktop\projects\api\venv\lib\site-packages (from matplotlib->wordcloud)
Requirement already satisfied: six>=1.5 in c:\users\mansi dhingra\desktop\projects\api\venv\lib\site-packages (from python-dateutil>=2.1->matplotlib->wordcloud)
Installing collected packages: wordcloud
  Running setup.py install for wordcloud ... error
    Complete output from command "C:\Users\Mansi Dhingra\Desktop\Projects\api\venv\Scripts\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\MANSID~1\\AppData\\Local\\T
emp\\pip-build-hzywsg3f\\wordcloud\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --r
ecord C:\Users\MANSID~1\AppData\Local\Temp\pip-otlfw3d1-record\install-record.txt --single-version-externally-managed --compile --install-headers "C:\Users\Mansi Dhingra\Desktop\Projects
\api\venv\include\site\python3.7\wordcloud":
    C:\Users\Mansi Dhingra\AppData\Local\Programs\Python\Python37-32\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\wordcloud
    copying wordcloud\color_from_image.py -> build\lib.win32-3.7\wordcloud
    copying wordcloud\tokenization.py -> build\lib.win32-3.7\wordcloud
    copying wordcloud\wordcloud.py -> build\lib.win32-3.7\wordcloud
    copying wordcloud\wordcloud_cli.py -> build\lib.win32-3.7\wordcloud
    copying wordcloud\_version.py -> build\lib.win32-3.7\wordcloud
    copying wordcloud\__init__.py -> build\lib.win32-3.7\wordcloud
    copying wordcloud\__main__.py -> build\lib.win32-3.7\wordcloud
    copying wordcloud\stopwords -> build\lib.win32-3.7\wordcloud
    copying wordcloud\DroidSansMono.ttf -> build\lib.win32-3.7\wordcloud
    UPDATING build\lib.win32-3.7\wordcloud/_version.py
    set build\lib.win32-3.7\wordcloud/_version.py to '1.7.0'
    running build_ext
    building 'wordcloud.query_integral_image' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

    ----------------------------------------
Command ""C:\Users\Mansi Dhingra\Desktop\Projects\api\venv\Scripts\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\MANSID~1\\AppData\\Local\\Temp\\pip-build-hzywsg3f\
\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\MANSID~1\
AppData\Local\Temp\pip-otlfw3d1-record\install-record.txt --single-version-externally-managed --compile --install-headers "C:\Users\Mansi Dhingra\Desktop\Projects\api\venv\include\site\p
ython3.7\wordcloud"" failed with error code 1 in C:\Users\MANSID~1\AppData\Local\Temp\pip-build-hzywsg3f\wordcloud\

1 Ответ

0 голосов
/ 07 мая 2020

wordcloud 1.7.0 предоставляет много колес для w32, но не для Python 3.8. Мой совет - перейти на 64-разрядную версию Python 3.7.

Если вы хотите установить wordcloud для Python 3.8, у вас должен быть Microsoft Visual C ++ 14.0 для компиляции модулей C / C ++.

...