久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

將 Anaconda 安裝到虛擬環(huán)境中

Installing Anaconda into a Virtual Environment(將 Anaconda 安裝到虛擬環(huán)境中)
本文介紹了將 Anaconda 安裝到虛擬環(huán)境中的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我目前已經(jīng)安裝了 Enthought Python Distribution在我不想破壞的機(jī)器上,但我想看看轉(zhuǎn)移到 Anaconda 來自 Continuum.

I've currently got a working installation of the Enthought Python Distribution on my machine that I don't want to necessarily disrupt, but I'd like to look at moving over to Anaconda from Continuum.

我可以輕松地將 Anaconda 安裝到我創(chuàng)建的 virtualenv 目錄中,但我不確定如何告訴 virtualenv 使用 Python 的 anaconda 版本.如果我告訴我的整個系統(tǒng)使用它,我可以用 export PATH="/DIRECTORIES/anaconda/bin:$PATH 之類的東西來更改 .bash_profile.有沒有辦法在 virtualenv 中執(zhí)行此操作?

I can easily install Anaconda into the virtualenv directory I create, but I'm not sure how to tell that virtualenv to use the anaconda-version of Python. If I was telling my whole system to use it I can alter .bash_profile with something like export PATH="/DIRECTORIES/anaconda/bin:$PATH. Is there a way to do that within a virtualenv?

推薦答案

我剛剛從 http://測試了 Anaconde 1.6 安裝程序continuum.io/downloads

下載后,我做了:

bash Anaconda-1.6.0-Linux-x86_64.sh

如果您采用默認(rèn)設(shè)置,您最終會在您的主目錄中獲得一個目錄 anaconda,與您的 EPD 或系統(tǒng) Python 安裝完全分開.

If you take the defaults, you'll end up with a directory anaconda in your home directory, completely separate from your EPD or system Python installation.

要激活 anaconda 安裝的默認(rèn)環(huán)境,請執(zhí)行以下操作:

To activate the anaconda installation's default environment, do the following:

source $HOME/anaconda/bin/activate ~/anaconda

所有 Python 命令現(xiàn)在都來自 $HOME/anaconda 中的默認(rèn) Anaconda 環(huán)境,它本身就是一種虛擬環(huán)境.您可以使用例如創(chuàng)建子環(huán)境conda create -n myenv1 ipython scipy,但這不是必須的.

All Python commands will now come from the default Anaconda environment in $HOME/anaconda, which is itself a kind of a virtual environment. You can create sub-environments with e.g. conda create -n myenv1 ipython scipy, but this is not necessary.

附帶說明,您還可以使用 pip(也在 $HOME/anaconda/bin 中)將 PyPI 包安裝到您的 Anaconda 默認(rèn)環(huán)境中(它具有 pip 默認(rèn)安裝)或任何子環(huán)境(在這種情況下,您應(yīng)該首先使用 conda install -n myenv1 pip<將 pip 安裝到子環(huán)境中/code>).

As a side note, you can also use pip (also in $HOME/anaconda/bin) to install PyPI packages into your Anaconda default environment (it has pip installed by default) or any of the sub-environments (in which case you should first install pip into the sub-environment using conda install -n myenv1 pip).

可以將部分 Anaconda 手動安裝到現(xiàn)有的 virtualenv 中,但使用它們的安裝程序是迄今為止測試和使用的最簡單方法,不會影響您現(xiàn)有的任何 Python 安裝.

It is possible to install parts of Anaconda manually into an existing virtualenv, but using their installer is by far the easiest way to test and use, without affecting any of your existing Python installations.

這篇關(guān)于將 Anaconda 安裝到虛擬環(huán)境中的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時出現(xiàn)問題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節(jié)點(diǎn))
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應(yīng)并將元素值存儲在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標(biāo)記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對象)
主站蜘蛛池模板: 欧美日韩在线一区二区 | 伊人久久大香线 | 日日骚视频 | 91文字幕巨乱亚洲香蕉 | 亚洲一区二区在线播放 | 99色播 | 国产精品一区二区久久精品爱微奶 | av国产精品毛片一区二区小说 | 久久久综合网 | 国产一区二区三区色淫影院 | 日本一区二区不卡视频 | 久久久久久国产免费视网址 | 亚洲欧美国产精品久久 | 午夜a区| 91视频在线 | 免费在线观看成人av | 91精品国产综合久久婷婷香蕉 | av毛片在线播放 | 久久91精品 | 91免费高清视频 | 欧美综合国产精品久久丁香 | 国产精品久久福利 | 中文字幕日韩一区 | 青草青草久热精品视频在线观看 | 中文字幕一区在线观看视频 | 日韩欧美在线免费观看 | 国产日韩免费视频 | 日韩一级免费大片 | 一区日韩 | 激情国产 | 亚洲精品二区 | 激情网站在线观看 | 国产探花 | 精品久久久久久久久久久久 | 亚州影院 | 欧美成人黄色小说 | 一级毛片中国 | 天堂av免费观看 | 成年人的视频免费观看 | 亚洲精品久久久久久下一站 | 一级全黄少妇性色生活免费看 |