conda

anaconda .conda foler move from /home/usrxy to some other location

回眸只為那壹抹淺笑 提交于 2019-12-22 00:33:56
问题 I have a RHEL server with Anaconda3 installed. Each user in the system gets 2 GiG space in the /home/ folder and another large folder in a mounted drive. When the user is trying to create a conda environment using conda create -n my_env it fills all the .tar files in .conda folder and installation breaks. Is there a way I specify a custom location for the .conda folder. Best Jagan 回答1: you can use --prefix option documentation Option 1: If you want to create your virtual environment in

how to import conda packages into google colab?

跟風遠走 提交于 2019-12-21 20:05:16
问题 Hi I was able to install packages in google colab with pip, using: !pip install.... but i am not able to install any package from conda-forge. I tried: !conda install -c conda-forge cartopy thanks in advance! 回答1: One way to get it is to just Unzip the conda package to a directory directly. Get you required conda package from anaconda.org , download it. Decompress them and copy them into the library path Here's an example to install faiss from anaconda using this way. https://gist.github.com

linux下安装anaconda

孤者浪人 提交于 2019-12-21 19:06:26
1. 安装 到官网下载对应的版本文件: Download Anaconda Now! 这里以anaconda2为例 下载完之后,在终端输入: bash 下载好的文件 整个过程点几下回车就好了。但是到最后一步,会提示 是否把anaconda加入到系统环境变量中 : 建议像我这样的菜鸟来说,就不要加了,直接回车,默认就是no。原因接下来就讲 2. 配置和使用 最后一步选择了默认的no,然后在终端中输入conda,发现command not found,我就知道是前面选择了no的原因。于是上网找,怎样把它加到系统环境中,找到的解决方案是: # 将anaconda的bin目录加入PATH,根据版本不同,也可能是~/anaconda3/bin, 这里以anaconda2为例 echo 'export PATH="~/anaconda2/bin:$PATH"' >> ~/.bashrc(这个命令是错的)以下两个命令均可: echo export PATH="~/anaconda2/bin:$PATH" >> ~/ .bashrc(去掉单引号) echo 'export PATH=~/anaconda2/bin:$PATH' >> ~/.bashrc(去掉双引号) # 更新bashrc以立即生效 source ~/.bashrc 以上两行都是在终端里执行的。 然后就可以正常使用conda了。

How can I launch an exe within a conda env

徘徊边缘 提交于 2019-12-21 16:36:07
问题 I'm using vscode in Windows 10 as my code editor, and want to make an easy way to launch it with the correct conda env to allow debugging. Currently I am having to open a command prompt, then activate the conda env, then paste the shortcut to vscode into the prompt to execute. Like so: cmd activate env-name "C:\Program Files (x86)\Microsoft VS Code\Code.exe" I have tried creating a batch file to wrap these calls, but unfortunately once I call "source activate" to start the conda env, the

Anaconda使用总结

十年热恋 提交于 2019-12-21 14:28:37
Anaconda使用总结 2016.7.19 PeterYuan 序 Python易用,但用好却不易,其中比较头疼的就是包管理和Python不同版本的问题,特别是当你使用Windows的时候。为了解决这些问题,有不少发行版的Python,比如WinPython、Anaconda等,这些发行版将python和许多常用的package打包,方便pythoners直接使用,此外,还有virtualenv、pyenv等工具管理虚拟环境。 个人尝试了很多类似的发行版,最终选择了Anaconda,因为其强大而方便的包管理与环境管理的功能。该文主要介绍下Anaconda,对Anaconda的理解,并简要总结下相关的操作。 Anaconda概述 Anaconda 是一个用于科学计算的Python发行版,支持 Linux, Mac, Windows系统,提供了包管理与环境管理的功能,可以很方便地解决多版本python并存、切换以及各种第三方包安装问题。Anaconda利用工具/命令 conda 来进行package和environment的管理,并且已经包含了Python和相关的配套工具。 这里先解释下conda、anaconda这些概念的差别。 conda 可以理解为一个工具,也是一个可执行命令,其核心功能是 包管理 与 环境管理 。包管理与pip的使用类似

Install opencv with conda

只谈情不闲聊 提交于 2019-12-21 06:36:13
问题 This question is different from "How do I install Python OpenCV through Conda?" because that question was asked more than 5 years ago, when all packages had different versions. I tried ALL answers to that question, and neither worked. See the text of question for details. How to install opencv with conda now, in July 2019? On a freshly installed anaconda, I did conda update conda (succesfully) then tried the following: (base) C:\Users\mlearning>python Python 3.7.3 (default, Mar 27 2019, 17:13

Installing faiss on Google Colaboratory

随声附和 提交于 2019-12-21 05:09:13
问题 I try to follow instruction on the MUSE project. They require PyTorch and Faiss. PyTorch is easy to install. But I found problem with installing Faiss. The instruction on MUSE tell me to use conda install faiss-cpu -c pytorch But Google Colab doesn't support conda (When I tried !pip install conda , it didn't work) And Faiss didn't work when I !pip install faiss either. Is there a way to install Faiss or conda? 回答1: Here's how I eventually install faiss. !wget https://anaconda.org/pytorch

Conda showing two versions of requests library

こ雲淡風輕ζ 提交于 2019-12-21 04:18:09
问题 I'm new to conda and seeing something strange but I don't actually know if it's a problem or not. I'm currently in the root environment. At some point I was trying to install pip in another environment, but accidentally just ran pip install requests . This seems to have installed it in my root environment: $ conda list | grep requests requests 2.12.4 py36_0 requests 2.13.0 <pip> And it looks like the pip version is what's getting picked up when I run python: $ python Python 3.6.0 |Continuum

Possible to do “conda build” from github branch?

北战南征 提交于 2019-12-21 03:18:15
问题 I know that I can tell conda to build from github as: source: fn: v1.6.0.tar.gz url: https://github.com/SciTools/iris/archive/v1.6.0.tar.gz md5: 24c2d55758325a8f05aadf99748c0d2a or source: git_url: git@github.com:SciTools/iris.git git_tag: v1.6.0 but how would one tell conda to build from a github branch? 回答1: Just put the branch name in the git_tag section. All it does is git checkout that "tag", so it doesn't have to be an actual git tag. It can be anything that git can checkout . For

How to backup Anaconda added packages?

会有一股神秘感。 提交于 2019-12-21 03:02:42
问题 I have Anaconda for Python 2, It came packed with a lot of useful packages. During my work, I have added several packages to it using conda install command. Now I have to format my system, and I want to backup/pack all the added libraries, either as full packages or even by knowing the installation command of each one. I searched StackOverflow, I found one unanswered question with a similar problem, the question suggested conda list -e >file_list.txt to create a file contains all the