Welcome Guest.

1Answers

How to install Python’s own module through PIP

Asked by: Todd Ross 34 views IT September 23, 2022

as above, more detailed

1 Answers

  1. +6Votes  

    First, first pack your module into .whl file

    Package packaged in the package needs to include ***. MD, License [non -necessary] and ***. py files. The three are described documents, licenses, and Python Setuptools to install the construction script of the Package.
    ***. PY contains information corresponding to the Package (such as the name, version, author of the Package) and the program files and data that the Package should contain.

    The ***. PY contains various information installed, such as:

    Import OS
    From Setuptools Import Setup, Find_packages
    Setup (
    /> Name = ‘The file name of the packed package after packing’,
    Version = ‘version number’,
    description = ‘explanatory’,
    livense = ‘copyright information’,
    authorr = ‘Author’,
    author_email = ‘Author mail’,
    Packages = ‘The target file catalog to be packaged’,
    py_modules = ‘depends on the module name of the packaging’, influde_package_data = True,
    python_requires = ‘> = 3.6’,
    Install_requires = [‘numpy> = 1.16.4’, ‘scipy> = 1.3.1’, ‘xarray> = 0.15.0’],
    Data_files = [],
    Classifiers = [
    “Programming Language :: python :: 3”,
    “Programming Language :: python :: 3.6”,
    “Programming Language :: python :: 3.7 “,
    ” Programming Language :: python :: 3.8 “,
    ” Programming Language :: python :: 3.9 “,
    License :: oli approved ::::::::: Gnu general public livense (gpl) “,
    ” Development Status :: 4 -beta “
    ],
    scripts = [],
    )

    Of course , And other information (refer to the official website Packaging. ***. ORG), and then use

    python ***. Py Check check

    Last

    Python ***. Py Bdist_wheel

    Pack into WHL

    Two, install the directory name of the local WSL

    pip install/package /Package Name. WSL

    (Unless you are a professional developer, there is generally no need to do this. The package file itself is PY, and the current project or the system can be used by the directory. Professional, WHL allows you to release your bag)

    Louise Morris- September 23, 2022 |

Answer Question