問題描述
我想在沒有網絡連接的機器上創建一個 conda 環境.到目前為止我所做的是:
I would like to create a conda environment on a machine that has no network connection. What I've done so far is:
在連接到互聯網的機器上:
On a machine that is connected to the internet:
conda create -n python3 python=3.4 anaconda
Conda 將所有相關包歸檔到 Anacondapkgs
中.我把它們放在一個單獨的文件夾中,然后把它移到沒有網絡連接的機器上.該文件夾的路徑為 PATHTOAnaconda_py3win-64
Conda archived all of the relevant packages into Anacondapkgs
. I put these into a separate folder and moved it to the machine with no network connection. The folder has the path PATHTOAnaconda_py3win-64
我試過了
conda create -n python=3.4 anaconda --offline --channel PATHTOAnaconda_py3
這給出了錯誤消息
Fetching package metadata:
Error: No packages found in current win-64 channels matching: anaconda
You can search for this package on Binstar with
binstar search -t conda anaconda
我做錯了什么?如何告訴 conda 基于此目錄中的包創建環境?
What am I doing wrong? How do I tell conda to create an environment based on the packages in this directory?
推薦答案
您可以嘗試克隆作為基礎環境的 root.
You could try cloning root which is the base env.
conda create -n yourenvname --clone root
這篇關于離線時如何安裝 conda 環境?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!