× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I just went through this exercise here at my shop.

First thing - go to https://ibmioss.ryver.com and get yourself enrolled - Someone may need to invite you to join the site. (I'm not clear on this.)
There are plenty of folks at Ryver willing to help and they have a Python specific forum.

I am not qualified to walk you through the steps, I stumbled and stubbed my toes a few times.

But ...
You will want to install Python on your IBM I via iACS and YUM. Again, there is more information at Ryver. I downloaded python3.9

I downloaded openpyxl to my IBM I and moved the entire folder into /QOpenSys/pkgs/lib/python3.9/openpyxl

When I want to execute a python script and be sure I run the correct version I call python using the entire path '/QOpenSys/pkgs/bin/python3.9'



-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of eric bothes
Sent: Tuesday, September 24, 2024 9:45 AM
To: Midrange-L <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: pip error

we are on 7.5 latest ptf's. I'm trying to install the following:

pip3 install openpyxl

and getting the following error. No matter what i try typing after pip3, the same error get shown.

Traceback (most recent call last):
  File "/QOpenSys/usr/bin/pip3", line 6, in <module>
    from pip import main
  File
"/QOpenSys/QIBM/ProdData/OPS/Python3.4/lib/python3.4/vendor-packages/pip/__init__.py",
line 16, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File
"/QOpenSys/QIBM/ProdData/OPS/Python3.4/lib/python3.4/vendor-packages/pip/vcs/subversion.py",
line 9, in <module>
    from pip.index import Link
  File
"/QOpenSys/QIBM/ProdData/OPS/Python3.4/lib/python3.4/vendor-packages/pip/index.py",
line 30, in <module>
    from pip.wheel import Wheel, wheel_ext
  File
"/QOpenSys/QIBM/ProdData/OPS/Python3.4/lib/python3.4/vendor-packages/pip/wheel.py",
line 39, in <module>
    from pip._vendor.distlib.scripts import ScriptMaker
  File
"/QOpenSys/QIBM/ProdData/OPS/Python3.4/lib/python3.4/vendor-packages/pip/_vendor/distlib/scripts.py",
line 14, in <module>
    from .compat import sysconfig, detect_encoding, ZipFile
  File
"/QOpenSys/QIBM/ProdData/OPS/Python3.4/lib/python3.4/vendor-packages/pip/_vendor/distlib/compat.py",
line 66, in <module>
    from urllib.request import (urlopen, urlretrieve, Request, url2pathname,

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.