How To Download !NEW! Python On Linux Mint

0 views
Skip to first unread message

Saustin Shavers

unread,
Jan 25, 2024, 9:19:43 AM1/25/24
to ilfledovex

And, on opening VSCode, the upgrade finishes. It looks like Linux MInt (Ubuntu and/or Debian also perhaps?) need to install the package python3.xx-venv in order to get the latest PlatformIO to install.

how to download python on linux mint


DOWNLOAD »»» https://t.co/Q6vM8Rrbp3



We may be getting closer to the issue here.....
In Linux Mint 20, the default python version is 2.7, but version 3.8 is also installed.
However 'pyserial' is not installed by default, and so in trying to do that I found that I needed 'pip'.
In trying to install pip, I was successful in installing pip3 (pip v20.0.2) and from that in installing pyserial - but this installs pyserial into python 3.8, whereas it seems that the Arduino IDE is complaining that it does not have access to pyserial in the python 2.7 environment.

To confirm, if I use Terminal and open 'python' (v2.7) and try 'import serial', I get the exact same error - 'Import Error. No module named serial'. If however I enter 'python3' and import serial, it works fine. I assume that the IDE MUST run python v2 ??

tf68
Thanks for the suggestion - I tried that - but it reports the version for python 3. What I needed was the pyserial for version 2 as that is evident from the Arduino error during compile. The issue appears to be an inability in Mint 20 to install the older version of pip in order to install the older version of pyserial that will work with python 2.7.

One solution that's been offered to me has a measure of sucess
'sudo apt install python-is-python3'
This was proposed here -
I tried it and the Arduino IDE now runs successfully on the scripts I've tried so far and without error.

Note that if the version of the python3 package is not recent enoughfor you, there may be ways of installing more recent versions as well,depending on you distribution. For example installing the python3.9 packageon Fedora 32 to get Python 3.9. If you are a Fedora user, you might wantto read about multiple Python versions available in Fedora.

I think it was the pip install install --upgrade pip command that broke everything but yeah this was a terrible idea and I've given up on what I was trying to. All I want now it to return my system python to it's factory setting without having to completely reinstall Linux Mint. Is that possible?

The python packages you need to reinstall might vary obviously for your setup.I hope I didn't miss anything important from my command history, but you should get the general idea. The longest was the system upgrade. Everything else wen quite quick

the first step is like the one you used before (sudo apt-get install python-pip python-dev lsscsi), but adds the installation of python3 itself and updates the other two packages to the python3 version. git is added to help with the next two steps. on ubuntu-based distros (more about mx19 later) this step also takes care of the second one you were using before (sudo apt install python-setuptools python-wheel). those packages (updated to python3 versions) were installed along with the three listed.

part of the reason i made that previous post was because you had mentioned distro hopping and mx19. i was curious to see if an install was different on something debian-based so i tried it on an mx19.2 vm. it turned out that the second of these new three steps failed because python3-setuptools python3-wheel were not automatically installed with the first step. once i installed them, everything went just as easily as it had with mint 20 xfce.

Enabling good Python support in VS Code is very simple. All You need to do is to install a Python extension. There is few Python extensions in the Marketplace, but one that is much more popular, has great development flow. It is also suggested by Microsoft as a proper Python extension for VS Code: =donjayamanne.python
If You have VS Code in version >= 1.3, press the Ctrl + Shift + X key combination - You will get to the extension module. (If You wish to be more geeky and do it 'old-style', press Ctrl + P and enter ext install Python folowed by Enter.)
Search for Python. You will see a lot of extensions. Every one of them has an information about author, number of downloads, rating and some description. Looking on number of downloads and rating, You will see that one of them is more distinguished - it's Don Jayamanne's Python extension (as for today it has more than 200k dwonloads). My suggestion is to use this extension (same as Microsoft's sugestion).
Just click install and restart VS Code if prompted.

And we will touch both of them. Let start from system-wide env. I'm working on Linux Mint 17.3 (Ubuntu 14.04 LTS based) so the default Python version for me is 2.7 (2.7.6). I'm trying not to use 2.x. Everything I do in Python today is written for Python 3.x. There is of course Python 3 in Mint (3.4.3), but it is not default Python binary - You need to use python3 command to use it.
What I want to do, is to configure VS Code to use python3 as a default runtime for my code. I will run my code as 'Task' - You can configure any task and trigger it with Ctrl + Shift + B key combination. The Task can have args (which can be a variables like $file or $fileBasename).
(read more about Tasks) My 'Task' will trigger python3 command with one arg: $fileBasename. So 'Task' will run file I'm working on with command python3.

I tried already sudo apt-get remove python3.9 , sudo apt-get autoremove python3.9, sudo apt-get purge python3.9, sudo apt-get remove --purge python3.9 and sudo apt-get autoremove --purge python3.9. None seems to make effect.

first of all, it's never advisable to uninstall python. check for instance this link.
having said this, Ubuntu 16.04 does not depend (wasn't build) on Python 3.9 (check this out, for instance). thus, and in principle you shouldn't be having problems fully uninstalling it... as it was my case.

I've also tried installing from source (using this guide), encouraged by some forum posts suggesting that installing from source should work on Ubuntu Saucy. I run into problems when I get to the step that attempts to install the dependencies (rosdep install --from-paths src --ignore-src --rosdistro hydro -y). Specifically, I get ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies, followed by the list of dependencies paired with the message Unsupported OS [mint]. Is there any way to get around this?

Hey, please can you help me in something?.I can't install ROS, I have linux mint 16, I've tried install from source but when I try to do the step 1 of the guide $ sudo apt-get install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential it tells me those package haven't been found. Well, I've already added the packages.ros.org from wget -O - sudo apt-key add - but it don't work :( please help me

Now, what do I need to do to run pyroot? A bit more of documentation about the setup procedure on the web-page would be very helpful. I admit that my experience with python (and all the modules and extensions) itself is also rather limited.

it says python-qgis wasn't found.I tried sudo apt-get install qgis python3-qgis qgis-plugin-grassit showed it depends on following packets :libgdal20 libqgis-3d3.16.3 libqgis-analysis3.16.3 libqgis-app3.16.3 libqgis-core3.16.3 libqgis-gui3.16.3 python3-qgis qgis-providers qgis-plugin-grass grass740 libgdal20 libqgis-app3.16.3 libqgis-core3.16.3 libqgis-gui3.16.3 libqgisgrass7-3.16.3 .I tried install them all together with apt-get install it showedlibgdal20 , grass740 ,libgdal20 (no installation candidate exits ) what is that now , I deleted those 3 packets, it showed me another dependecy problems.here is for sudo apt install qgis qgis-plugin-grass :

TL;DR: The plugin is called qgis-python, but please, check if you are installing the newest version. Normally, manually installing dependencies is not necessary: these are fetched by your package manager (apt)

The source you refer to mentions that QGIS 3.4.1 just came out. This is horribly outdated. In stead, the official QGIS website describes how to install QGIS 3.16.x on linux. Since Linux Mint is just another flavour of Ubuntu, so those instructions should apply. (please correct me if I'm wrong here)So:

Cinnamon, forked from GNOME Shell, is the "shell" of Cinnamon. It provides the user interface such as panels, hot corners, menus etc. The ui is written in JavaScript, while its core libraries are written in C.
GitHub: /linuxmint/Cinnamon

Cjs, fork of Gjs, is the "interpreter" of Cinnamon's javascript code. It is not an actual interpreter - the interpretation is done by SpiderMonkey. Instead, the role of Cjs is to provide bindings to GNOME libraries through GObject Introspection.
GitHub: /linuxmint/cjs

Cinnamon Control Center is a fork of GNOME Control Center. The official control center of Cinnamon in Cinnamon Settings, which is written in python and part of Cinnamon itself. However, some of the modules are still not yet ported to python, and we have to rely on the C modules, which are found here.

Cinnamon Desktop, fork of GNOME desktop, provides certain useful resources for Cinnamon. Most importantly, it contains the schemas for most Cinnamon components, eg. `org.cinnamon.desktop.screensaver`. It also has a small library that provides certain functions used in, say, Cinnamon Screensaver.
GitHub: /linuxmint/cinnamon-desktop

But I am not able to figure out how to download and install Python's latest version i.e. 3.10.1 (the zorin os comes by default with python but it is in older version but my school is telling me to download the latest version i.e. 3.10.1)
I found no instructions on python website regarding the the download for Linix
So anybody would tell me how to download Python 3.10.3 on my machine,please

Yes, the system is setup to use the provided version. This is an area that really could stand improvement in Linux... Certain applications should call on python more generically than they currently do. But as it is now is as it is now.
Other users have posted on the forum having run into a great deal of trouble by trying to upgrade Python to a higher version.

9738318194
Reply all
Reply to author
Forward
0 new messages