Python Forum
Can I upload a new version without previously deleting ancient version
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I upload a new version without previously deleting ancient version
#1
Hi all ! Let us take two examples: Pycharm (versions 3.3 and 3.2) and python (version 3.3 and 3.2). Pycharm was installed passing via "software center". For Pycharm I can easily "uninstall". For python I can delete the ancient version using "rm" on the the terminal.
   But what happens if I upload new version without previouslly deleting ancient version ?
   Thanks for your reply.
Reply
#2
PyCharm current version is 2017.2.3
I think the versions you are talking about are Python versions.
Don't use rm, see snippsat's tutorial:
https://python-forum.io/Thread-Basic-Par...er-Windows
Reply
#3
My question could be: what "updaters" do ? Till now I delete  the ancient version. If I could "install" without prevously "unistall" the ancient version, I should appreciate.
Reply
#4
Again, it depends on whether you're talking about Pycharm or Python. Upgrading one does not effect the other. Python doesn't care at all about Pycharm, however, Pycharm does need to know where Python is, so if you upgrade Python, you may need to notify Pycharm where the new interpreter (folder) is.

As for Python, suppose you want to go from version 3.6.2 to 3.6.3 and your current Python directory is "C:\Python36", when you run the new installer, make sure the directory location is the same, "C:\Python36", this will upgrade the current version to the newer version, as well as keeping all your 3rd party libraries (which are lost if you do an uninstall/install). I would also recommend, after an upgrade, that you run pip list --outdated from the command line (which you should be doing periodically anyway).  I do not know about Linux or Mac, as I've not had to upgrade them and to be honest, when it comes to their pre-installed versions, I wouldn't want to try for fear of 'breaking' the OS.

I will say, and this is my own personal method, is if there is a change in major versions of Python, say from 3.6 to 3.7, I will remove the older version and run the new version as a new install. I have no scientific reason for doing so, I just like to do it.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#5
Quote:But what happens if I upload new version without previouslly deleting ancient version ?
Nothing you would just install another version. The older ones would just sit there. On one of my systems, i still have 3.4, 3.5, and 3.6 on it just because i never bothered to removed them. You just need to make sure to update the inerpreter path for any IDE you use to the interpreter you wish to use.

To remove old ones, if you compiled from source, go to the directory and run make uninstall

If you installed it via your package manager, then you would have to use that, if ubuntu
sudo apt-get remove python3.3
Recommended Tutorials:
Reply
#6
Thanks to all of you. My new PC has double boot: windows and linux. A lot of work waits me.
Reply
#7
In PyCharm (after you upgrade python), you need to specify your project interpreter
With project loaded, this can be done by clicking on help and typing settings.
If no project is loaded, from splash screen of PyCharm, select configure->settings->ProjectInterpreter
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Selecting correct xlrd version Kithsiri 4 448 Feb-27-2024, 07:09 AM
Last Post: Kithsiri
  run part of a script with a different version of Python jdog 2 395 Jan-09-2024, 08:49 PM
Last Post: jdog
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 680 Oct-04-2023, 10:01 AM
Last Post: snippsat
  Installing Older Version Of Numpy & Pandas knight2000 6 1,650 Aug-30-2023, 10:58 AM
Last Post: knight2000
  Matplotlib Version Aboutben 2 640 Aug-21-2023, 12:05 PM
Last Post: Aboutben
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 781 Jul-15-2023, 11:32 AM
Last Post: snippsat
  pip installs in a different python version and directory than the default 3.11 ao_tex_mal 9 3,077 Jun-20-2023, 02:55 PM
Last Post: snippsat
Question Extracting Version Number from a String britesc 2 1,030 May-31-2023, 10:20 AM
Last Post: britesc
  [split] How to resolve version conflicts in Python? atonalwilson 1 953 May-04-2023, 09:02 AM
Last Post: buran
  How to resolve version conflicts in Python? taeefnajib 0 873 Apr-27-2023, 08:37 PM
Last Post: taeefnajib

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020