conda

Anaconda安装第三方库与pip和conda 添加国内源

百般思念 提交于 2019-12-03 23:38:07
Anaconda安装第三方库 PIP使用命令 Anaconda命令 pip和conda 添加国内源 1:PIP相关命令 卸载 pip uninstall XXX 1.升级pip python -m pip install --upgrade pip 2.升级NumPy python -m pip install --upgrade numpy(此升级不稳定 建议下载最新版执行手动安装) 3: 带配置的升级 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyecharts==0.5.10 4: 安装具体版本 pip install xxx=1.2.3 5:查看软件包信息 pip3 show xxx 6: 搜索相关包 pip search xxx 7:列出已经安装好包 pip3 list 2:Anaconda相关命令 官网: https://conda.io/en/latest/  建议直接pip管理相关包,如果使用anaconda ,那么才有必要使用此conda 2.1基本使用 1: 查看是否安装成功,如果安装没问题会显示conda版本号 conda --version 2:搜索包 conda search fastqc 3:安装包 conda install numpy 4 安装指定包 conda install

二:Anaconda的使用

旧街凉风 提交于 2019-12-03 23:07:19
一:简介 Anaconda 是一个用于科学计算的 Python 发行版,支持 Linux, Mac, Windows, 包含了众多流行的科学计算、数据分析的 Python 包 二:简单指令 1) 列出所有已有环境 conda env list conda info -e 2) 创建一个新的环境 conda create -n env_name python=version    进入环境 activate env_name 3) 删除一个已有的环境 conda env remove -n env_name 4) 分享代码的时候,同时也需要将运行环境分享给大家 conda env export > env.yaml 5) 用对方分享的 YAML 文件来创建一模一样的运行环境 conda env create -f env.yaml 管理包 1) 下载包 conda install package_name 2) 下载包的同时,也可以指定下载的版本 conda install pack=version 3) 删除包 conda remove package_name 4) 更新包 conda update package_name 5) 列出所有已安装的包 conda list 6) 查找包的版本信息 conda search package_name 来源: https://www

What does conda do when “solving environment”

半城伤御伤魂 提交于 2019-12-03 22:06:50
Whenever I run conda install/remove/update <package> , it tells me it's "Solving environment" for some time before telling me the list of things it's going to download/install/update. Presumably it's looking for dependencies for <package> , but why does it sometimes remove packages after doing this operation? For example, as I was trying to install Mayavi, it decided it needed to remove Anaconda Navigator. Furthermore it does not provide an option to perform only a subset of the suggested operations. Is there a way to specify that I don't want a package removed? You can add --debug option to

关于Anaconda的虚拟环境操作

99封情书 提交于 2019-12-03 20:22:14
# 1.创建虚拟环境 conda create -n env_name python==版本号 # 2.激活虚拟环境 conda activate env_name # 3.下载相关模块 pip install 模块名 # 4.查看模块 pip freeze # 5.删除模块 pip uninstall 模块名 # 6.删除虚拟环境 conda env remove -n env_name 来源: https://www.cnblogs.com/JerryBabyrr/p/11806810.html

Anaconda3 activate.bat is not recognized as an internal or external command

99封情书 提交于 2019-12-03 17:13:25
问题 I have downloaded Anaconda3 for windows 64-bit operating system. After the download and install completed, I opened the Anaconda prompt but it give me this nice error: 'C:\Anaconda3\Scripts\activate.bat' is not recognized as an internal or external command,operable program or batch file. I just surfed the internet and found a solution to uninstall all previous packages of python but did not work. I have searched for activate.bat file in my system " found it in one folders of anaconda

conda: remove all installed packages from base/root environment

半城伤御伤魂 提交于 2019-12-03 15:33:53
问题 TL:DR: How can I remove all installed packages from base ? I installed a bunch of machine learning packages in my base conda environment. I've now created a ml environment for machine learning, and wish to reset my base environment by removing all the packages installed there. I've tried: % activate base % conda uninstall -n base --all CondaEnvironmentError: cannot remove current environment. deactivate and run conda remove again Apparently, I can't remove packages from the current

Anaconda学习

风流意气都作罢 提交于 2019-12-03 15:12:33
1. Anaconda概述 Anaconda可以理解为python的一个发型版本,里面包含了conda、numpy、panda等大量常用的包。为我们带来两点便利: 允许本机存在多个python环境,且互相隔离,互不影响。 内置的conda提供了便捷的包管理,引入一个包时,完全不需要考虑版本兼容性和包依赖冲突问题(在原生python环境下装过panda的同学应该有所体会) Anaconda的安装请参考这篇文章: https://www.jianshu.com/p/62f155eb6ac5 2. Anaconda常用命令 2.1 查看本地python环境列表 conda env list 2.2 新建环境 conda create -n 环境名称 python= 版本号 e.g. conda create -n python3 python=3.7 2.3 切换环境 conda activate 环境名称 e.g. conda activate python3 2.4 退出环境 conda deactivate 为什么会有退出环境这一说呢? 如果我们进入conda环境是,命令行是原始形态,主机名前面什么也没有 当我们指定了conda环境后,请看下图 变化有两点: 命令行前面会一直带有(python3) -- 环境包名 python启动信息中可以看到Anaconda商标

Cannot import packages installed in new Conda environment

佐手、 提交于 2019-12-03 15:06:05
I am trying to make my own conda python environment on HPC server, and something very strange is happening. The problem After creating a new conda environment, it appears that python is not seeing itself in this environment, and using the base environment... Thus I cannot use packages installed in the new environment, but I can see the ones in the base environment... Here is what I did I install my environment as follows: $ conda create -n niml pip python=3.6.5 $ source activate niml (niml) $ conda install -c conda-forge luigi and then I check my installed packages: (niml) $ conda list and

Unable to update conda packages behind corporate firewall. Updated .condarc file, proxy settings still it is asking for Proxy user name and password

感情迁移 提交于 2019-12-03 15:03:41
问题 I am behind a corporate firewall. I am trying to update the conda packages by running : conda update --all This is aking me for proxy user name and password. https proxy username: https proxy username: Password: After reading many articles on this problems i have taken help from my IT people and updated the proxy_server content in ".condarc" file as follows: binstar_upload: true channels: - https://conda.binstar.org/numba - https://pypi.python.org/simple/ - defaults proxy_servers: http: http:

Use pip or conda to manage packages?

江枫思渺然 提交于 2019-12-03 14:13:58
I have been doing machine-learning for quite a long time using matlab and have recently switched to python and for installing certain packages used its package manager pip and successfully installed many packages. A few days ago I started using conda and all my previously installed packages are getting overridden. I really want to know the difference between pip and conda and what happens if I use pip to install packages instead of conda? pip and conda have common points and differences. It is hard to explain better than what Jake VanderPlas did here: https://jakevdp.github.io/blog/2016/08/25