conda

Switch between Python 3.x and 3.y through anaconda?

让人想犯罪 __ 提交于 2020-01-16 12:35:06
问题 I have a HDP cluster and I'm working with couple data scientist, we're working on Python 3.5 (anaconda3) and I would switch to the new Python version 3.6 while keeping the previous version which is 3.5 My questions: Is that possible having 2 version of Python like 3.5 and 3.6 through anaconda? if that true, how can I switch between those two version? 回答1: You have to create two environments: conda create -n py35 python=3.5 conda create -n py36 python=3.6 then you can change to the desired

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/free/win-64/repodata.json.bz2>

情到浓时终转凉″ 提交于 2020-01-16 08:19:46
问题 I'm setting up the virtual enviornment of django for the first time. I've downloaded the anaconda library of python in my D drive. So initially I set up the path of python and conda(Scripts) manually in advance system settings. But now when I'm creating the enviornment using command conda create --name mydjang0 django the command prompt is showing an error like this- C:\Users\AABHA GAUTAM> conda create --name mydjang0 django Solving environment: failed CondaHTTPError: HTTP 000 CONNECTION

在jupyter notebook和spyder切换python环境

谁说胖子不能爱 提交于 2020-01-16 01:55:06
有时需要在不同环境下运行jupyter notebook和spyder,如何在这两个编译器里切换python环境呢? 1. jupyter notebook切换python环境 这里以切换torch环境为例。 1.1 安装nb_conda 首先确认一下你的notebook里是否有conda这一个版块: 没有的话需要进行安装: 进入conda prompt,输入: conda install nb_conda 1.2 切换环境 安装完毕后重启Jupyter notebook就可以看到,进入该标题下: pytorch这个环境还没有对勾,就说明还不能切换到这个环境,在左下方搜索ipykernel包,进行安装 再重启jupyter notebook后,右上角新建中就可以选择我创建的pytorch环境了: 2. jupyter notebook切换python环境 首先在conda prompt中进入要切换的环境: 之后输入: conda install spyder spyder 就可以了 来源: CSDN 作者: YaqiYuki 链接: https://blog.csdn.net/weixin_43326692/article/details/103985350

Using Conda enviroment in SnakeMake on SGE cluster problem

独自空忆成欢 提交于 2020-01-15 23:02:07
问题 Related: SnakeMake rule with Python script, conda and cluster I have been trying to set up my SnakeMake pipelines to run on SGE clusters (qsub). Using simple commands or tools that are installed directly to computational nodes, there is no problem. However, there is a problem when I try to set up SnakeMake to download tools through Conda on SGE nodes. My testing Snakefile is: rule bwa_sge_c_test: conda: "bwa.yaml" shell: "bwa > snaketest.txt" "bwa.yaml" file is: channels: - bioconda

install R package from github using “conda”

╄→尐↘猪︶ㄣ 提交于 2020-01-15 09:32:29
问题 any one can suggest how to use conda in Linux to install R package from github? Thanks! 回答1: According to this: https://github.com/conda/conda/issues/6674 You can create your own conda skeleton of a github derived R-package much as you would for a CRAN package. Try doing conda skeleton cran <github_url> conda build --R=<my_r_version> Then upload the built conda package to your own anaconda repository. This will fail if any of the dependencies of the package are absent from the anaconda repos

Conda使用笔记

落花浮王杯 提交于 2020-01-15 02:12:43
使用 conda create 命令创建虚拟环境 创建特定python版本的虚拟环境: conda create - n env_name python=X . X 激活环境: activate env_name 关闭环境: deactivate env_name 来源: CSDN 作者: AAAA级风景区 链接: https://blog.csdn.net/weixin_43072901/article/details/103978003

ubuntu conda install xxx 出现问题

穿精又带淫゛_ 提交于 2020-01-14 17:55:30
Solving environment: failed with initial frozen solve. Retrying with flexible solve. 这是出现的问题,然后无法安装 这是错误结果 解决方法:依次输入以下程序 conda config --add channels conda-forge conda config --set channel_priority flexible 然后在执行自己的安装命令即可 亲测有效 来源: CSDN 作者: myh12138 链接: https://blog.csdn.net/myh12138/article/details/103973159

Installing package not found in conda

泪湿孤枕 提交于 2020-01-14 07:07:09
问题 I'm using python 3.6 as anaconda, and im trying to install python-twitter package, but there is no package compatible from conda manager. How can i download the package outside conda manager in order to use it later with jupyter notebook? 回答1: You can install pip in your conda env and then run pip install python-twitter . It should work. 回答2: Ubuntu:/$ which pip /home/superadmin/anaconda2/bin/pip Ubuntu:/$ /home/superadmin/anaconda2/bin/pip install apache-beam It worked... 回答3: If you prefer

jupyter Notebook环境搭建

巧了我就是萌 提交于 2020-01-14 03:43:59
1、什么是jupyter notebook   jupyter notebook是一种 Web 应用,能让用户将说明文本、数学方程、代码和可视化内容全部组合到一个易于共享的文档中。它可以直接在代码旁写出叙述性文档,而不是另外编写单独的文档。也就是它可以能将代码、文档等这一切集中到一处,让用户一目了然。 Jupyter这个名字是它要服务的三种语言的缩写:Julia,PYThon和R,这个名字与“木星(jupiter)”谐音。Jupyter Notebook 已迅速成为数据分析,机器学习的必备工具。因为它可以让数据分析师集中精力向用户解释整个分析过程。我们可以通过Jupyter notebook写出了我们的学习笔记。 2、jupyter notebook安装   对于新手,这里强力推荐使用 安装Anaconda 进行jupyter安装。Anaconda则是一个打包的集合,里面预装好了conda、某个版本的python、众多packages、科学计算工具等等,所以也称为Python的一种发行版。可方便地安装Python,Jupyter Notebook以及用于科学计算和数据科学的其他常用软件包。 安装如下: 安装步骤: 1、官网下载 Anaconda 。建议下载Anaconda的最新Python 3版本。 2、按照安装说明一步步安装即可。 值得注意的是,安装步骤中有一个地方需要确认:  

Installing OpenCV for all conda environments

女生的网名这么多〃 提交于 2020-01-13 19:25:31
问题 I have an Ubuntu 16.04 system with an Anaconda installation. I want to compile and install OpenCV 3.3 and use also the Python bindings. I used the following CMake command: cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=ON -D D WITH_FFMPEG=1 -D WITH_CUBLAS=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D INSTALL_PYTHON_EXAMPLES=ON -D INSTALL_C_EXAMPLES=OFF -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.3.0/modules -D BUILD_EXAMPLES=ON -D