Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Python paths

    Posted Fri July 06, 2018 02:36 AM

    Originally posted by: AS400-Julio


    Hello I like to use my own python library, do you know where I put my python packages to use with my .py files?

     

    For example I have a python test and try to execute

     python2 /tmp/pythontest.py

    The error es

        from Julio.correo import enviarCorreo
    ImportError: No module named Julio.correo

    Do you Know where my Julio folder put in the IFS to run scripts in python2 or python3 via PASE

    Best regards,

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: Python paths

    Posted Fri July 06, 2018 05:38 AM

    Originally posted by: AyappanP


    Generally the modules should be placed in "/opt/freeware/lib/python2.7/site-packages/ " . 


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: Python paths

    Posted Fri July 06, 2018 05:53 AM

    Originally posted by: AS400-Julio


    Hello I have installer a package with this command

    pip2 install appier

    I execute this

    pip2 show appier

    The result is

     pip2 show appier                                                             
     Name: appier                                                                 
     Version: 1.16.8                                                              
     Summary: Appier Framework                                                    
     Home-page: http://appier.hive.pt                                             
     Author: Hive Solutions Lda.                                                  
     Author-email: development@hive.pt                                            
     License: Apache License, Version 2.0                                         
     Location: /QOpenSys/pkgs/lib/python2.7/site-packages                         
     Requires:                                                                    
      [33mYou are using pip version 9.0.1, however version 10.0.1 is available.   
     You should consider upgrading via the 'pip install --upgrade pip' command. [0
     m                                                                           

    The location is: /QOpenSys/pkgs/lib/python2.7/site-packages


    #AIX-Open-Source-Software
    #AIXOpenSource