conda

How to use conda to create separate python environments, each with a different $PYTHONPATH

与世无争的帅哥 提交于 2019-12-18 16:59:36
问题 I would like to use conda to create different environments, each with a different $PYTHONPATH. Currently, I have to change the environment variables each time in my .bashrc. Is there a simple way of creating multiple python environments via conda, such that I can seamless switch (via source activate) and have the corresponding $PYTHONPATHs update automatically? 回答1: You can specify the PYTHONPATH before you execute any script, which would be easier than changing your .bashrc For example, to

Is it possible to lock versions of packages in Anaconda?

笑着哭i 提交于 2019-12-18 15:12:31
问题 I installed Anaconda 3 2.3.0 on Windows xp. It is supposed to be the last version of anaconda to support windows xp as it contains python 3.4.3, and python 3.4.x is the last version of python to support windows xp. When installing a package with conda install ,one of its dependencies was updating conda to conda 4.x. conda 4.x crashed in the commandline when running conda install . This made anaconda unusable that i uninstalled anaconda. My question, is it possible to lock versions of packages

Is it possible to lock versions of packages in Anaconda?

天大地大妈咪最大 提交于 2019-12-18 15:12:05
问题 I installed Anaconda 3 2.3.0 on Windows xp. It is supposed to be the last version of anaconda to support windows xp as it contains python 3.4.3, and python 3.4.x is the last version of python to support windows xp. When installing a package with conda install ,one of its dependencies was updating conda to conda 4.x. conda 4.x crashed in the commandline when running conda install . This made anaconda unusable that i uninstalled anaconda. My question, is it possible to lock versions of packages

condas `source activate virtualenv` does not work within Dockerfile

五迷三道 提交于 2019-12-18 14:13:09
问题 Scenario I'm trying to setup a simple docker image ( I'm quite new to docker, so please correct my possible misconceptions ) based on the public continuumio/anaconda3 container. The Dockerfile : FROM continuumio/anaconda3:latest # update conda and setup environment RUN conda update conda -y \ && conda env list \ && conda create -n testenv pip -y \ && source activate testenv \ && conda env list Building and image from this by docker build -t test . ends with the error: /bin/sh: 1: source: not

Conda: what happens when you activate an environment?

浪尽此生 提交于 2019-12-18 13:34:49
问题 How does running source activate <env-name> update the $PATH variable? I've been looking in the CONDA-INSTALLATION/bin/activate script and do not understand how conda updates my $PATH variable to include the bin directory for the recently activated environment. No where can I find the code that conda uses to prepend my $PATH variable. 回答1: Disclaimer: I am not a conda developer, and I'm not a Bash expert. The following explanation is based on me tracing through the code, and I hope I got it

How do I install a package for different Python versions in Anaconda?

痴心易碎 提交于 2019-12-18 13:26:03
问题 I have Python 2.7 as root. I need to install the package "statistics" in Python 3.6, and it is not in the environments of anaconda navigator. How can install "statistics" with conda or pip for a secondary Python environment? 回答1: Create a new Python 3 environment by running: conda create --name python3 python=3 If you want all the standard anaconda packages installed by default, do: conda create --name python3 python=3 anaconda Whenever you need to use python3 run: activate python3 Then use

Conda not found after upgrading to macOS Catalina

纵饮孤独 提交于 2019-12-18 12:53:07
问题 I've just updated my MacBook to Catalina. After the update, zsh can't find anymore. In fact, in my .zshrc I had: export PATH=/anaconda3/bin:$PATH However, the path /anaconda3/bin doesn't exist anymore. Does that mean that I have lost all of my environment? 回答1: You can find the entire anaconda3 environment in a shortcut link named 'Relocated Items' on your desktop. It appears as though the upgrade to Catalina does not allow the Conda environment to be installed under a user directory now

How to get Conda and Virtualenv to work on mac OS Catalina?

百般思念 提交于 2019-12-18 12:24:23
问题 I previously had Conda running smoothly on Mojave, but I've found that the upgrade to Catalina moves the "anaconda3" folder to your Desktop > Relocated Items > Security > anaconda3. It seems Catalina's security settings may not allow applications to install directly under the user directory anymore. I tried the suggestion here, written below: Hi, I might have a solution Copy the folder anaconda3 located in Relocated Items to /Users/myname/ Open Terminal Enter: export PATH=''/Users/myname

Conda - Silently installing a package

╄→尐↘猪︶ㄣ 提交于 2019-12-18 10:58:45
问题 I am trying to automate the process of setting up a development environment with pandas package using conda. I installed conda, created and activated a dev environment. When I tried to install a package as follows, I noticed that there was a prompt to which a user had to key in Y or N (Proceed ([y]/n)?) for the installation to proceed successfully. $ conda install pandas Fetching package metadata: .... Solving package specifications: .................. Package plan for installation in

How to set up conda-installed R for use with RStudio?

雨燕双飞 提交于 2019-12-18 10:53:36
问题 I've been trying to set up my R using conda (eventually to use with Beaker Notebook) and I want to be able to use RStudio with my conda-installed version of R . My method of installing R : conda install -c r r conda install -c r r-essentials conda install -c r r-rserve conda install -c r r-devtools conda install -c r r-rcurl conda install -c r r-RJSONIO conda install -c r r-jpeg conda install -c r r-png conda install -c r r-roxygen2 conda install --channel https://conda.anaconda.org/bioconda