python-wheel

python install wheel leads to import error

﹥>﹥吖頭↗ 提交于 2021-01-03 08:38:52
问题 I'd like to make a wheel binary distribution, intstall it and then import it in python. My steps are I first create the wheel: python ./my_package/setup.py bdist_wheel I install the wheel: pip install ./dist/*.whl I try to import the package: python -c"import my_package" This leads to the error: ImportError: No module named 'my_package' Also, when I do pip list , the my_package is listed. However, when I run which my_packge , nothing is shown. When I run pip install ./my_package/ everything

Should setuptools be in the setup_requires entry of setup.cfg files in Python?

南笙酒味 提交于 2020-12-30 06:18:23
问题 The importlib_resources backport for Python < 3.7 of the importlib.resources standard library module has the following section in the setup.cfg file: [options] python_requires = >=2.7,!=3.0,!=3.1,!=3.2,!=3.3 setup_requires = setuptools wheel install_requires = pathlib2; python_version < '3' typing; python_version < '3.5' packages = find: Why does setup_requires include setuptools ? This does not seem to make sense since: the first line of the setup.py file imports setuptools , so by the time

Should setuptools be in the setup_requires entry of setup.cfg files in Python?

烂漫一生 提交于 2020-12-30 06:17:49
问题 The importlib_resources backport for Python < 3.7 of the importlib.resources standard library module has the following section in the setup.cfg file: [options] python_requires = >=2.7,!=3.0,!=3.1,!=3.2,!=3.3 setup_requires = setuptools wheel install_requires = pathlib2; python_version < '3' typing; python_version < '3.5' packages = find: Why does setup_requires include setuptools ? This does not seem to make sense since: the first line of the setup.py file imports setuptools , so by the time

Not able to publish azure python function app with external dependencies (not in index)

隐身守侯 提交于 2020-12-13 04:31:53
问题 I have an simple python module AdditionalLibrary, I do not want to publish it nowhere public. I have also an azure python serverless function app ExamplePythonServerlessFunction I want to publish on azure. I followed official documentation: https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-python https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python and an out-dated page https://prmadi.com/install-python-modules-on-azure-app

Not able to publish azure python function app with external dependencies (not in index)

主宰稳场 提交于 2020-12-13 04:31:29
问题 I have an simple python module AdditionalLibrary, I do not want to publish it nowhere public. I have also an azure python serverless function app ExamplePythonServerlessFunction I want to publish on azure. I followed official documentation: https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-python https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python and an out-dated page https://prmadi.com/install-python-modules-on-azure-app

Why customer python package can not be imported?

☆樱花仙子☆ 提交于 2020-12-06 04:45:20
问题 I created my own python package named jjnsegutils and upload it to Pypi website. But after I successfully install it by pip install jjnsegutils , I still can not import it. Error shows: ModuleNotFoundError: No module named 'jjnsegutils' . Details about the whole procedure are as follows. Package structure and details The structure of my package is: jjnsequtils ├─ __init__.py ├─ myutil ├─ __init__.py ├─ myutil.py ├─ LICENSE ├─ README.md ├─ setup.py Two __init__.py files are empty. In my setup