Re: Help needed - - running into issues with python and its tools
Your approach is wrong. You don't build python from source using pip. You don't install new versions of python into a venv either. Have you read the following? https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html That seems to have instructions for what you want to do.. -Bill On Mon, Aug 5, 2024 at 1:41 PM o1bigtenor via Python-list < python-list@python.org> wrote: > Matt - if you would rather that you were not included in the address list - > - > please advise. > > On Mon, Aug 5, 2024 at 8:51 AM Mats Wichmann wrote: > > > On 8/5/24 06:48, o1bigtenor via Python-list wrote: > > > On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < > > > python-list@python.org> wrote: > > > > > >> On 8/3/24 20:03, o1bigtenor via Python-list wrote: > > >> > > >>> My question was, is and will be (and the doc absolutely doesn't cover > > it) > > >>> how do I install a different version in the venv so that python > 3.11.x > > on > > >>> the > > >>> system is not discombobulated by the python 3.12.x in the venv. > > >>> That python 3.12 would let me run the tools needed. > > >>> (Its the how to install the next version of python that I just > haven't > > >> been > > >>> able to find information on - - - and I would be looking for > > information > > >>> on how to install on a *nix.) > > >> > > >> To get a different Python "in" the venv, you use the version you want > in > > >> the construction of the venv. For example: > > >> > > >> > > >> $ python3.13 -m venv new_venv > > >> $ new_venv/bin/python --version > > >> Python 3.13.0b4 > > >> $ source new_venv/bin/activate > > >> > > >> > > > "https://peps.python.org/pep-0668/ PEP 668, which prevents pip from > > > interacting with the OS installed python. This change has been done in > > red > > > hat and other distros too . . . " > > > > > > similarly your first command produces and error code for the same > reason. > > > > > > Sorry - - - not my policy - - - > > > > What? Yes, the *system* pip should have some restrictions, if it's a > > system mainly managed by a package manager. > > > > Setting up a venv is the *expected* approach to such situations, and > > creating one doesn't cause any problems. You end up with a pip in the > > activated venv that's going to install to a different path (the one in > > the venv), and will not be marked as externally managed, as the package > > manager has no control over that path. > > > > That's the whole point. What error are you getting? The venv module is > > not the pip module so restrictions on the system pip have nothing to do > > with it. > > > > set up pyenv > activated a venv > trying to install python3.12 into it > > 1. download of python3.12 (blahblahblahetc).deb will not install > 2. download of python3.12.tar.xz similarly will not install > > (venv2) memyself@devuanbigbox:~$ pip install > /home/memyself/Downloads/Python-3.12.4.tar.xz > Processing ./Downloads/Python-3.12.4.tar.xz > ERROR: file:///home/memyself/Downloads/Python-3.12.4.tar.xz does not appear > to be a Python project: neither 'setup.py' nor 'pyproject.toml' found. > > seems that I need a different version (installable as it were) of > python3.12 > or my approach is all wrong! > > Please advise > > TIA > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
Re: Help needed - - running into issues with python and its tools
Did Mats suggestion of: python3.13 -m venv new_venv $ new_venv/bin/python --version Python 3.13.0b4 $ source new_venv/bin/activate Not work? That should work on any system, with any system installl python. It's not trying to modify the system installed python in anyway... If not, please paste the error output you're getting. On Mon, Aug 5, 2024 at 3:13 PM Mats Wichmann via Python-list < python-list@python.org> wrote: > On 8/5/24 15:17, o1bigtenor via Python-list wrote: > > >> That's something like > >> > >> pyenv install 3.12.4 > >> > > > > $ pyenv install 3.12.4 > > bash: pyenv: command not found > > > > > pyenv is not a 'global' package > > > > there is a mountain of /root/.pyenv files though > > there is also quite a number of /root/.pyenv/plugins/pyenv-virtualenv/ > > files > > > > when looking in the /root/.pyenv files I can find options for all the > older > > version of python > > but none for anything newer than what is on my system > > > > is there something else to install to achieve this 'version freedom' that > > pyenv promises? > > It has to go somewhere your shell can find it. Mine is a shell > function, but it was set up so many years ago I don't remember details. > It's presumably the pyenv installation instructions... > > > > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
Re: Help needed - - running into issues with python and its tools
why reply to me instead of to the list? It's generally considered bad form to do so. Do you have any python 3 installed on your system? Or python 2.7? If not, can you install such via system package? -Bill On Mon, Aug 5, 2024 at 6:06 PM o1bigtenor wrote: > > > On Mon, Aug 5, 2024 at 5:28 PM Bill Deegan via Python-list < > python-list@python.org> wrote: > >> Did Mats suggestion of: >> python3.13 -m venv new_venv >> $ new_venv/bin/python --version >> Python 3.13.0b4 >> $ source new_venv/bin/activate >> >> Not work? >> That should work on any system, with any system installl python. >> It's not trying to modify the system installed python in anyway... >> >> If not, please paste the error output you're getting. >> > > # python3.13 -m venv new_venv > -bash: python3.13: command not found > > $ python3.13 -m venv new_venv > bash: python3.13: command not found > > There you have it - - - the first one run as superuser and the second as > usr. > > Regards > > > -- https://mail.python.org/mailman/listinfo/python-list
Re: Help needed - - running into issues with python and its tools
I’m not looking through all the packages you have installed What version of python is installed on your system? On Tue, Aug 6, 2024 at 5:24 AM o1bigtenor wrote: > > > On Mon, Aug 5, 2024 at 10:36 PM Bill Deegan > wrote: > >> why reply to me instead of to the list? >> It's generally considered bad form to do so. >> > > Got it - - - except this list wants only reply all the next one wants only > reply and > keeping straight which is which isn't always happening. I did apologize > and asked > you to advise in the next one whether you even wanted to be included > (which you haven't > responded to). > >> >> >> Do you have any python 3 installed on your system? >> Or python 2.7? >> If not, can you install such via system package? >> > > > # dpkg -l | grep python* > ii 2to3 3.11.2-1 > all 2to3 binary using python3 > ii idle-python3.113.11.2-6+deb12u2 > all IDE for Python (v3.11) using Tkinter > ii ipython3 8.5.0-4 > all Enhanced interactive Python 3 shell > ii libboost-python1.74.0 1.74.0+ds1-21 > amd64Boost.Python Library > ii libpython3-all-dev:amd64 3.11.2-1+b1 > amd64package depending on all supported Python 3 > development packages > ii libpython3-dev:amd64 3.11.2-1+b1 > amd64header files and a static library for Python > (default) > ii libpython3-stdlib:amd643.11.2-1+b1 > amd64interactive high-level object-oriented language > (default python3 version) > rc libpython3.10-minimal:amd643.10.9-1 > amd64Minimal subset of the Python language (version > 3.10) > ii libpython3.11:amd643.11.2-6+deb12u2 > amd64Shared Python runtime library (version 3.11) > ii libpython3.11-dev:amd643.11.2-6+deb12u2 > amd64Header files and a static library for Python > (v3.11) > ii libpython3.11-minimal:amd643.11.2-6+deb12u2 > amd64Minimal subset of the Python language (version > 3.11) > ii libpython3.11-stdlib:amd64 3.11.2-6+deb12u2 > amd64Interactive high-level object-oriented language > (standard library, version 3.11) > ii libpython3.11-testsuite3.11.2-6+deb12u2 > all Testsuite for the Python standard library (v3.11) > ii libpython3.9-minimal:amd64 3.9.13-1 > amd64Minimal subset of the Python language (version > 3.9) > ii libpython3.9-stdlib:amd64 3.9.13-1 > amd64Interactive high-level object-oriented language > (standard library, version 3.9) > ii python-apsw-doc3.40.0.0-2 > all documentation for python-apsw > ii python-apt-common 2.6.0 > all Python interface to libapt-pkg (locales) > ii python-apt-common-devuan 2.5.3devuan2 > all Templates for aptitude > ii python-attr-doc22.2.0-1 > all documentation for the attrs Python library > ii python-babel-localedata2.10.3-1 > all tools for internationalizing Python applications > - locale data files > ii python-cryptography-doc38.0.4-3 > all Python library exposing cryptographic recipes > and primitives (documentation) > ii python-cycler-doc 0.11.0-1 > all composable kwarg iterator (documentation) > ii python-gmpy2-common2.1.2-2 > all common files for python3-gmpy2 > ii python-ipython-doc 8.5.0-4 > all Enhanced interactive Python shell (documentation) > ii python-markdown-doc3.4.1-2 > all text-to-HTML conversion library/tool > (documentation) > ii python-matplotlib-data 3.6.3-1 > all Python based plotting system (data package) > ii python-matplotlib-doc 3.5.2-4 > all Python based plotting system (documentation > package) > ii python-mpmath-doc 1.2.1-2 > all library for arbitrary-precision floating-point > arithmetic - Documentation > ii python-numpy-doc 1:1.23.5-2 > all NumPy documentation > ii python-pexpect-doc 4.8.0-4 > al