conda

resetting conda channel priorities

半城伤御伤魂 提交于 2019-12-03 10:38:36
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? Change the order from ~/.condarc so that defaults the first channel as channels: - defaults - conda-forge and add this line to it channel_priority: true or run the following code in command-line conda config --set

Using conda install within a python script

放肆的年华 提交于 2019-12-03 10:27:06
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. I was looking at the latest Conda Python API and noticed that there are actually only 2 public modules with “very long-term stability”:

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

[亡魂溺海] 提交于 2019-12-03 10:20:57
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 Proceed ([y]/n)? y numba-0.30.0-np111p35_0 100% |###############################| Time: 0:00:00 2.50 MB/s

How to backup Anaconda added packages?

雨燕双飞 提交于 2019-12-03 10:15:48
I have Anaconda for Python 2, It came packed with a lot of useful packages. During my work, I have added several packages to it using conda install command. Now I have to format my system, and I want to backup/pack all the added libraries, either as full packages or even by knowing the installation command of each one. I searched StackOverflow , I found one unanswered question with a similar problem, the question suggested conda list -e >file_list.txt to create a file contains all the installed packages, but this is not sufficient for me, I want Anaconda to determine which package is added by

Possible to do “conda build” from github branch?

旧时模样 提交于 2019-12-03 09:49:31
I know that I can tell conda to build from github as: source: fn: v1.6.0.tar.gz url: https://github.com/SciTools/iris/archive/v1.6.0.tar.gz md5: 24c2d55758325a8f05aadf99748c0d2a or source: git_url: git@github.com:SciTools/iris.git git_tag: v1.6.0 but how would one tell conda to build from a github branch? asmeurer Just put the branch name in the git_tag section. All it does is git checkout that "tag", so it doesn't have to be an actual git tag. It can be anything that git can checkout . For example, if you want to conda build from branch udunits_xml_path , use: source: git_url: https://github

How to list package versions available with conda

。_饼干妹妹 提交于 2019-12-03 09:19:12
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? 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 defaults The Student Soul Although the question has already been answered, for anyone else who ventures

Failed to run Python script with Conda

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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? 回答1: It seems that visualize_images is meant to be used from ipython

Use pip or conda to manage packages?

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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? 回答1: I really want to know the difference between pip and conda See What is the difference between pip

How to install Selenium in a conda environment?

匿名 (未验证) 提交于 2019-12-03 08:42:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to install Selenium in a conda environment in Windows 10 with conda install --name myenv selenium but this returns the error PackageNotFoundError: Package missing in current win-64 channels: - selenium How can I complete this package installation? 回答1: Conda uses different channels to search for packages. You need find the package which supports Win 64 You can do that by going to below link https://anaconda.org/search?q=selenium&sort=ndownloads&sort_order=-1&reverse=true And you will find that this is most downloaded one https:/

Why is Anaconda source activate non-existent?

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I successfully created two separate Python environments in Anaconda, yet seem to be unable to activate either one of them. I have tried to read up on this topic as much as possible here on Stackoverflow, yet no solution did resolve my issue. I added information asked for by comments in this question ( Anaconda Environment Doesnt activate ). When trying to activate an environment, the console output is -bash: activate: No such file or directory . The output of which conda is /Users/username/anaconda3/bin/conda . The output of type source is