Open-source Languages & Tools for z/OS

 View Only
  • 1.  Pip does not work post installation

    ROCKETEER
    Posted 05-29-2019 03:31

    HI,
    I installed python3.6 and it had pip 9.0.1 installed. Since it suggested me to upgrade pip, I upgraded and then on, the executable always fail to launch.

    I had it uninstalled and installed the old version as:
    $ python -m pip install pip==9.0.1
    Collecting pip==9.0.1
    Downloading https://files.pythonhosted.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3
    /pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    |################################| 1.3MB 5.1MB/s
    Installing collected packages: pip
    Found existing installation: pip 19.1.1
    Uninstalling pip-19.1.1:
    Successfully uninstalled pip-19.1.1
    Successfully installed pip-9.0.1

    However, the same problem persist.
    $ pip -v
    ?: pip 1: FSUM7351 not found
    ?: pip 1: FSUM7351 not found
    pip 1: FSUM7343 cannot open " ?Ç Ç _ ? Ç/ " for output: EDC5129I No such file or directory.
    pip 1: FSUM7343 cannot open "/_ ^^ÇÇ^_/ " for output: EDC5129I No such file or directory.
    pip 1: syntax error: got ), expecting Newline

    I am new to python on z/OS and any help is greatly appreciated.



  • 2.  RE: Pip does not work post installation

    ROCKETEER
    Posted 05-30-2019 07:34

    Hi,

    You can install pip from downloaded python packages directory by using install_package script included in bin directory of the installation.

    Please try the following:
    pip uninstall pip
    cd $PYTHON_HOME
    bin/install_package $PKGS_BASE/pip-9.0.1-py36_1 $PYTHON_HOME
    cd $PYTHON_HOME/bin
    rm -f pip 2> /dev/null
    ln -s pip3 pip

    Thanks,
    Sergey