I saw this nice explanation video (link) of packaging using pip and I got two questions: The first one is: I write a code which I want to share with my colleagues, but I do not aim to share it via pypi. Thus, I want to share it internally, so everyone can install it within his/ her environment. I actually
Tag: python-packaging
MATLAB Engine API for Python. Error: MATLAB Engine for Python supports Python version
I’m working on my Master’s Thesis. My director uses MATLAB, I use Python. So I need to run his MATLAB scripts on Python. There are many questions out there on this topic. I tried to install Install MATLAB Engine API for Python (https://es.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html). I came across the following problem: Error: MATLAB Engine for Python supports Python version 2.7, 3.7, 3.8,
How to call direct imports of libraries in the creation of a Python package
Background I’m trying to create a Python package with a semi-complicated structure. I have published a few packages before, and because they were simple, I put all the classes and functions necessary in __init__.py itself. For example, the file structure of one of my simple packages would be: A sample __init__.py file from a sample package would be: As a
AWS Glue python shell – Using multiple libraries
I was using AWS glue python shell. The program uses multiple python libraries which not natively available for AWS. Glue can take .egg or .whl files for external library reference. All we need to do is put these .egg or .whl file in some S3 location and point to it using it’s full path. I tried with one external library
Unable to load submodules of a Python package: ModuleNotFoundError: No module named
I am new to Python. This looks like a very simple problem but I am unable to solve it after trying my best. I am trying to publish a python package that I developed to an artifact store. However, when I download the package on a target machine, it runs into the error about inner modules not found. The packaging
How to use a module as part of a package and as a directly executable script?
Lets say i have a package folder called my_package. This directory contains a file called __init__.py and a module file called my_module.py among further module files. The module my_module.py contains the function do_something_with_file(file_path). The function is used in other parts of the package but it would be practical if it could be called as a command line script that takes
Packaging Libraries with ML models in Python [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I have a saved model for Sentiment Analysis and code and data along with it. I am trying to create
Wheel Incompatibility between Python Minor Versions
I’m releasing a package on PyPi which will support Python 3.6+, and would like to build as few wheels as possible. I’ve read up on Python’s packaging system for wheels and looked at the NumPy project for an example. Reading PEP 513 and PEP 571 was also insightful. Here’s the question: why are wheels forwards-incompatible with Python minor version changes?
How do I list the files inside a python wheel?
I’m poking around the various options to setup.py for including non-python files, and they’re somewhat less than intuitive. I’d like to be able to check the package generated by bdist_wheel to see what’s actually in it–not so much to make sure that it will work (that’s what tests are for) but to see the effects of the options I’ve set.
Relative imports for the billionth time
I’ve been here: http://www.python.org/dev/peps/pep-0328/ http://docs.python.org/2/tutorial/modules.html#packages Python packages: relative imports python relative import example code does not work Relative imports in python 2.5 Relative imports in Python Python: Disabling relative import and plenty of URLs that I did not copy, some on SO, some on other sites, back when I thought I’d have the solution quickly. The forever-recurring question is this: