Can't install Ball module - python

I am having a lot of trouble installing the Ball module, im running latest version of pip, python and im on windows 10. here is the error:
pip install ball
`Collecting ball
Using cached Ball-0.2.9.tar.gz (348 kB)
Requirement already satisfied: numpy in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from ball) (1.19.5)
Requirement already satisfied: scikit-learn in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from ball) (0.24.0)
Requirement already satisfied: pygam in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from ball) (0.8.0)
Requirement already satisfied: progressbar2 in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from pygam->ball) (3.53.1)
Requirement already satisfied: scipy in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from pygam->ball) (1.6.0)
Requirement already satisfied: future in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from pygam->ball) (0.18.2)
Requirement already satisfied: six in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from progressbar2->pygam->ball) (1.15.0)
Requirement already satisfied: python-utils>=2.3.0 in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from progressbar2->pygam->ball) (2.4.0)
Requirement already satisfied: joblib>=0.11 in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn->ball) (1.0.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn->ball) (2.1.0)
Using legacy 'setup.py install' for ball, since package 'wheel' is not installed.
Installing collected packages: ball
Running setup.py install for ball ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\davis\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Davis\\AppData\\Local\\Temp\\pip-install-0abie82x\\ball_2fc4c2cf6ca545768116429af36f95b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\Davis\\AppData\\Local\\Temp\\pip-install-0abie82x\\ball_2fc4c2cf6ca545768116429af36f95b5\\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\Davis\AppData\Local\Temp\pip-record-ly4riu7c\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\davis\appdata\local\programs\python\python39\Include\ball'
cwd: C:\Users\Davis\AppData\Local\Temp\pip-install-0abie82x\ball_2fc4c2cf6ca545768116429af36f95b5\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\Ball
copying Ball\bcorsis.py -> build\lib.win-amd64-3.9\Ball
copying Ball\bcov.py -> build\lib.win-amd64-3.9\Ball
copying Ball\bd.py -> build\lib.win-amd64-3.9\Ball
copying Ball\cball.py -> build\lib.win-amd64-3.9\Ball
copying Ball\utilize.py -> build\lib.win-amd64-3.9\Ball
copying Ball\wrap_c.py -> build\lib.win-amd64-3.9\Ball
copying Ball\__init__.py -> build\lib.win-amd64-3.9\Ball
running build_ext
building 'Ball._cball' extension
swigging src/cball.i to src/cball_wrap.c
swig.exe -python -o src/cball_wrap.c src/cball.i
error: command 'swig.exe' failed: None
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\davis\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Davis\\AppData\\Local\\Temp\\pip-install-0abie82x\\ball_2fc4c2cf6ca545768116429af36f95b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\Davis\\AppData\\Local\\Temp\\pip-install-0abie82x\\ball_2fc4c2cf6ca545768116429af36f95b5\\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\Davis\AppData\Local\Temp\pip-record-ly4riu7c\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\davis\appdata\local\programs\python\python39\Include\ball' Check the logs for full command output.`

Related

How to install wordcloud for python?

I am trying to visualise data using word cloud. However when I used pip install wordcloud, I got the following error:
D:\...>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\ameli\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from wordcloud) (1.19.5
)
Requirement already satisfied: pillow in c:\users\ameli\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from wordcloud) (8.1.0)
Requirement already satisfied: matplotlib in c:\users\ameli\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from wordcloud) (3.3.3)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\ameli\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from matplotlib
->wordcloud) (2.8.1)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\ameli\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from matplotlib->w
ordcloud) (1.3.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\users\ameli\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packa
ges (from matplotlib->wordcloud) (2.4.7)
Requirement already satisfied: cycler>=0.10 in c:\users\ameli\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from matplotlib->wordcl
oud) (0.10.0)
Requirement already satisfied: six in c:\users\ameli\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from cycler>=0.10->matplotlib->w
ordcloud) (1.15.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\ameli\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ameli\\Ap
pData\\Local\\Temp\\pip-install-i40_agzl\\wordcloud_591db346adc745a0a41bcad116c4a453\\setup.py'"'"'; __file__='"'"'C:\\Users\\ameli\\AppData\\Local\\Temp\\pip-install-i40_agzl\\wordcloud_591db346adc745a0a41bc
ad116c4a453\\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\ameli\AppData\Local\Temp\pip-record-odcy4xrk\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\ameli\AppData\Local\Packages\PythonSoftwareFo
undation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\wordcloud'
cwd: C:\Users\ameli\AppData\Local\Temp\pip-install-i40_agzl\wordcloud_591db346adc745a0a41bcad116c4a453\
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 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\ameli\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.ar
gv[0] = '"'"'C:\\Users\\ameli\\AppData\\Local\\Temp\\pip-install-i40_agzl\\wordcloud_591db346adc745a0a41bcad116c4a453\\setup.py'"'"'; __file__='"'"'C:\\Users\\ameli\\AppData\\Local\\Temp\\pip-install-i40_agzl
\\wordcloud_591db346adc745a0a41bcad116c4a453\\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\ameli\AppData\Local\Temp\pip-record-odcy4xrk\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\ameli\AppDat
a\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\wordcloud' Check the logs for full command output.
Wordcloud is not a pure Python project as it has some C code. C code needs to be built for different operating systems and Python versions.
Normally when you run pip install wordcloud, pip tries to find a built package (aka wheel) for your OS and Python but if it can't find, it downloads the source code and tries to build (compile) it.
But this process obviously requires a C compiler which is not supposed to be in a Python developer's system.
I built the package for several configurations and made them public.
You can directly install from there.
For example if you use Windows and Python 3.10, run pip install https://github.com/sulunemre/word_cloud/releases/download/2/wordcloud-0.post1+gd8241b5-cp310-cp310-win_amd64.whl
As mentioned in comments, downloading the build tools from this link and running the .exe file solved the problem.
Installing wordcloud for python
Wordcloud installation throws error if not satified any of these steps:
Installing the dependencies of wordcloud : matplotlib, pillow, numpy, pandas
Checking for version of Python used
Checking for version of operating system
Checking for version of wordcloud satisfying the version of Python and operating system used
Missing to check version of wordcloud satisfying the version of python and operating system used doesn't help building wheel for installing wordcloud.
Current latest version of wordcloud is 1.8.1
Installing wordcloud:
pip install wordcloud==1.8.1
The code is tested against Python 2.7, 3.4, 3.5, 3.6 and 3.7.

Unable to install proxybroker in PIP

I am trying to install proxybroker using PIP on Python 3.9.1, but I am getting the the following error, when I entered pip install proxybroker:-
Collecting proxybroker
Using cached proxybroker-0.3.2-py3-none-any.whl (1.6 MB)
Requirement already satisfied: aiohttp>=3.5.4 in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from proxybroker) (3.7.3)
Requirement already satisfied: attrs==19.1.0 in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from proxybroker) (19.1.0)
Requirement already satisfied: maxminddb>=1.4.1 in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from proxybroker) (2.0.3)
Collecting aiodns>=2.0.0
Using cached aiodns-2.0.0-py2.py3-none-any.whl (4.8 kB)
Collecting pycares>=3.0.0
Using cached pycares-3.1.1.tar.gz (233 kB)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from aiohttp>=3.5.4->proxybroker) (5.1.0)
Requirement already satisfied: chardet<4.0,>=2.0 in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from aiohttp>=3.5.4->proxybroker) (3.0.4)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from aiohttp>=3.5.4->proxybroker) (1.6.3)
Requirement already satisfied: async-timeout<4.0,>=3.0 in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from aiohttp>=3.5.4->proxybroker) (3.0.1)
Requirement already satisfied: typing-extensions>=3.6.5 in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from aiohttp>=3.5.4->proxybroker) (3.7.4.3)
Requirement already satisfied: cffi>=1.5.0 in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from pycares>=3.0.0->aiodns>=2.0.0->proxybroker) (1.14.5)
Requirement already satisfied: pycparser in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from cffi>=1.5.0->pycares>=3.0.0->aiodns>=2.0.0->proxybroker) (2.20)
Requirement already satisfied: idna>=2.0 in c:\users\jshs\appdata\local\programs\python\python39\lib\site-packages (from yarl<2.0,>=1.0->aiohttp>=3.5.4->proxybroker) (2.10)
Using legacy 'setup.py install' for pycares, since package 'wheel' is not installed.
Installing collected packages: pycares, aiodns, proxybroker
Running setup.py install for pycares ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\jshs\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\JSHS\\AppData\\Local\\Temp\\pip-install-kpsxgm2p\\pycares_9e37196811bb4121bae779a1fb0ccf7f\\setup.py'"'"'; __file__='"'"'C:\\Users\\JSHS\\AppData\\Local\\Temp\\pip-install-kpsxgm2p\\pycares_9e37196811bb4121bae779a1fb0ccf7f\\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\JSHS\AppData\Local\Temp\pip-record-c7u1qn2z\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\jshs\appdata\local\programs\python\python39\Include\pycares'
cwd: C:\Users\JSHS\AppData\Local\Temp\pip-install-kpsxgm2p\pycares_9e37196811bb4121bae779a1fb0ccf7f\
Complete output (26 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\pycares
copying src\pycares\errno.py -> build\lib.win-amd64-3.9\pycares
copying src\pycares\utils.py -> build\lib.win-amd64-3.9\pycares
copying src\pycares\_version.py -> build\lib.win-amd64-3.9\pycares
copying src\pycares\__init__.py -> build\lib.win-amd64-3.9\pycares
copying src\pycares\__main__.py -> build\lib.win-amd64-3.9\pycares
running build_ext
generating cffi module 'build\\temp.win-amd64-3.9\\Release\\_cares.c'
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
building '_cares' extension
creating build\temp.win-amd64-3.9\Release\build
creating build\temp.win-amd64-3.9\Release\build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release\build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\deps
creating build\temp.win-amd64-3.9\Release\deps\c-ares
creating build\temp.win-amd64-3.9\Release\deps\c-ares\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCARES_PULL_WS2TCPIP_H=1 -Ic:\users\jshs\appdata\local\programs\python\python39\include -Ic:\users\jshs\appdata\local\programs\python\python39\include -Ideps\c-ares\src -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include /Tcbuild\temp.win-amd64-3.9\Release\_cares.c /Fobuild\temp.win-amd64-3.9\Release\build\temp.win-amd64-3.9\Release\_cares.obj
_cares.c
c:\users\jshs\appdata\local\programs\python\python39\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\jshs\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\JSHS\\AppData\\Local\\Temp\\pip-install-kpsxgm2p\\pycares_9e37196811bb4121bae779a1fb0ccf7f\\setup.py'"'"'; __file__='"'"'C:\\Users\\JSHS\\AppData\\Local\\Temp\\pip-install-kpsxgm2p\\pycares_9e37196811bb4121bae779a1fb0ccf7f\\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\JSHS\AppData\Local\Temp\pip-record-c7u1qn2z\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\jshs\appdata\local\programs\python\python39\Include\pycares' Check the logs for full command output.
It says that Microsoft build tools are missing, so I installed that too, but still not working!
Please help if possible!
have you tried to downgrade the python version?
I suspect it is because of the version that you are using.
From this link, it seems that it is compatible to python 3.5 or 3.6.
https://pypi.org/project/proxybroker/

ModuleNotFoundError: No module named 'pyttsx3'

I am running a program in Sublime text and I get the error:
ModuleNotFoundError: No module named 'pyttsx3'
I opened Command Prompt and typed in: pip install pyttsx3 and that's what I get
Collecting pyttsx3
Using cached pyttsx3-2.90-py3-none-any.whl (39 kB)
Collecting comtypes; platform_system == "Windows"
Using cached comtypes-1.1.7.zip (180 kB)
Requirement already satisfied: pywin32; platform_system == "Windows" in c:\users\claud\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyttsx3) (228)
Requirement already satisfied: pypiwin32; platform_system == "Windows" in c:\users\claud\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyttsx3) (223)
Using legacy 'setup.py install' for comtypes, since package 'wheel' is not installed.
Installing collected packages: comtypes, pyttsx3
Running setup.py install for comtypes ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\claud\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\claud\\AppData\\Local\\Temp\\pip-install-zam0bo68\\comtypes\\setup.py'"'"'; __file__='"'"'C:\\Users\\claud\\AppData\\Local\\Temp\\pip-install-zam0bo68\\comtypes\\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\claud\AppData\Local\Temp\pip-record-zh7s3m6p\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\claud\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\comtypes'
cwd: C:\Users\claud\AppData\Local\Temp\pip-install-zam0bo68\comtypes\
I did fix it.
First I upgraded the version of pip by going here
C:\Users\claud\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe
And followed this instructions:
https://pip.pypa.io/en/stable/installing/
After that it was easy to do pip install pyttsx3

Error while installing dependencies for a project [duplicate]

This question already has answers here:
Pip error: Microsoft Visual C++ 14.0 is required
(13 answers)
Closed 2 years ago.
(env) C:\Users\CSUFTitan\Desktop\Final_Starter\backend>pip3 install -r requirements.txt
Requirement already satisfied: aniso8601==6.0.0 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 1)) (6.0.0)
Requirement already satisfied: Click==7.0 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 2)) (7.0)
Requirement already satisfied: Flask==1.0.3 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 3)) (1.0.3)
Requirement already satisfied: Flask-Cors==3.0.7 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 4)) (3.0.7)
Requirement already satisfied: Flask-RESTful==0.3.7 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 5)) (0.3.7)
Requirement already satisfied: Flask-SQLAlchemy==2.4.0 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 6)) (2.4.0)
Requirement already satisfied: itsdangerous==1.1.0 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 7)) (1.1.0)
Requirement already satisfied: Jinja2==2.10.1 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 8)) (2.10.1)
Requirement already satisfied: MarkupSafe==1.1.1 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 9)) (1.1.1)
Collecting psycopg2-binary==2.8.2
Using cached psycopg2-binary-2.8.2.tar.gz (369 kB)
Requirement already satisfied: pytz==2019.1 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 11)) (2019.1)
Requirement already satisfied: six==1.12.0 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 12)) (1.12.0)
Requirement already satisfied: SQLAlchemy==1.3.4 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 13)) (1.3.4)
Requirement already satisfied: Werkzeug==0.15.4 in c:\users\csuftitan\desktop\final_starter\env\lib\site-packages (from -r requirements.txt (line 14)) (0.15.4)
Using legacy setup.py install for psycopg2-binary, since package 'wheel' is not installed.
Installing collected packages: psycopg2-binary
Attempting uninstall: psycopg2-binary
Found existing installation: psycopg2-binary 2.8.5
Uninstalling psycopg2-binary-2.8.5:
Successfully uninstalled psycopg2-binary-2.8.5
Running setup.py install for psycopg2-binary ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\csuftitan\desktop\final_starter\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\CSUFTitan\\AppData\\Local\\Temp\\pip-install-1nbc6jyl\\psycopg2-binary\\setup.py'"'"'; __file__='"'"'C:\\Users\\CSUFTitan\\AppData\\Local\\Temp\\pip-install-1nbc6jyl\\psycopg2-binary\\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\CSUFTitan\AppData\Local\Temp\pip-record-k_sqf8bd\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\csuftitan\desktop\final_starter\env\include\site\python3.8\psycopg2-binary'
cwd: C:\Users\CSUFTitan\AppData\Local\Temp\pip-install-1nbc6jyl\psycopg2-binary\
Complete output (22 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\psycopg2
copying lib\compat.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\errorcodes.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\errors.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\extensions.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\extras.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\pool.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\sql.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\tz.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\_ipaddress.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\_json.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\_lru_cache.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\_range.py -> build\lib.win-amd64-3.8\psycopg2
copying lib\__init__.py -> build\lib.win-amd64-3.8\psycopg2
running build_ext
building 'psycopg2._psycopg' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Rolling back uninstall of psycopg2-binary
Moving to c:\users\csuftitan\desktop\final_starter\env\lib\site-packages\psycopg2\
from C:\Users\CSUFTitan\Desktop\Final_Starter\env\Lib\site-packages\~sycopg2
Moving to c:\users\csuftitan\desktop\final_starter\env\lib\site-packages\psycopg2_binary-2.8.5.dist-info\
from C:\Users\CSUFTitan\Desktop\Final_Starter\env\Lib\site-packages\~sycopg2_binary-2.8.5.dist-info
ERROR: Command errored out with exit status 1: 'c:\users\csuftitan\desktop\final_starter\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\CSUFTitan\\AppData\\Local\\Temp\\pip-install-1nbc6jyl\\psycopg2-binary\\setup.py'"'"'; __file__='"'"'C:\\Users\\CSUFTitan\\AppData\\Local\\Temp\\pip-install-1nbc6jyl\\psycopg2-binary\\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\CSUFTitan\AppData\Local\Temp\pip-record-k_sqf8bd\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\csuftitan\desktop\final_starter\env\include\site\python3.8\psycopg2-binary'
Check the logs for full command output.
Instead of
pip install psycopg2
try to run
pip install psycopg2-binary
or
pip install psycopg2-binary --user
or
You can find a compiled version of psycopg2 here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
download binary file from this link and do easy_install.

I cant install torch-sparse in Google Colab

I am trying to install torch-sparse in Google Colab using ! pip install torch-sparse, but i am getting the following erorr:
Collecting torch-sparse
Using cached https://files.pythonhosted.org/packages/0e/bf/6242893c898621e7e4756e1ad298e903df6dfae208aec1c32adf8cfd1f7f/torch_sparse-0.4.4.tar.gz
Requirement already satisfied: scipy in /usr/local/lib/python3.6/dist-packages (from torch-sparse) (1.4.1)
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib/python3.6/dist-packages (from scipy->torch-sparse) (1.17.5)
Building wheels for collected packages: torch-sparse
Building wheel for torch-sparse (setup.py) ... error
ERROR: Failed building wheel for torch-sparse
Running setup.py clean for torch-sparse
Failed to build torch-sparse
Installing collected packages: torch-sparse
Running setup.py install for torch-sparse ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h3_oysnr/torch-sparse/setup.py'"'"'; __file__='"'"'/tmp/pip-install-h3_oysnr/torch-sparse/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-0xvimdk5/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
How can I fix it?
You need to go into Runtime -> Change runtime type and choose a GPU as the Hardware accelerator. After this it should install fine.
Collecting torch-sparse
Downloading https://files.pythonhosted.org/packages/0e/bf/6242893c898621e7e4756e1ad298e903df6dfae208aec1c32adf8cfd1f7f/torch_sparse-0.4.4.tar.gz
Requirement already satisfied: scipy in /usr/local/lib/python3.6/dist-packages (from torch-sparse) (1.4.1)
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib/python3.6/dist-packages (from scipy->torch-sparse) (1.17.5)
Building wheels for collected packages: torch-sparse
Building wheel for torch-sparse (setup.py) ... done
Created wheel for torch-sparse: filename=torch_sparse-0.4.4-cp36-cp36m-linux_x86_64.whl size=4956229 sha256=0463ad1735eb37f9f555b7c83b32bd43cfee20e312061e8efca43f2c29158fbb
Stored in directory: /root/.cache/pip/wheels/8a/1a/6f/88952b83ebba6b2742909fcd6e320e3a99fc7d2a2428391f8c
Successfully built torch-sparse
Installing collected packages: torch-sparse
Successfully installed torch-sparse-0.4.4

Categories

Resources