I am new to open source packaging on AIX. Some background, server is at AIX 7100-05-04, with YUM configured to manage RPM packages.
I have installed some python modules in the past, without much issue, but am using this - Installing and configuring Python machine learning packages on IBM AIX – IBM Developer - to add Pandas. I've encountered a number of issues after installing the requisite RPM packages. After a fair amount of research, I determined the libiconv RPM was backlevel. Once updated, I stopped seeing the errors that was causing NumPy to fail.
Now, I appear to have run into this:
root@akxferp2:/opt/freeware/bin> python3 -m pip install numpy
Traceback (most recent call last):
File "/opt/freeware/lib64/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/freeware/lib64/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/freeware/lib/python3.7/site-packages/pip/__main__.py", line 23, in <module>
from pip._internal.cli.main import main as _main # isort:skip # noqa
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
from pip._internal.cli.progress_bars import BAR_TYPES
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/progress_bars.py", line 12, in <module>
from pip._internal.utils.logging import get_indentation
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/utils/logging.py", line 18, in <module>
from pip._internal.utils.misc import ensure_dir
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 31, in <module>
from pip._internal.locations import (
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/locations/__init__.py", line 9, in <module>
from pip._internal.models.scheme import SCHEME_KEYS, Scheme
ImportError: cannot import name 'SCHEME_KEYS' from 'pip._internal.models.scheme' (/opt/freeware/lib/python3.7/site-packages/pip/_internal/models/scheme.py)
I have come across a couple recommendations to create a "virtual environent" for this install. I am hoping someone can confirm this is the solution to the above. In addition, I am unfamiliar with what it means to create a virtual environment for python, accessibility, etc... If anyone is able to point me to useful documentation on the subject, I'd be grateful.
Thanks
Tom
------------------------------
Thomas Crucian
------------------------------
#AIXOpenSource