conda

conda 更新源

白昼怎懂夜的黑 提交于 2019-12-05 00:20:09
更新conda 源为阿里源 conda config --add channels http://mirrors.aliyun.com/pypi/simple conda config --set show_channel_urls yes 阿里云: http://mirrors.aliyun.com/pypi/simple/ 豆瓣: http://pypi.douban.com/simple/ 清华大学源 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 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 查看源 conda config --show-sources 删除安装的源 conda config --remove-key channels 来源: https://my.oschina.net/jywm/blog/3131409

Activating conda environment with it's full path

妖精的绣舞 提交于 2019-12-05 00:10:44
Usually, we activate a conda environment with command: source activate env_name But, is it possible to activate conda environment with it's full path? For example: source (fullpath)/bin/activate When I do this it activates the default environment of anaconda i.e root environment. Update for conda 4.4 and up: You need to specify the conda environment path to activate. The new conda activate command should not need the full path to an "activate script" any longer, since the command is now "built-in" to conda. So something like: conda activate (fullpath)/env-name-here should work. The command you

Python开发之Anconda环境搭建

限于喜欢 提交于 2019-12-05 00:05:34
Python的强大之处在于它的应用范围广泛,遍及人工智能、科学计算、web开发、系统运维、大数据及云计算等,实现其强大功能的前提,就是Python具有数量庞大且功能相对完善的标准库和第三方库。通过对库的引用,能够实现对不同领域业务的开发,然而,由于库的数量庞大,对于这些库的管理和维护就成为了一项特别繁琐的事情,Anconda应运而生。 Anconda地址: https://www.anaconda.com/distribution/#download-section Anconda是一个开源的软件包管理系统和环境管理系统,用于安装多个版本的软件包及它们的依赖关系,并在它们之间自由切换。 pip只管理python依赖库,不涉及非python依赖库 常用命令: 1 conda env list // 查看conda管理的所有环境 2 conda list // 列出当前环境的所有包 3 conda install <package_name> // 安装package_name包 4 conda remove <package_name> // 卸载package_name包 5 conda update <package_name> // 更新package_name包 6 conda create -n <name> python = <version> //

How to switch environment on Jupyter notebook for new notebook?

删除回忆录丶 提交于 2019-12-04 23:49:35
问题 I have an instance with various environment and some notebooks are compatible with different environment for e.g. notebook1 is for MXNet and notebook2 is for Tensorflow. How do I jump to new environment when I move from notebook1 to notebook2? I tried doing that but this doesn't quite work with Jupyter notebook? Any suggestion? So I need to do it from conda environment but looks like jupyter notebook UI doesn't respect (calls right activation function) to set the path. 回答1: You could use the

Cannot import packages installed in new Conda environment

社会主义新天地 提交于 2019-12-04 22:38:57
问题 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 and Python Modules

隐身守侯 提交于 2019-12-04 20:54:00
问题 Sadly, I do not understand how to install random python modules for use within iPython Notebooks with my Anaconda distribution. The issue is compounded by the fact that I need to be able to do these things without always using a live internet connection. Most frequently I run into a problem with gcc compiling, where I can install a module with my basic Python2.7, but not with Conda or with the Anaconda/Python.exe. Is Conda only able to install certain modules, as opposed to all valid python

linux/ubuntu下最简单好用的python opencv安装教程 ( 解决 imshow, SIFT, SURF, CSRT使用问题)

三世轮回 提交于 2019-12-04 20:50:39
希望这篇文章能彻底帮你解决python opencv安装和使用中的常见问题. 懒人请直奔 这一节 , 一条命令安装 opencv 使用python-opencv常用的问题 在linux中使用python版的opencv相信大家都会遇到各种问题, 常见的问题比如: imshow 无法使用, 会出现如下警告. 这是因为python-opencv没有编译gtk, 网上的解决方法可能会推荐你重新编译什么的, 太过麻烦, 也不一定能解决. cv2.error: OpenCV(4.1.0) /io/opencv/modules/highgui/src/window.cpp:627: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage' 一些opencv的nonfree特性无法使用, 比方说 SIFT, SURF 等等,

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

元气小坏坏 提交于 2019-12-04 20:25:36
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 you can use --prefix option documentation Option 1: If you want to create your virtual environment in current directory then use conda create --prefix=envName python=X.X Option 2: if you want to mention the directory

I'm trying to update conda and get PermissionError(13, 'Access is denied')

佐手、 提交于 2019-12-04 19:59:14
I would like to update conda, anaconda, and python to the latest versions. I executed the following commands and received the following prompts. What's happening and how can I fix this? I appreciate the help C:\Users\nabr>conda update --all Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.4.10 latest version: 4.5.11 Please update conda by running $ conda update -n base conda # All requested packages already installed. C:\Users\nabr>conda update -n base conda Solving environment: done ## Package Plan ## environment location: C:\Program Files (x86)

Install opencv with conda

拟墨画扇 提交于 2019-12-04 19:32:47
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:21) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or