You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installation failes, during building _psutil_common.o some unknown flags to gcc compiler are used (unrecognized command line option '-KPIC')
/usr/bin/gcc --version
gcc (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Command "/usr/bin/python3.5 -u -c "import setuptools, tokenize;file='/tmp/pip-build-b_tcty4v/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-jdwnms7r-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-b_tcty4v/psutil/
You are using pip version 8.1.1, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Exception ignored in: <function WeakValueDictionary.init..remove at 0x1fff7a0e861268>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
psutil is used for my Project solaris_exporter , I want to upgrade it to Python 3, currently with psutil 5.7.0 and Python 2.7 it works fine.
The text was updated successfully, but these errors were encountered:
gcc (GCC) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Collecting psutil
Using cached psutil-5.9.0.tar.gz (478 kB)
Using legacy 'setup.py install' for psutil, since package 'wheel' is not installed.
Installing collected packages: psutil
Running setup.py install for psutil ... done
Successfully installed psutil-5.9.0
By the way, gcc-c-9 is not available on Solaris 11.4.4, so it seems to be impossible to install psutil on old OS.
Summary
Description
Installation failes, during building _psutil_common.o some unknown flags to gcc compiler are used (unrecognized command line option '-KPIC')
This link was made due to this instruction:
psutil is used for my Project solaris_exporter , I want to upgrade it to Python 3, currently with psutil 5.7.0 and Python 2.7 it works fine.
The text was updated successfully, but these errors were encountered: