conda

resetting conda channel priorities

安稳与你 提交于 2019-12-04 17:56:08
问题 I am having issues with conda. After running commands such as: conda install -c /my_conda_channel numpy --offline --override-channels the default conda channel has now become 'my_conda_channel' so that each subsequent package from this channel supercedes the default channel, which is not what I want. I did the former just for testing purposes. How do I reset the channel behaviour? 回答1: Change the order from ~/.condarc so that defaults the first channel as channels: - defaults - conda-forge

Conda returns an Attribute Error symbol not found after trying to install biopython

岁酱吖の 提交于 2019-12-04 16:38:24
I was playing around with trying to get biopython working and it seems like I broke conda in the process. At this point, the help menu for conda will display, and conda --version returns conda 4.7.5 but anything else including conda info throws an error AttributeError: dlsym(0x1004381c0, archive_read_open_filename_w): symbol not found This is on Mac OS 10.14.4. Conda was just working and I last used it to install biopython without error conda install -c conda-forge biopython . Running import Bio still resulted in an a ImportError: No module named Bio . So in troubleshooting I ran pip uninstall

Using conda install within a python script

家住魔仙堡 提交于 2019-12-04 16:19:51
问题 According to this answer you can import pip from within a Python script and use it to install a module. Is it possible to do this with conda install ? The conda documentation only shows examples from the command line but I'm looking for code that can be executed from within a Python script. Yes, I could execute shell commands from within the script but I am trying to avoid this as it is basically assuming that conda cannot be imported and its functions called. 回答1: I was looking at the latest

Anaconda : Update conda failed because permission error

我的梦境 提交于 2019-12-04 16:17:42
I'm using Anaconda version 5.1 on Windows 7 (64bit). I have tried to update conda from 4.4.10-py36_0 to 4.4.11-py36_0 but cannot and got error message (base) C:\Windows\system32>conda update -n base conda Solving environment: done Package Plan environment location: C:\ProgramData\Anaconda3 added / updated specs: - conda The following packages will be downloaded: package | build ---------------------------|----------------- conda-4.4.11 | py36_0 955 KB The following packages will be UPDATED: conda: 4.4.10-py36_0 --> 4.4.11-py36_0 Proceed ([y]/n)? y Downloading and Extracting Packages conda 4.4

“WARNING conda.gateways.disk:exp_backoff_fn(47): Uncaught backoff with errno 41” during “conda install”

江枫思渺然 提交于 2019-12-04 16:17:28
问题 Starting today I get a lot of WARNING conda.gateways.disk:exp_backoff_fn(47): Uncaught backoff with errno 41 warnings when I try to update or install packages using conda install or conda update . For example: (...) C:\Users\...> conda install numba Fetching package metadata ........... Solving package specifications: . Package plan for installation in environment C:\...: The following packages will be DOWNGRADED due to dependency conflicts: numba: 0.30.0-np111py35_0 --> 0.30.1-np111py35_0

python_linux系统相关配置

旧街凉风 提交于 2019-12-04 16:08:01
安装anoconda 极速下载安装 https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 网站极速下载。 bash Anaconda3-4.3.1-Linux-x86.sh 设定默认conda源(用于之后的conda极速安装相关python包) 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 更改pip源 pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple 来源: https://www.cnblogs.com/wujingqiao/p/11872889.html

SnakeMake rule with Python script, conda and cluster

萝らか妹 提交于 2019-12-04 15:21:18
I would like to get snakemake running a Python script with a specific conda environment via a SGE cluster. On the cluster I have miniconda installed in my home directory. My home directory is mounted via NFS so accessible to all cluster nodes. Because miniconda is in my home directory, the conda command is not on the operating system path by default. I.e., to use conda I need to first explicitly add this to the path. I have a conda environment specification as a yaml file, which could be used with the --use-conda option. Will this work with the --cluster "qsub" option also? FWIW I also launch

简明conda使用指南

我是研究僧i 提交于 2019-12-04 15:18:16
目录 区分conda, anaconda, miniconda conda版本 虚拟环境 分享环境 列出软件包 安装软件包 删除软件包 查找软件包 conda配置 区分conda, anaconda, miniconda anaconda相当于conda+python+pip+一堆python科学计算常用包(numpy, scipy, matplotlib等) miniconda相当于conda+python+pip,轻量级。 conda是通用的包管理器,能装pip包(例如numpy),也能装其他语言的软件包(例如ninja, cmake). 如果你用Python,做深度学习,那么强烈建议你使用miniconda/anaconda而不是系统自带Python/pip ,虽然硬盘空间可能多消耗一些,但往往能节省在环境配置上的时间开销。 conda版本 conda -V 或者 conda --version 虚拟环境 创建 虚拟环境 conda create -n env_name python=x.y e.g. 创建python3.5的虚拟环境: conda create -n py35 python=3.5 删除 虚拟环境 conda remove --name env_name --all 重命名 虚拟环境 没法直接重命名虚拟环境,只能很naive的从原有环境clone

How to list package versions available with conda

梦想的初衷 提交于 2019-12-04 14:57:28
问题 IS there a way to see what package versions are available with conda? I am getting an error with jupyter but it was working before. Something like yolk? 回答1: You can just type "conda search" which will give you something like the following. $ conda search Fetching package metadata ......... affine 2.0.0 py27_0 defaults 2.0.0 py35_0 defaults 2.0.0 py36_0 defaults alabaster 0.7.3 py27_0 defaults 0.7.3 py34_0 defaults 0.7.7 py27_0 defaults 0.7.7 py34_0 defaults 0.7.7 py35_0 defaults 0.7.9 py27_0

pycham软件下载及conda环境部署

吃可爱长大的小学妹 提交于 2019-12-04 12:15:52
1.pycham下载 一般不选择最新版本,我用的是2018.3,选择 Professional专业版 1.1 官网地址: https://www.jetbrains.com/pycharm/download/#section=mac 如果你不下载最新版本,请看下图点击other version 1.2 选择专业版2018.3 1.3 pycham密钥登陆 这个如果是mac用户可以去网上搜一下pycham密钥 windows,Ubuntu的用户永久使用方法: 修改你们的pycharm.exe.vmoptions和pycharm64.exe.vmoptions文件(我的是在E:\PyCharm 2018.2.4\bin\文件里) pycharm.exe.vmoptions -server -Xms128m -Xmx512m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX: