How to install the platform module in python, how to install the python module

Hello everyone, the editor is here to answer the following questions for you, how to install the platform module in python, how to install the python module, let us take a look now!

Source code download: Source code related to this article

I have the following directory structure: /modules/

/modules/setup.py

/modules/setup.cfg

/modules/module1/

/modules/module1/__init__.py

/modules/module1/tool1/__init__.py

/modules/module1/tool1/tool1.py

/modules/module2/

/modules/module2/__init__.py

/modules/module2/tool2/__init__.py

/modules/module2/tool2/tool2.py

/modules/module2/tool3/__init__.py

/modules/module2/tool3/tool3.py

I want to use settings.py as well as settings.cfg and then import them like this:

^{pr2}$

Here are my installation files:

in setup.py in import setuptools

setuptools.setup(

setup_requires=['paramiko>=2.0.1'],

paramiko=True)

In settings.cfg in [metadata]

name = my_project

summary = my project modules

[files]

packages =

module1

module2

Failed when trying to install package: /modules# pip install -e .

Obtaining file:///modules

Installing collected packages: UNKNOWN

Found existing installation: UNKNOWN 0.0.0

Can't uninstall 'UNKNOWN'. No files were found to uninstall.

Running setup.py develop for UNKNOWN

Successfully installed UNKNOWN

Guess you like

Origin blog.csdn.net/chatgpt001/article/details/135452945