Install wordcloud in jetbrains pycharm with python version 3.6 failed - python

I am trying to install wordcloud in pycharm (pip install wordcloud) with python 3.6 in terminal but getting this error. I install every library in terminal with pip install statement but failed to install wordcloud. How can I solve this?
(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\

wordcloud 1.7.0 provides a lot of wheels for w32 but not for Python 3.8. My advice downgrade to Python 3.7 64-bit.
If you want to install wordcloud for Python 3.8 you must have Microsoft Visual C++ 14.0 to compile C/C++ modules.

Related

I am unable to install wordcloud on vscode

I was working with sentiment analysis today, and when i started importing libraries i am unable to install wordcloud. it gives me an error as follows when i try to install pip install wordcloud. i also tried to install it by downloading it and copying it to my current directory and python -m pip install wordcloud-1.8.1-cp38-cp38-win_amd64.whl but that does not work too.
i.e. i am using windows, vscode and python3.9
The log error is
PS E:\projects\python\sentiment> pip install wordcloud
Collecting wordcloud
Using cached wordcloud-1.8.1.tar.gz (220 kB)
Requirement already satisfied: numpy>=1.6.1 in c:\users\robel\appdata\local\programs\python\python39\lib\site-packages (from wordcloud) (1.20.3)
Requirement already satisfied: pillow in c:\users\robel\appdata\local\programs\python\python39\lib\site-packages (from wordcloud) (8.2.0)
Requirement already satisfied: matplotlib in c:\users\robel\appdata\local\programs\python\python39\lib\site-packages (from wordcloud) (3.4.2)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\robel\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->wordcloud) (2.4.7)
Requirement already satisfied: cycler>=0.10 in c:\users\robel\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->wordcloud) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\robel\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->wordcloud) (1.3.1)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\robel\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->wordcloud) (2.8.1)
Requirement already satisfied: six in c:\users\robel\appdata\local\programs\python\python39\lib\site-packages (from cycler>=0.10->matplotlib->wordcloud) (1.16.0)
Using legacy 'setup.py install' for wordcloud, since package 'wheel' is not installed.
Installing collected packages: wordcloud
Running setup.py install for wordcloud ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\robel\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Robel\AppData\Local\Temp\pip-install-ij5wisei\wordcloud_65d6145d63024c6693ae2f4a8a7fb0a8\setup.py'"'"'; file='"'"'C:\Users\Robel\AppData\Local\Temp\pip-install-ij5wisei\wordcloud_65d6145d63024c6693ae2f4a8a7fb0a8\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'"'"'))' install --record 'C:\Users\Robel\AppData\Local\Temp\pip-record-ppnm2m4u\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\robel\appdata\local\programs\python\python39\Include\wordcloud'
cwd: C:\Users\Robel\AppData\Local\Temp\pip-install-ij5wisei\wordcloud_65d6145d63024c6693ae2f4a8a7fb0a8
Complete output (20 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\tokenization.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud_version.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud_init_.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud_main_.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.9\wordcloud
UPDATING build\lib.win-amd64-3.9\wordcloud/_version.py
set build\lib.win-amd64-3.9\wordcloud/_version.py to '1.8.1'
running build_ext
building 'wordcloud.query_integral_image' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\robel\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Robel\AppData\Local\Temp\pip-install-ij5wisei\wordcloud_65d6145d63024c6693ae2f4a8a7fb0a8\setup.py'"'"'; file='"'"'C:\Users\Robel\AppData\Local\Temp\pip-install-ij5wisei\wordcloud_65d6145d63024c6693ae2f4a8a7fb0a8\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'"'"'))' install --record 'C:\Users\Robel\AppData\Local\Temp\pip-record-ppnm2m4u\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\robel\appdata\local\programs\python\python39\Include\wordcloud' Check the logs for full command output.
Try installed worcloud by .whl file.
Choose the version that suit for you. Wordcloud.whl
Use cmd and type this command:
step 1
cd *your file directory path*
step 2
pip install *the file name.whl*
The comment made by #Wojciech Jakubas is what worked for me.
Download the wordcloud‑1.8.1‑cp39‑cp39‑win_amd64.whl file from here
(Note that the cp39 in the filename reflects the python version YOU are using, so make sure you download the compatible file. e.g. here cp39 means python 3.9)
Open the command prompt in the directory where the downloaded file is located. Or just cd your way there.
Run this command python -m pip install wordcloud-1.8.1-cp39-cp39-win_amd64.whl
(again make sure to use the specific filename of the file that you download as that may vary depending on what python version you're downloading your file for)
I'm making this comment, for one because my reputation is too low to reply others and second because this answer sort of makes the steps involved explicit for accessibility's sake.
The problem is that wordcloud has no prebuilt wheels for python3.9 on windows. Therefore when you install it it will download the source code and try to build the wheel.
In order to successfully build this wheel you need a c compiler.
As the error suggests you can download Microsoft C++ Build Tools.
After downloading and installing (make sure you have the correct version between 32 and 64 bit depending on your python architecture) then retry doing pip install wordcloud

Unable to install Lightfm

This is the error that I'm getting whenever I try to install a certain few libraries. I have tried updating my pip to the latest version. And I'm using python 3.8.5
C:\Users\Deep\Desktop\Sentiment Analysis>pip install lightfm
Collecting lightfm
Using cached lightfm-1.16.tar.gz (310 kB)
Requirement already satisfied: numpy in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from lightfm) (1.20.1)
Requirement already satisfied: scipy>=0.17.0 in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from lightfm) (1.6.1)
Requirement already satisfied: requests in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from lightfm) (2.11.1)
Requirement already satisfied: scikit-learn in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from lightfm) (0.24.1)
Requirement already satisfied: joblib>=0.11 in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn->lightfm) (1.0.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn->lightfm) (2.1.0)
Using legacy 'setup.py install' for lightfm, since package 'wheel' is not installed.
Installing collected packages: lightfm
Running setup.py install for lightfm ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\deep\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Deep\\AppData\\Local\\Temp\\pip-install-2woi0con\\lightfm_42fc377b52074fbd9b3c493179e0e9fd\\setup.py'"'"'; __file__='"'"'C:\\Users\\Deep\\AppData\\Local\\Temp\\pip-install-2woi0con\\lightfm_42fc377b52074fbd9b3c493179e0e9fd\\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\Deep\AppData\Local\Temp\pip-record-2y1qyoq6\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\deep\appdata\local\programs\python\python39\Include\lightfm'
cwd: C:\Users\Deep\AppData\Local\Temp\pip-install-2woi0con\lightfm_42fc377b52074fbd9b3c493179e0e9fd\
Complete output (23 lines):
Compiling without OpenMP support.
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\lightfm
copying lightfm\cross_validation.py -> build\lib.win-amd64-3.9\lightfm
copying lightfm\data.py -> build\lib.win-amd64-3.9\lightfm
copying lightfm\evaluation.py -> build\lib.win-amd64-3.9\lightfm
copying lightfm\lightfm.py -> build\lib.win-amd64-3.9\lightfm
copying lightfm\_lightfm_fast.py -> build\lib.win-amd64-3.9\lightfm
copying lightfm\__init__.py -> build\lib.win-amd64-3.9\lightfm
creating build\lib.win-amd64-3.9\lightfm\datasets
copying lightfm\datasets\movielens.py -> build\lib.win-amd64-3.9\lightfm\datasets
copying lightfm\datasets\stackexchange.py -> build\lib.win-amd64-3.9\lightfm\datasets
copying lightfm\datasets\_common.py -> build\lib.win-amd64-3.9\lightfm\datasets
copying lightfm\datasets\__init__.py -> build\lib.win-amd64-3.9\lightfm\datasets
copying lightfm\_lightfm_fast_no_openmp.c -> build\lib.win-amd64-3.9\lightfm
copying lightfm\_lightfm_fast_openmp.c -> build\lib.win-amd64-3.9\lightfm
running build_ext
building 'lightfm._lightfm_fast_no_openmp' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\deep\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Deep\\AppData\\Local\\Temp\\pip-install-2woi0con\\lightfm_42fc377b52074fbd9b3c493179e0e9fd\\setup.py'"'"'; __file__='"'"'C:\\Users\\Deep\\AppData\\Local\\Temp\\pip-install-2woi0con\\lightfm_42fc377b52074fbd9b3c493179e0e9fd\\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\Deep\AppData\Local\Temp\pip-record-2y1qyoq6\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\deep\appdata\local\programs\python\python39\Include\lightfm' Check the logs for full command output.
try to install Build Tools for Visual Studio like it says in error and you can get it here https://visualstudio.microsoft.com/downloads/ or here https://visualstudio.microsoft.com/cs/visual-cpp-build-tools/

Building wheel for mpi4py (setup.py) ... error message while installing stable_baselines

After pulling the last commit of flow-project, I executed green_wave.py with python3.7.4 and then got these errors consecutively.
All these errors happened after executed Running setup.py install for mpi4py ... error command.
Below that, you can see the snippet of error message.
What should i do?
Thank you.
Ulass-MacBook-Pro:stable_baselines ulasbayram$ pip3 install stable_baselines==2.7.0
Collecting stable_baselines==2.7.0
Using cached https://files.pythonhosted.org/packages/52/9f/bbb2122cf2ce0e5f09a33bc35d504b83c05b0896bd46d4b85687c62557f6/stable_baselines-2.7.0-py3-none-any.whl
Requirement already satisfied: joblib in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (0.10.3)
Requirement already satisfied: opencv-python in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (4.1.0.25)
Requirement already satisfied: cloudpickle>=0.5.5 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (1.2.1)
Requirement already satisfied: pandas in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (0.25.0)
Requirement already satisfied: scipy in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (1.1.0)
Requirement already satisfied: gym[atari,classic_control]>=0.10.9 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (0.13.1)
Collecting mpi4py (from stable_baselines==2.7.0)
Using cached https://files.pythonhosted.org/packages/04/f5/a615603ce4ab7f40b65dba63759455e3da610d9a155d4d4cece1d8fd6706/mpi4py-3.0.2.tar.gz
Requirement already satisfied: numpy in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (1.16.4)
Requirement already satisfied: matplotlib in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from stable_baselines==2.7.0) (3.0.0)
Requirement already satisfied: python-dateutil>=2.6.1 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from pandas->stable_baselines==2.7.0) (2.7.3)
Requirement already satisfied: pytz>=2017.2 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from pandas->stable_baselines==2.7.0) (2019.2)
Requirement already satisfied: pyglet<=1.3.2,>=1.2.0 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from gym[atari,classic_control]>=0.10.9->stable_baselines==2.7.0) (1.3.2)
Requirement already satisfied: six in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from gym[atari,classic_control]>=0.10.9->stable_baselines==2.7.0) (1.11.0)
Requirement already satisfied: Pillow; extra == "atari" in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from gym[atari,classic_control]>=0.10.9->stable_baselines==2.7.0) (6.1.0)
Requirement already satisfied: atari-py~=0.2.0; extra == "atari" in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from gym[atari,classic_control]>=0.10.9->stable_baselines==2.7.0) (0.2.6)
Requirement already satisfied: cycler>=0.10 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from matplotlib->stable_baselines==2.7.0) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from matplotlib->stable_baselines==2.7.0) (2.4.2)
Requirement already satisfied: kiwisolver>=1.0.1 in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from matplotlib->stable_baselines==2.7.0) (1.1.0)
Requirement already satisfied: future in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from pyglet<=1.3.2,>=1.2.0->gym[atari,classic_control]>=0.10.9->stable_baselines==2.7.0) (0.17.1)
Requirement already satisfied: setuptools in /Users/ulasbayram/Detecon/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib->stable_baselines==2.7.0) (41.0.1)
Building wheels for collected packages: mpi4py
Building wheel for mpi4py (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/ulasbayram/Detecon/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-install-5qgh61eu/mpi4py/setup.py'"'"'; __file__='"'"'/private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-install-5qgh61eu/mpi4py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-wheel-vy49j_1r --python-tag cp37
cwd: /private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-install-5qgh61eu/mpi4py/
Complete output (126 lines):
running bdist_wheel
running build
running build_src
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/run.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/bench.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/__main__.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
creating build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_base.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/server.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/pool.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/aplus.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__main__.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_lib.py -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/futures
copying src/mpi4py/__init__.pxd -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/libmpi.pxd -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
copying src/mpi4py/MPI.pxd -> build/lib.macosx-10.14-x86_64-3.7/mpi4py
creating build/lib.macosx-10.14-x86_64-3.7/mpi4py/include
creating build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.macosx-10.14-x86_64-3.7/mpi4py/include/mpi4py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
checking for library 'lmpe' ...
.
.
.
ERROR: Command errored out with exit status 1: /Users/ulasbayram/Detecon/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-install-5qgh61eu/mpi4py/setup.py'"'"'; __file__='"'"'/private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-install-5qgh61eu/mpi4py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/y9/0xpl6pfx3cq9x9j9dzkgl22m0000gn/T/pip-record-xbd7wnrr/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ulasbayram/Detecon/bin/../include/site/python3.7/mpi4py Check the logs for full command output.
did you make sure to follow the installation instructions for stable baselines before running the pip install? That is, did you run 'brew install cmake openmpi' before running this command? The error could be due to you not having an installation of MPI.

Not able to install python-binance on pycharm Windows 10

Installation of Twisted==17.9.0 fails on Python 3.7.3. Also can't install Cryptography==2.1.4
Want to install necessary modules on Pycharm for python-binance
I've tried using the anaconda version of python but with that I still get the install error with cryptography.
C:\Users\Laptop\PycharmProjects\Python Trading2\venv\Scripts>pip install Twisted==17.9.0
Collecting hyperlink>=17.1.1 (from Twisted==17.9.0)
Using cached https://files.pythonhosted.org/packages/7f/91/e916ca10a2de1cb7101a9b24da546fb90ee14629e23160086cf3361c4fb8/hyperlink-19.0.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in c:\program files\python37\lib\site-packages (from zope.interface>=4.0.2->Twisted==17.9.0) (39.0.1)
Collecting attrs>=16.1.0 (from Automat>=0.3.0->Twisted==17.9.0)
Using cached https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl
Requirement already satisfied: six in c:\program files\python37\lib\site-packages (from Automat>=0.3.0->Twisted==17.9.0) (1.12.0)
Requirement already satisfied: idna>=2.5 in c:\program files\python37\lib\site-packages (from hyperlink>=17.1.1->Twisted==17.9.0) (2.8)
Installing collected packages: zope.interface, constantly, incremental, attrs, Automat, hyperlink, Twisted
Running setup.py install for Twisted ... error
ERROR: Complete output from command 'c:\program files\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\Laptop\\AppData\\Local\\Temp\\pip-install-x06wgdqo\\Twisted\\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\Laptop\AppData\Local\Temp\pip-record-jhd2kvhg\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\twisted
copying src\twisted\copyright.py -> build\lib.win-amd64-3.7\twisted
copying src\twisted\plugin.py -> build\lib.win-amd64-3.7\twisted
copying src
And on and on in red.
Today I encountered the same problem Tried everything. Then everything made sense.
Install VSC build tools:
https://learn.microsoft.com/en-us/answers/questions/136595/error-microsoft-visual-c-140-or-greater-is-require.html
Download https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted (if you get .whl error)(file name "Twisted-20.3.0-cp39-cp39-win_amd64.whl" ). install it using CMD location/filename.
Install through cmd:
pip Install Scrapy

Errors in pip install flask-socketio

I am trying to install flask-socketio from terminal
pip install flask-socketio
but it keep showing me the following error(in bold):
Collecting flask-socketio
Using cached Flask-SocketIO-2.9.2.tar.gz
Requirement already satisfied: Flask>=0.9 in /Library/Python/2.7/site-packages (from flask-socketio)
Collecting python-socketio>=1.5.0 (from flask-socketio)
Using cached python-socketio-1.8.0.tar.gz
Collecting python-engineio>=1.0.0 (from flask-socketio)
Using cached python-engineio-1.7.0.tar.gz
Requirement already satisfied: itsdangerous>=0.21 in /Library/Python/2.7/site-packages (from Flask>=0.9->flask-socketio)
Requirement already satisfied: Werkzeug>=0.7 in /Library/Python/2.7/site-packages (from Flask>=0.9->flask-socketio)
Requirement already satisfied: Jinja2>=2.4 in /Library/Python/2.7/site-packages (from Flask>=0.9->flask-socketio)
Requirement already satisfied: click>=2.0 in /Library/Python/2.7/site-packages (from Flask>=0.9->flask-socketio)
Requirement already satisfied: six>=1.9.0 in /Library/Python/2.7/site-packages (from python-socketio>=1.5.0->flask-socketio)
Requirement already satisfied: MarkupSafe>=0.23 in /Library/Python/2.7/site-packages (from Jinja2>=2.4->Flask>=0.9->flask-socketio)
Installing collected packages: python-engineio, python-socketio, flask-socketio
Running setup.py install for python-engineio ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/_g/m9lwl1yn5g5_wz3d57qc1qh40000gn/T/pip-build-1eGNas/python-engineio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/_g/m9lwl1yn5g5_wz3d57qc1qh40000gn/T/pip-U9szix-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/engineio
copying engineio/__init__.py -> build/lib/engineio
copying engineio/async_aiohttp.py -> build/lib/engineio
copying engineio/async_eventlet.py -> build/lib/engineio
copying engineio/async_gevent.py -> build/lib/engineio
copying engineio/async_gevent_uwsgi.py -> build/lib/engineio
copying engineio/async_sanic.py -> build/lib/engineio
copying engineio/async_threading.py -> build/lib/engineio
copying engineio/asyncio_server.py -> build/lib/engineio
copying engineio/asyncio_socket.py -> build/lib/engineio
copying engineio/exceptions.py -> build/lib/engineio
copying engineio/middleware.py -> build/lib/engineio
copying engineio/packet.py -> build/lib/engineio
copying engineio/payload.py -> build/lib/engineio
copying engineio/server.py -> build/lib/engineio
copying engineio/socket.py -> build/lib/engineio
running egg_info
writing requirements to python_engineio.egg-info/requires.txt
writing python_engineio.egg-info/PKG-INFO
writing top-level names to python_engineio.egg-info/top_level.txt
writing dependency_links to python_engineio.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'python_engineio.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README.md'
writing manifest file 'python_engineio.egg-info/SOURCES.txt'
running install_lib
creating /Library/Python/2.7/site-packages/engineio
error: could not create '/Library/Python/2.7/site-packages/engineio': Permission denied
----------------------------------------
**Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/_g/m9lwl1yn5g5_wz3d57qc1qh40000gn/T/pip-build-1eGNas/python-engineio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/_g/m9lwl1yn5g5_wz3d57qc1qh40000gn/T/pip-U9szix-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/_g/m9lwl1yn5g5_wz3d57qc1qh40000gn/T/pip-build-1eGNas/python-engineio/**
I have tried updating my pip and basically went through mostly all related questions in stackoverflow but I am getting permission denied and its asking me to import some setup tools.
If you want to install something to system python libs, try sudo pip install flask-socketio. Or use virtualenv

Categories