Unable to install Lightfm - python

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/

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

why can't i pip install Pyrebase in python?

So I am trying to pip install Pyrebase in pycharm
but i am getting this error
command: 'c:\users\hp\pycharmprojects\myworkprojects\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\
Local\\Temp\\pip-install-tcpoer0q\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-tcpoer0q\\pycryptodome\\setup.py'"'"';
f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdis
t_wheel -d 'C:\Users\hp\AppData\Local\Temp\pip-wheel-2tffvi57'
cwd: C:\Users\hp\AppData\Local\Temp\pip-install-tcpoer0q\pycryptodome\
Complete output (364 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\Crypto
copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.8\Crypto
creating build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-3.8\Crypto\Cipher
----------------------------------------
ERROR: Failed building wheel for pycryptodome
Running setup.py clean for pycryptodome
Failed to build pycryptodome
Installing collected packages: pycryptodome, Pyrebase
Running setup.py install for pycryptodome ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\hp\pycharmprojects\myworkprojects\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData
\\Local\\Temp\\pip-install-tcpoer0q\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-tcpoer0q\\pycryptodome\\setup.py'"'"
';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' in
stall --record 'C:\Users\hp\AppData\Local\Temp\pip-record-dxesdn53\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\hp\p
ycharmprojects\myworkprojects\venv\include\site\python3.8\pycryptodome'
cwd: C:\Users\hp\AppData\Local\Temp\pip-install-tcpoer0q\pycryptodome\
Complete output (363 lines):
running install
running build
running build_py
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\Crypto
copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.8\Crypto
creating build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC2.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC4.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\Blowfish.py -> build\lib.win-amd64-3.8\Crypto\Cipher
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\hp\pycharmprojects\myworkprojects\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv
[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-tcpoer0q\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-tcp
oer0q\\pycryptodome\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(cod
e, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\hp\AppData\Local\Temp\pip-record-dxesdn53\install-record.txt' --single-version-externally-managed --compile
--install-headers 'c:\users\hp\pycharmprojects\myworkprojects\venv\include\site\python3.8\pycryptodome' Check the logs for full command output.
(venv) C:\Users\hp\PycharmProjects\MyWorkProjects>pip install Pyrebase
Collecting Pyrebase
Using cached Pyrebase-3.0.27-py3-none-any.whl (9.6 kB)
Requirement already satisfied: requests-toolbelt==0.7.0 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from Pyrebase) (0.7.0)
Requirement already satisfied: gcloud==0.17.0 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from Pyrebase) (0.17.0)
Collecting pycryptodome==3.4.3
Using cached pycryptodome-3.4.3.tar.gz (6.5 MB)
Requirement already satisfied: requests==2.11.1 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from Pyrebase) (2.11.1)
Requirement already satisfied: oauth2client==3.0.0 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from Pyrebase) (3.0.0)
Requirement already satisfied: python-jwt==2.0.1 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from Pyrebase) (2.0.1)
Requirement already satisfied: httplib2>=0.9.1 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from gcloud==0.17.0->Pyrebase) (0.18.1)
Requirement already satisfied: googleapis-common-protos in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from gcloud==0.17.0->Pyrebase) (1.52.0)
Requirement already satisfied: protobuf!=3.0.0.b2.post1,>=3.0.0b2 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from gcloud==0.17.0->Pyrebase
) (3.13.0)
Requirement already satisfied: six in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from gcloud==0.17.0->Pyrebase) (1.15.0)
Requirement already satisfied: pyasn1>=0.1.7 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from oauth2client==3.0.0->Pyrebase) (0.4.8)
Requirement already satisfied: pyasn1-modules>=0.0.5 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from oauth2client==3.0.0->Pyrebase) (0.2.8
)
Requirement already satisfied: rsa>=3.1.4 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from oauth2client==3.0.0->Pyrebase) (4.6)
Requirement already satisfied: jws>=0.1.3 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from python-jwt==2.0.1->Pyrebase) (0.1.3)
Requirement already satisfied: setuptools in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from protobuf!=3.0.0.b2.post1,>=3.0.0b2->gcloud==0.17
.0->Pyrebase) (50.3.0)
Building wheels for collected packages: pycryptodome
Building wheel for pycryptodome (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\hp\pycharmprojects\myworkprojects\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\
Local\\Temp\\pip-install-h4tye5vg\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-h4tye5vg\\pycryptodome\\setup.py'"'"';
f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdis
t_wheel -d 'C:\Users\hp\AppData\Local\Temp\pip-wheel-n2zgp_ai'
cwd: C:\Users\hp\AppData\Local\Temp\pip-install-h4tye5vg\pycryptodome\
Complete output (364 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\Crypto
copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.8\Crypto
creating build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC2.py -> build\lib.win-amd64-3.8\Crypto\Cipher
ERROR: Command errored out with exit status 1: 'c:\users\hp\pycharmprojects\myworkprojects\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv
[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-h4tye5vg\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-h4t
ye5vg\\pycryptodome\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(cod
e, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\hp\AppData\Local\Temp\pip-record-_4my5q46\install-record.txt' --single-version-externally-managed --compile
--install-headers 'c:\users\hp\pycharmprojects\myworkprojects\venv\include\site\python3.8\pycryptodome' Check the logs for full command output.
this is not the full error
it exceeds the limit
i dont know how to fix this
please switch pyrebase4, this is forked from pyrebase and is well maintained
pip install pyrebase4

Install wordcloud in jetbrains pycharm with python version 3.6 failed

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.

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

Error in pip install datefinder

While I was trying to pip install python package "datefinder", I met the error about regex and visual c++. I have viewed lots of Stackoverflow posts and cannot find a solution yet. One post is similar but got no reply. Any comment is appreciated!
C:\Users\sheldonc\Downloads>pip install datefinder-0.6.1-py2.py3-none-any.whl
Processing c:\users\sheldonc\downloads\datefinder-0.6.1-py2.py3-none-any.whl
Requirement already satisfied: python-dateutil>=2.4.2 in c:\users\sheldonc\appdata\local\programs\python\python36-32\lib\site-packages (from datefinder==0.6.1)
Collecting regex==2016.01.10 (from datefinder==0.6.1)
Using cached regex-2016.01.10.tar.gz
Requirement already satisfied: pytz in c:\users\sheldonc\appdata\local\programs\python\python36-32\lib\site-packages (from datefinder==0.6.1)
Requirement already satisfied: six>=1.5 in c:\users\sheldonc\appdata\local\programs\python\python36-32\lib\site-packages (from python-dateutil>=2.4.2->datefinder==0.6.1)
Installing collected packages: regex, datefinder
Running setup.py install for regex ... error
Complete output from command c:\users\sheldonc\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\sheldonc\\AppData\\Local\\Temp\\pip-build-iv39m2te\\regex\\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\sheldonc\AppData\Local\Temp\pip-ht1mrgoz-record\install-record.txt --single-version-externally-managed --compile:
c:\users\sheldonc\appdata\local\programs\python\python36-32\lib\site-packages\setuptools\dist.py:334: UserWarning: Normalizing '2016.01.10' to '2016.1.10'
normalized_version,
running install
running build
running build_py
creating build
creating build\lib.win32-3.6
copying Python3\regex.py -> build\lib.win32-3.6
copying Python3\_regex_core.py -> build\lib.win32-3.6
copying Python3\test_regex.py -> build\lib.win32-3.6
running build_ext
building '_regex' 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\sheldonc\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\sheldonc\\AppData\\Local\\Temp\\pip-build-iv39m2te\\regex\\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\sheldonc\AppData\Local\Temp\pip-ht1mrgoz-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\sheldonc\AppData\Local\Temp\pip-build-iv39m2te\regex\
There is hardcoded value of regex version in setup.py. You need to download source code from https://github.com/akoumjian/datefinder and change regex version from regex==2016.01.10 to regex>=2016.01.10 or your latest. e.g.:
line 85: install_requires=['regex>=2016.01.10', 'python-dateutil>=2.4.2', 'pytz'],
Then install with
pip install ./path_to_datefinder_source

Categories