Pip issue installing mahotas - python-3.x

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

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.'''

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.

Can't pip install lxml

I am getting this error [I have installed setuptools already]
Command C:\Python34\python.exe -c "import setuptools,
tokenize;__file__='C:\Users\YASHOR~1\AppData\Local\Temp\pip_build_yashoraja\lxml\setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__,
'exec'))" install --record
C:\Users\YASHOR~1\AppData\Local\Temp\pip-9akmmco4-record\install-record.txt
--single-version-externally-managed --compile failed with error code 1 in C:\Users\YASHOR~1\AppData\Local\Temp\pip_build_yashoraja\lxml
You need to build it on Windows.
Instructions and binaries on their web site:
https://lxml.de/installation.html
https://lxml.de/installation.html#source-builds-on-ms-windows
Personally, I had a similar issue with pyaudio and I just gave up and did my project on Linux.

How to understand this Pygame error?

I'm trying to install Pygame on My computer. I am running Mac OSX with Python 3.7.0. I successfully installed pip3, but when I try to install Pygame using sudo pip3 install hg+http://bitbucket.org/pygame/pygame, I get the following error:
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-arxkd3yz/pygame/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/tmp/pip-record-iq00o_g3/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-arxkd3yz/pygame/
What is the reason for this error, and a fix for the same?

Error while installing scrapy?

i use python 3.6 , and when i try to install scrapy using pip on cmd the output was as shown here :
Command ""c:\program files\python36\python.exe" -u -c "import
setuptools,
tokenize;__file__='C:\\Users\\Sarah\\AppData\\Local\\Temp\\pip-build-
hql11prt\\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\Sarah\AppData\Local\Temp\pip-b2cmfpf2-record\install-
record.txt --single-version-externally-managed --compile" failed with
error code 1 in C:\Users\Sarah\AppData\Local\Temp\pip-build-
hql11prt\Twisted\
how can i solve this problem ?
Download Twisted from the website below and install it first, and then pip install scrapy
https://www.lfd.uci.edu/~gohlke/pythonlibs/

Resources