简体   繁体   English

如何在Ubuntu 16.04上运行Python 3.5和Anaconda 3.5?

[英]How to get Python 3.5 and Anaconda 3.5 running on ubuntu 16.04?

Anaconda for python 3.5 and python 2.7 seems to install just as a drop in folder inside my home folder on Ubuntu. 适用于python 3.5和python 2.7的Anaconda似乎就像在Ubuntu上我的主文件夹中的文件夹中一样安装。 Is there an installed version of Anaconda for Ubuntu 16? 是否有适用于Ubuntu 16的Anaconda安装版本? I'm not sure how to ask this but do I need python 3.5 that comes by default if I am also using Anaconda 3.5? 我不确定该怎么问,但是如果我也使用Anaconda 3.5,我是否需要默认提供的python 3.5?

It seems like the best solution is docker these days. 这些天似乎最好的解决方案是docker。 I mean I understand virtualenv and virtualenvwrapper. 我的意思是我了解virtualenv和virtualenvwrapper。 However, sometimes I try to indicate in my .bashrc that I want to use python 3.5 and yet I'll use the command mkvirtualenv and it will start installing the python 2.7 versions of python. 但是,有时我会尝试在.bashrc中指出我想使用python 3.5,但是我将使用命令mkvirtualenv,它将开始安装python 2.7版本的python。

Should I choose either Anaconda or the version of python installed with my OS from python.org or is there an easy way to manage many different versions of Python? 我应该选择Anaconda还是从python.org中随操作系统安装的python版本,还是有一种简单的方法来管理许多不同版本的Python? Thanks, Bruce 谢谢布鲁斯

My solution for Python 3.5 and Anaconda on Ubuntu 16.04 LTS (with the bonus of OpenCV 3) was to install Anaconda, then deprecate to 3.5. 我在Ubuntu 16.04 LTS(带有OpenCV 3的附加功能)上针对Python 3.5和Anaconda的解决方案是安装Anaconda,然后弃用到3.5。 You have to be sure to update anaconda afterwards - that's the bit that got me at first. 您必须确保之后再更新anaconda-这就是刚开始让我着迷的地方。 The commands I gave were: 我给的命令是:

bash Anaconda3-4.3.1-Linux-x86_64.sh
conda install python=3.5
conda update anaconda
conda install -c menpo opencv3

This seems to work for me; 这似乎对我有用; tried it on a few other Ubuntu 16.04 machines as well, and it seemed to work well. 在其他几台Ubuntu 16.04机器上也尝试过该工具,并且看起来运行良好。

Use anaconda version Anaconda3-4.2.0-Linux-x86_64.sh from the anaconda installer archive.This comes with python 3.5 . 使用anaconda安装程序档案中的anaconda版本Anaconda3-4.2.0-Linux-x86_64.sh Linux-x86_64.sh.python python 3.5附带了此版本。 This worked for me. 这对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM