意外安装的python 3.5 vs. python3.5:这不好吗? [英] Accidentally installed python 3.5 vs. python3.5 : Is this bad?

查看:130
本文介绍了意外安装的python 3.5 vs. python3.5:这不好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在预装Python 3.4.x的情况下运行Linux Mint.我正在开始一个新项目,并想利用3.5ish的东西,所以我决定安装3.5并创建指向它的新虚拟环境.

I run Linux Mint with Python 3.4.x pre-installed. I'm starting a new project and wanted to take advantage of 3.5ish stuff so I decided I would install 3.5 and create my new virtual environment pointing to it.

所以,我偶然输入

sudo apt-get install python 3.5

此后我学到的与

sudo apt-get install python3.5.

我知道这是不同的,因为后者需要添加一个新的存储库,其中一个库我可以在添加Deadsnakes存储库之前执行.

I know that is different because the later requires adding a new repository wherein the former I was able to do before I added the deadsnakes repo.

因此,我完成了"python 3.5"的安装-它向我询问了有关将FTP传输到ined(某物)或独立运行的一些问题,然后安装了python3.5.

So, I went through the install of "python 3.5" - it asked me some questions about FTP to ined(something) or standalone, then I installed python3.5.

我的问题是

1)什么是python 3.5? (带有空格), 2)我有没有打破任何东西, 3)即使卸载警告我不要,我是否也应该卸载python 3.5,除非我真的知道自己在做什么?

1) What is python 3.5? (with the space), 2) Did I break anything, 3) Should I uninstall python 3.5 even though the uninstall warns me not to unless I really know what I am doing?

谢谢

推荐答案

较新的版本始终具有较新的修补程序和修补程序.如果使用sudo apt-get install python3.5,则可能是安装的Python 3.5.2.现在也有Python 3.6.

Newer versions always have newer patches and fixes. Python 3.5.2 is probably what you installed if you used sudo apt-get install python3.5. There is also Python 3.6 now.

如果有空格(sudo apt-get install python 3.5),则意味着要安装python3.5,因此可能只是安装/更新了python2.

With the space (sudo apt-get install python 3.5) it would mean install python and 3.5 so maybe it just installed/updated python2.

无论如何,拥有多个版本不是问题.您可以为每个安装加上别名,并根据需要使用它们.

Anyway, having multiple versions is not an issue. You may alias each install and use them as required.

如果没有其他程序/依赖关系丢失,则应这样做.您是否在某些代码中使用过它? (如果它消失了,将不起作用!)如果还没有,请继续将其卸载.

You shall do that if no other program/dependency is lost. Have you used it in some code? (which wouldn't work if its gone!) If you haven't then go ahead uninstall it.

这篇关于意外安装的python 3.5 vs. python3.5:这不好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆