Failed building wheel for GoogleAppEngineCloudStorageClient - linux

I get this error when trying to install google cloud:
Failed building wheel for GoogleAppEngineCloudStorageClient
Running setup.py clean for GoogleAppEngineCloudStorageClient
Failed to build GoogleAppEngineCloudStorageClient
Installing collected packages: GoogleAppEngineCloudStorageClient
Running setup.py install for GoogleAppEngineCloudStorageClient ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jZCvYX/GoogleAppEngineCloudStorageClient/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-LgTihN-record/install-record.txt --single-version-externally-managed --compile --user --prefix= --home=/tmp/tmprq5a80:
running install
error: can't combine user with prefix, exec_prefix/home, or install_(plat)base
this is installed on the /lib folder, I also made a requirements.txt
as well as the appengine_config.py.
Also I am using python 2.7, on linux

use:
pip install --user --install-option="--prefix=" <package_name>
However, better to install the whole Google Cloud SDK as it includes: command line tools (gcloud, gsutil, bq) in addition to client libraries.

Related

install torch-cluster==1.5.4 and torch-scatter==2.0.4 and torch-sparse==0.6.1 and torch-spline-conv==1.2.0 ERROR

I have a problem. For example, when installing torch-cluster1.5.4, I encountered the following error while installing Torch1.4. Please help me. Thank you.
''' Rolling back uninstall of torch-cluster
Failed building wheel for torch-cluster
Command ""C:\Program Files\Python36\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\oshida\AppData\Local\Temp\pip-install-3ik1w364\torch-cluster\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\oshida\AppData\Local\Temp\pip-record-d061wjr6\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\oshida\AppData\Local\Temp\pip-install-3ik1w364\torch-cluster
You are using pip version 18.1, however version 22.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.'''

Pip issue installing mahotas

I am new to python. I am trying to install Mahotas package in my CentOS machine.
Command: sudo pip3 install mahotas
Python version: 3.6.8
Os: CentOS 8
Error:
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-e01qget1/mahotas/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-_ao2xjit-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-e01qget1/mahotas/
Author of mahotas here. There is too little information to figure out what is wrong.
I recommend you try using conda to install mahotas: https://anaconda.org/conda-forge/mahotas

PyAudio installation error in python windows

Please check the screenshot below. when I installed PyAudio in python3.7.0 with pip 19.3 below error comes. And also unable to install in pycharm IDE.
python 3.7.0 32 bits, pip 19.3
""C:\Users\Bhiba Kumari\PycharmProjects\mozilla\venv\Scripts\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\BHIBAK~1\\AppData\\Local\\Temp\\pip-install-bwt0kpug
\\PyAudio\\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\BHIBAK~1\AppD
ata\Local\Temp\pip-record-ti2oers0\install-record.txt --single-version-externally-managed --compile --install-headers "C:\Users\Bhiba Kumari\PycharmProjects\mozilla\venv\include\site\python
3.7\PyAudio"" failed with error code 1 in C:\Users\BHIBAK~1\AppData\Local\Temp\pip-install-bwt0kpug\PyAudio\
I also tried with .whl file no use.
use this to install pyaudio:
pip install pipwin
pipwin install pyaudio
Note-1: pyaudio has a dependency of portaudio which you need to install before install pyaudio. Install portaudio in windows is a bit of headache for amatures(BTW this has not much to do with your skill). So the above method.

install python talib library in azure kudu

I keep failing to install talib library in Azure's Kudu Debug console.
From D:\home\python364x86 I ran python -m pip install Ta-Lib but got this error
Command "D:\home\python364x86\python.exe -u -c "import setuptools, tokenize;file='D:\local\Temp\pip-build-az9dvnof\talib\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record D:\local\Temp\pip-1737i4ol-record\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in D:\local\Temp\pip-build-az9dvnof\talib\
Anyone successfully installed talib in Kudu debug console?

Error while installing pymssql on windows 10

I'm getting "The system cannot find the path specified" error.
Could anyone give me some hint about how to make the path correct?
I've never encountered this type of error before while I'm using pip.
C:\Users\ahkim>pip install pymssql
Collecting pymssql
Downloading pymssql-2.1.3.tar.gz (897kB)
100% |████████████████████████████████| 901kB 1.9MB/s
Building wheels for collected packages: pymssql
Running setup.py bdist_wheel for pymssql ... error
Complete output from command C:\Users\ahkim\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ahkim\\AppData\\Local\\Temp\\pip-build-mfok55b5\\pymssql\\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 C:\Users\ahkim\AppData\Local\Temp\tmp127kpd9epip-wheel- --python-tag cp36:
setup.py: platform.system() => 'Windows'
setup.py: platform.architecture() => ('64bit', 'WindowsPE')
running bdist_wheel
running build
running build_ext
building '_mssql' extension
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'
----------------------------------------
Failed building wheel for pymssql
Running setup.py clean for pymssql
Failed to build pymssql
Installing collected packages: pymssql
Running setup.py install for pymssql ... error
Complete output from command C:\Users\ahkim\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ahkim\\AppData\\Local\\Temp\\pip-build-mfok55b5\\pymssql\\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\ahkim\AppData\Local\Temp\pip-r247wrkl-record\install-record.txt --single-version-externally-managed --compile:
setup.py: platform.system() => 'Windows'
setup.py: platform.architecture() => ('64bit', 'WindowsPE')
running install
running build
running build_ext
cythoning _mssql.pyx to _mssql.c
warning: _mssql.pyx:143:4: Exception already a builtin Cython type
building '_mssql' extension
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'
----------------------------------------
Command "C:\Users\ahkim\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ahkim\\AppData\\Local\\Temp\\pip-build-mfok55b5\\pymssql\\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\ahkim\AppData\Local\Temp\pip-r247wrkl-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ahkim\AppData\Local\Temp\pip-build-mfok55b5\pymssql\
look this https://learn.microsoft.com/en-us/sql/connect/python/pymssql/step-1-configure-development-environment-for-pymssql-python-development
For choose right file to download you must determine number of cp
Ex : cp27 , cp36 and so on
import pip
print(pip.pep425tags.get_supported())
like this :
enter image description here
Person who using Python through anaconda, should run below code in anaconda command line, as admin.
conda install pymssql.
I have testing and worked fine, this will take roughly 20-30 mins while it will also install all other dependencies.

Resources