conda

How to reduce the number of files in the anaconda directory?

纵然是瞬间 提交于 2019-12-08 15:58:05
问题 I'm running conda environments on a compute cluster where the total number of files per "project" is restricted (200k files max). I've only created a couple of conda environments (anaconda for Python 2.7; ~200 python & R packages installed in each environment; high package overlap between environments) and already hit that file number limit. Even when using conda clean -a only a small fraction of the files are removed. Some python packages in my conda environments (e.g., boost) contain >10k

Practical difference between pip and conda

别来无恙 提交于 2019-12-08 15:53:58
问题 I saw other questions regarding difference between pip and conda, but it is not clear to me yet, please consider that before marking as duplicate. If I run pip install seaborn and conda install seaborn Will I get the same result ? I can run pip install seaborn twice without any problem, but if I run pip install and then conda install do I get the same package duplicated in two different places ? Conda and pip cannot be used interchangeably but what are examples of that ? 回答1: Both pip and

Could not find conda environment

喜夏-厌秋 提交于 2019-12-08 15:31:33
I am trying to re-enter my conda environment but I am having trouble doing so as when I type conda activate (evironment name) or source activate (environment name) both return the error 'Could not find conda environment.' This is very strange as when I type conda info --envs , I get this: # conda environments: # base * /Users/(my name)/anaconda3 /anaconda3/envs/(environment name) Names and Prefixes For a Conda env to have a name it must be installed in one of the envs_dirs directories (see conda config --show envs_dirs ). Creating an env outside of one of those forfeits its "name-ability".

Using conda environment in iPython interactive shell

醉酒当歌 提交于 2019-12-08 15:26:45
问题 I am trying to use the interactive shell of iPython within my conda env and am having issues. The steps I take are: source activate myenv conda install ipython ipython When I am in ipython interactive shell, it calls python from the anaconda root bin. ( ~/anaconda2/bin' ) Is there anything I can do to change the python path to ~/anaconda2/envs/myenv/bin and import packages from myenv? I see few solutions to making env work in jupyter when I search the web, but no answer on making it work on

Windows cmd git bash: conda.sh no such file or directory (Windows line endings, missing slashes)

狂风中的少年 提交于 2019-12-08 05:30:00
问题 I'm working in Windows 10 with a fresh installation of Anaconda and Git Bash. I decided to set cmd.exe as my default console program to use git bash (instead of the minTTY), and I think already I am getting issues with Unix style characters vs Windows. When I fire up cmd Bash tells me it can't find my conda.sh file: bash: C:UsersjoshuAnaconda3/etc/profile.d/conda.sh: No such file or directory First, it looks like bash is missing the default windows slashes for my root directory ("C:/Users

Could not find conda environment

倾然丶 夕夏残阳落幕 提交于 2019-12-08 03:12:20
问题 I am trying to re-enter my conda environment but I am having trouble doing so as when I type conda activate (evironment name) or source activate (environment name) both return the error 'Could not find conda environment.' This is very strange as when I type conda info --envs , I get this: # conda environments: # base * /Users/(my name)/anaconda3 /anaconda3/envs/(environment name) 回答1: Names and Prefixes For a Conda env to have a name it must be installed in one of the envs_dirs directories

conda missing requests.packages.urllib3.util.url

回眸只為那壹抹淺笑 提交于 2019-12-08 02:56:31
问题 Somehow I broke my conda/urllib3 installation (Python 2.7 / Anaconda) but without admin rights to the machine I use have limited options to fix / reinstall everything the whole anaconda. For any conda operations,(e.g. conda install launcher), I am getting the message: Traceback (most recent call last): File "C:\Anaconda2\Scripts\conda-script.py", line 3, in <module import conda.cli File "C:\Anaconda2\Lib\site-packages\conda\cli\__init__.py", li from .main import main # NOQA File "C:\Anaconda2

Conda Not Installing Latest Version

时间秒杀一切 提交于 2019-12-08 02:28:40
问题 I'm installing cvxpy from cvxgrp. Looking a the link it clearly shows version 1.01 for win-64. However when I go to run the install conda install -c cvxgrp cvxpy it downloads and installs "cvxpy-0.4.10". Updating "all" does not seem to help. I checked conda info and it shows "platform : win-64". conda info Is there a conflict? How can I get the latest version? 回答1: If you look at the list of files for version 1.01, you'll see that the win-64 build is only for Python 2.7. The installation

Errors building R-packages for conda

吃可爱长大的小学妹 提交于 2019-12-07 22:54:59
问题 I am having a tough time installing R-packages that are not available in the Anaconda repositories. My attempts so far can be found here How to install R-packages not in the conda repositories?. Currently, I am trying to build the R-package rafalib for conda by following the instructions from this article under the heading Building a conda R package . The first part works fine. conda skeleton cran rafalib Out: Tip: install CacheControl to cache the CRAN metadata Fetching metadata from http:/

How to use Jupyter notebooks in a conda environment?

本秂侑毒 提交于 2019-12-07 22:27:51
问题 Typically one runs jupyter notebook or jupyter-notebook or ipython notebook in a terminal to start a Jupyter notebook webserver locally (and open the URL in the browser). When using conda and conda environments, what is the best way to run a Jupyter notebook which allows to import Python modules installed in the conda environment? As it seems, this is not quite straight forward and many users have similar troubles. Most common error message seems to be: after installing a package XYZ in a