Re: Truncation error

2020-10-07 Thread Meghna Karkera
When I use the same code in MATLAB I get the answer as 4.6e-06 and when I use the same code in PYTHON I get the answer as 4.7e-06. How do I know which is the most precise and accurate value. Actually the answer is a big matrix, I've only compared the first entry of the matrix. On Wed, Oct 7, 2020,

Re: [poetry] Entry points not converted to scripts

2020-10-07 Thread Marco Sulla
You can also, and this is the preferred way, install it in the venv and use it in the venv. When you activate the venv shell, you can `pip install` anything you want. The packages will be installed inside the venv, and you don't need any PYTHONUSERBASE or PYTHONPATH. The venv already manages this.

Embedding version in command-line program

2020-10-07 Thread Loris Bennett
Hi, I have written a program, which I can run on the command-line thus mypyprog --version and the get the version, which is currently derived from a variable in the main module file. However, I also have the version in an __init__.py file and in a pyproject.toml (as I'm using poetry, otherwis

Re: Embedding version in command-line program

2020-10-07 Thread Marco Sulla
In __init__.py, you can parse the toml file, extract the version and store it in a __version__ variable. -- https://mail.python.org/mailman/listinfo/python-list

Re: Embedding version in command-line program

2020-10-07 Thread Marco Sulla
On Wed, 7 Oct 2020 at 14:16, Loris Bennett wrote: > But the toml file isn't part of the distribution and so it won't be > installed. > > I suppose I could write a separate program which parses the toml file > and then just injects the version into __init__.py. Yes, I do not know poetry, but I sup

help with installation

2020-10-07 Thread rebecca kahn
Good morning. I need to install numpy and matplotlib for school. But everytime I run the comand i get a error on the metadata fase. Can you offer assistance? Sincerely Rebecca Kahn Microsoft Windows [Version 10.0.18362.1082] (c) 2019 Microsoft Corporation. Todos os direitos reservados. C:\Users

Re: [RELEASE] Python 3.9.0 is now available, and you can already test 3.10.0a1!

2020-10-07 Thread Tomas Hrnciar
Hello, I am getting PGP error with the new Python3.10.0a1. I would like to ask what key it was signed with and whether it wasn't Pablo's. If so, it might be missing in pubkeys.txt. Thank you. T. On Mon, Oct 5, 2020 at 10:48 PM Łukasz Langa wrote: > On behalf of the Python development community

Reply: Issues in Python Installation

2020-10-07 Thread nichalvedant07
someone please help me out it would be of great help Sent from vivo smartphone > Hello, > >   > > I am an amateur python developer but I’m facing a lot of issues regarding > python installation on windows 10...whenever I install python on y > pc...irrespective of its version my scripts folder

Re: Embedding version in command-line program

2020-10-07 Thread Loris Bennett
Hi Marco, Marco Sulla writes: > In __init__.py, you can parse the toml file, extract the version and > store it in a __version__ variable. But the toml file isn't part of the distribution and so it won't be installed. I suppose I could write a separate program which parses the toml file and th

Re: Truncation error

2020-10-07 Thread Peter Pearson
On Wed, 7 Oct 2020 13:29:26 +0530, Meghna Karkera wrote: > On Wed, Oct 7, 2020, 11:24 Marco Sulla wrote: >> On Wed, 7 Oct 2020 at 05:23, Meghna Karkera wrote: >> > >> > How is PYTHON better than other software's(MATLAB) in case of >> > truncation or rounding off error. > >> [snip] > > When I use