It is possible to upgrade a Python installation?











up vote
0
down vote

favorite












I installed Python 3.6 (on Windows, but the question is also relevant to Linux) and would like to upgrade this installation to 3.7.



I know I can install another version in parallel and that they will not collide (I have done this since early 2.7 versions) but I am now wondering about a way to install a new version on top.



The main reason is to keep all installed modules, which I usually have to hunt down and reinstall manually. The aesthetical aspect of having just one version is also there (I understand the implications)



Upgrading would be the ideal path (but I have never heard of that). As a fallback, installing a new one with a simple way to port the modules is fine as well.










share|improve this question






















  • You would have to reinstall the nodules regardless to avoid compatibility issues
    – Ramhound
    Nov 16 at 13:21















up vote
0
down vote

favorite












I installed Python 3.6 (on Windows, but the question is also relevant to Linux) and would like to upgrade this installation to 3.7.



I know I can install another version in parallel and that they will not collide (I have done this since early 2.7 versions) but I am now wondering about a way to install a new version on top.



The main reason is to keep all installed modules, which I usually have to hunt down and reinstall manually. The aesthetical aspect of having just one version is also there (I understand the implications)



Upgrading would be the ideal path (but I have never heard of that). As a fallback, installing a new one with a simple way to port the modules is fine as well.










share|improve this question






















  • You would have to reinstall the nodules regardless to avoid compatibility issues
    – Ramhound
    Nov 16 at 13:21













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I installed Python 3.6 (on Windows, but the question is also relevant to Linux) and would like to upgrade this installation to 3.7.



I know I can install another version in parallel and that they will not collide (I have done this since early 2.7 versions) but I am now wondering about a way to install a new version on top.



The main reason is to keep all installed modules, which I usually have to hunt down and reinstall manually. The aesthetical aspect of having just one version is also there (I understand the implications)



Upgrading would be the ideal path (but I have never heard of that). As a fallback, installing a new one with a simple way to port the modules is fine as well.










share|improve this question













I installed Python 3.6 (on Windows, but the question is also relevant to Linux) and would like to upgrade this installation to 3.7.



I know I can install another version in parallel and that they will not collide (I have done this since early 2.7 versions) but I am now wondering about a way to install a new version on top.



The main reason is to keep all installed modules, which I usually have to hunt down and reinstall manually. The aesthetical aspect of having just one version is also there (I understand the implications)



Upgrading would be the ideal path (but I have never heard of that). As a fallback, installing a new one with a simple way to port the modules is fine as well.







installation python






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 16 at 13:01









WoJ

76831736




76831736












  • You would have to reinstall the nodules regardless to avoid compatibility issues
    – Ramhound
    Nov 16 at 13:21


















  • You would have to reinstall the nodules regardless to avoid compatibility issues
    – Ramhound
    Nov 16 at 13:21
















You would have to reinstall the nodules regardless to avoid compatibility issues
– Ramhound
Nov 16 at 13:21




You would have to reinstall the nodules regardless to avoid compatibility issues
– Ramhound
Nov 16 at 13:21










1 Answer
1






active

oldest

votes

















up vote
0
down vote













It is very possible to have multiple different binary versions (on my system, I have python2 python2.7 python3 python3.6 python3.7) all with different modules available to each binary.



Virtual environments are often used to solve the problem that you will come across with this setup -- different versions of Python with different module dependencies.



After working with Python for a while, the variation in different Python binaries with corresponding module version variations can become very difficult to keep track of.



venv allows you to finely tune different environments on a project by project basis.



You will find that you have to reinstall non-standard library modules within each virtual environment, but it's easier to keep track of things once you have done this.






share|improve this answer























  • As mentioned in my question, I know how to have several installations in parallel (and virtual env as well, which I did not mention). My point was about the ability to have (ideally) one environment upgraded version after version, or (a possibility as well), to cleanly import in the parallel install the current modules (non-standard, obviously, as these will come in with the install)
    – WoJ
    Nov 16 at 14:19










  • As far as I know that's not possible. You can run 3.6 and 3.7 side by side but you have to manage the external modules separately for both installations
    – Mark
    Nov 16 at 16:13











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375985%2fit-is-possible-to-upgrade-a-python-installation%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













It is very possible to have multiple different binary versions (on my system, I have python2 python2.7 python3 python3.6 python3.7) all with different modules available to each binary.



Virtual environments are often used to solve the problem that you will come across with this setup -- different versions of Python with different module dependencies.



After working with Python for a while, the variation in different Python binaries with corresponding module version variations can become very difficult to keep track of.



venv allows you to finely tune different environments on a project by project basis.



You will find that you have to reinstall non-standard library modules within each virtual environment, but it's easier to keep track of things once you have done this.






share|improve this answer























  • As mentioned in my question, I know how to have several installations in parallel (and virtual env as well, which I did not mention). My point was about the ability to have (ideally) one environment upgraded version after version, or (a possibility as well), to cleanly import in the parallel install the current modules (non-standard, obviously, as these will come in with the install)
    – WoJ
    Nov 16 at 14:19










  • As far as I know that's not possible. You can run 3.6 and 3.7 side by side but you have to manage the external modules separately for both installations
    – Mark
    Nov 16 at 16:13















up vote
0
down vote













It is very possible to have multiple different binary versions (on my system, I have python2 python2.7 python3 python3.6 python3.7) all with different modules available to each binary.



Virtual environments are often used to solve the problem that you will come across with this setup -- different versions of Python with different module dependencies.



After working with Python for a while, the variation in different Python binaries with corresponding module version variations can become very difficult to keep track of.



venv allows you to finely tune different environments on a project by project basis.



You will find that you have to reinstall non-standard library modules within each virtual environment, but it's easier to keep track of things once you have done this.






share|improve this answer























  • As mentioned in my question, I know how to have several installations in parallel (and virtual env as well, which I did not mention). My point was about the ability to have (ideally) one environment upgraded version after version, or (a possibility as well), to cleanly import in the parallel install the current modules (non-standard, obviously, as these will come in with the install)
    – WoJ
    Nov 16 at 14:19










  • As far as I know that's not possible. You can run 3.6 and 3.7 side by side but you have to manage the external modules separately for both installations
    – Mark
    Nov 16 at 16:13













up vote
0
down vote










up vote
0
down vote









It is very possible to have multiple different binary versions (on my system, I have python2 python2.7 python3 python3.6 python3.7) all with different modules available to each binary.



Virtual environments are often used to solve the problem that you will come across with this setup -- different versions of Python with different module dependencies.



After working with Python for a while, the variation in different Python binaries with corresponding module version variations can become very difficult to keep track of.



venv allows you to finely tune different environments on a project by project basis.



You will find that you have to reinstall non-standard library modules within each virtual environment, but it's easier to keep track of things once you have done this.






share|improve this answer














It is very possible to have multiple different binary versions (on my system, I have python2 python2.7 python3 python3.6 python3.7) all with different modules available to each binary.



Virtual environments are often used to solve the problem that you will come across with this setup -- different versions of Python with different module dependencies.



After working with Python for a while, the variation in different Python binaries with corresponding module version variations can become very difficult to keep track of.



venv allows you to finely tune different environments on a project by project basis.



You will find that you have to reinstall non-standard library modules within each virtual environment, but it's easier to keep track of things once you have done this.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 16 at 13:34

























answered Nov 16 at 13:19









Mark

914




914












  • As mentioned in my question, I know how to have several installations in parallel (and virtual env as well, which I did not mention). My point was about the ability to have (ideally) one environment upgraded version after version, or (a possibility as well), to cleanly import in the parallel install the current modules (non-standard, obviously, as these will come in with the install)
    – WoJ
    Nov 16 at 14:19










  • As far as I know that's not possible. You can run 3.6 and 3.7 side by side but you have to manage the external modules separately for both installations
    – Mark
    Nov 16 at 16:13


















  • As mentioned in my question, I know how to have several installations in parallel (and virtual env as well, which I did not mention). My point was about the ability to have (ideally) one environment upgraded version after version, or (a possibility as well), to cleanly import in the parallel install the current modules (non-standard, obviously, as these will come in with the install)
    – WoJ
    Nov 16 at 14:19










  • As far as I know that's not possible. You can run 3.6 and 3.7 side by side but you have to manage the external modules separately for both installations
    – Mark
    Nov 16 at 16:13
















As mentioned in my question, I know how to have several installations in parallel (and virtual env as well, which I did not mention). My point was about the ability to have (ideally) one environment upgraded version after version, or (a possibility as well), to cleanly import in the parallel install the current modules (non-standard, obviously, as these will come in with the install)
– WoJ
Nov 16 at 14:19




As mentioned in my question, I know how to have several installations in parallel (and virtual env as well, which I did not mention). My point was about the ability to have (ideally) one environment upgraded version after version, or (a possibility as well), to cleanly import in the parallel install the current modules (non-standard, obviously, as these will come in with the install)
– WoJ
Nov 16 at 14:19












As far as I know that's not possible. You can run 3.6 and 3.7 side by side but you have to manage the external modules separately for both installations
– Mark
Nov 16 at 16:13




As far as I know that's not possible. You can run 3.6 and 3.7 side by side but you have to manage the external modules separately for both installations
– Mark
Nov 16 at 16:13


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375985%2fit-is-possible-to-upgrade-a-python-installation%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Список кардиналов, возведённых папой римским Каликстом III

Deduzione

Mysql.sock missing - “Can't connect to local MySQL server through socket”