conda

Ubuntu 16.04上anaconda安装和使用教程,安装jupyter扩展等 | anaconda tutorial on ubuntu 16.04

百般思念 提交于 2019-12-05 18:54:44
本文首发于个人博客 https://kezunlin.me/post/23014ca5/ ,欢迎阅读最新内容! anaconda tutorial on ubuntu 16.04 <!--more--> Guide versions: ubuntu 16.04 conda 4.6.14 python 3.7.3 (default) python 3.5.6 (env) Install Conda download Anaconda3-2019.03-Linux-x86_64.sh from here bash ./Anaconda3-2019.03-Linux-x86_64.sh output [/home/kezunlin/anaconda3] >>> PREFIX=/home/kezunlin/anaconda3 installing: python-3.7.3-h0371630_0 ... Python 3.7.3 ... installing: scikit-image-0.14.2-py37he6710b0_0 ... installing: scikit-learn-0.20.3-py37hd81dba3_0 ... installing: astropy-3.1.2-py37h7b6447c_0 ... installing: statsmodels-0.9.0

关于 from scipy.misc import imread, imresize, imsave 报错的问题

拥有回忆 提交于 2019-12-05 18:11:32
使用 from scipy.misc import imread, imresize, imsave 时出现报错,查找后发现新版本的Scipy不再包含imread,imresize,imsave,需要使用的话,就安装 scipy 1.0.0 版本, 比如: conda install --prefix= /home/xxx/PycharmProjects/project_01/env scipy=1.0.0 imread将用 imageio.imread 来取代,输入: conda install --prefix= /home/xxx/PycharmProjects/project_02/env imageio 安装imageio 同样imresize,imsave也被从scipy移除,分别使用 skimage.transform.resize 和 imageio.imwrite 来代替。 安装skimage (Scikit-image) conda install --prefix= /home/xxx/PycharmProjects/project_02/env scikit-image 来源: https://www.cnblogs.com/booturbo/p/11939187.html

利用.bashrc来动态切换conda2和conda3

ぃ、小莉子 提交于 2019-12-05 17:52:46
需求 最近想要从conda2切换到conda3,但是因为之前的许多应用还是依赖于python2的环境,于是就产生了动态切换conda3的需求 分析 笔者使用的是Ubuntu的环境,并且conda是安装在用户目录下的,也就是 /home/user/anaconda2 ,成功安装conda3之后,也会在用户目录下生成目录 /home/user/anaconda3 ,于是我想应该只需要动态切换一些环境变量就能实现动态切换了 解决方案 安装 anaconda3 去 官方目录 下载最新版本的anaconda3,笔者下载好的文件是: Anaconda3-2019.10-Linux-x86_64.sh , 在终端目录下运行: $ bash Anaconda3-2019.10-Linux-x86_64.sh 在安装的最后一步会提示需不需要运行 conda init ,这个时候选择 yes 这项功能会在 ~/.bashrc 文件下生成一段shell代码 # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/home/user/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"

关于Anaconda命令

人盡茶涼 提交于 2019-12-05 17:44:10
conda在安装依赖包的时候会检测已有包的版本与需要安装的版本是否匹配、以及相关包更新后的版本与现有的其他包是否会造成冲突。 添加清华镜像源(依赖包仓库): 安装好anaconda、配置好环境变量后,再到命令行中直接使用以下命令: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ #设置搜索时显示通道地址 conda config --set show_channel_urls yes 注:默认仓库: 在 ‪ C:\Users\pw\.condarc 中添加“-defaults” 有时候国内镜像源无法连接,需要恢复原来的源: conda config --remove-key channels 删除镜像: conda config - -remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda --version 查看版本 conda upgrade --all 升级所有工具包

虚拟环境创建的另外一种方法:anaconda

流过昼夜 提交于 2019-12-05 17:31:55
anaconda基本使用- 主要是一个虚拟环境管理器-还是一个安装包管理器- conda list: 显示anaconda安装的包- conda env list: 显示anaconda你的虚拟环境列表- conda create -n oop python=3.7 创建一个名为oop的虚拟环境- conda activate oop 激活oop环境- conda deactivate 取消激活 来源: https://www.cnblogs.com/mini-test/p/11937211.html

Anaconda is not creating full environment

☆樱花仙子☆ 提交于 2019-12-05 15:22:58
I'm trying to create a conda environment using git-bash and win10. I ran: $ conda create --name my_env The result looks like the screenshot above. Looking at other environments , I can see they normally look like: How can I fix this? pkowalczyk To create the environment with the Python executable, use one of: conda create --name my_env python # latest available python version conda create --name my_env python=3.7 # specific python version Without specifying packages, i.e. python as above, conda just doesn't install anything at all in my_env environment. You can alternatively install the Python

Reproducing conda environment when packages are no longer available from channels

末鹿安然 提交于 2019-12-05 13:57:21
I would like to publish the conda environment used for data analysis underlying a scientific paper. I saved the environment to a .yml file using conda env export > environment.yml I was able to re-create the same environment on a different machine for a while using conda env create -f environment.yml . A couple of months later, creating the environment from the same .yml file fails: ResolvePackageNotFound: - vc=14.1=h0510ff6_3 - vs2015_runtime=15.5.2=3 Presumably these versions are not longer available on the channels specified in the file? Or could this reflect a different issue? Perhaps, the

Can packages be shared across Anaconda environments?

只愿长相守 提交于 2019-12-05 13:28:55
问题 My ~/anaconda directory is taking up too much disk space (10GB), although I have only five environments and have run conda clean . I discovered that when I try to create a new conda environment, Anaconda displays a very long list of packages to be downloaded, which seems to include a full scientific Python stack (Python interpreter, numpy, scipy, etc.). It seems that Anaconda is installing everything independently for each environment. Is this true? The following list contains some purely

Difference between conda and pip installs within a conda environment

故事扮演 提交于 2019-12-05 13:16:09
I seem to be asking myself this question a lot, having recently switched to using conda environments (Anaconda), but I end up Googling and not getting too far. I now run all my projects within their own conda environments, as I like to keep everything as separate and with as little dependencies on other programs as possible. For example, a recent environment: conda create -n RL numpy tensorflow-gpu Then I activate the environment, and realise "Oh - I forgot to install gym". In this case, this is only available in the PIP package manager, and so I simply type pip install gym . But in other

Failed to run Python script with Conda

六月ゝ 毕业季﹏ 提交于 2019-12-05 12:40:07
I tried to install menpo like in this tutorial . After that I installed menpofit, menpo3d and menpodetect: conda install -c menpo menpofit conda install -c menpo menpo3d conda install -c menpo menpodetect Next I ran this python script from CMD( python testPy.py ): import menpo.io as mio from menpo.visualize import visualize_images images = list(mio.import_images('A:/img/*.png')) visualize_images(images) And got this output: What am I doing wrong and how I can fix it? It seems that visualize_images is meant to be used from ipython-notebook . Calling it in a regular python script does not seem