Questions tagged [conda]

Conda is a package management and environment management system. It is open-source, cross-platform and language-agnostic. Written in Python, conda is included in Miniconda and the Anaconda Python distribution.

The conda documentation is available online. conda as a system command is available through Miniconda or the larger Anaconda distribution, made by Anaconda Inc.

7926 questions
88
votes
18 answers

Conda update fails with SSL error CERTIFICATE_VERIFY_FAILED

I have a problem with conda update. Specifically, I tried doing conda update , and I got the following error: Could not connect to https://repo.continuum.io/pkgs/free/osx-64/decorator-4.0.2-py27_0.tar. bz2 Error: Connection error:…
Dendi Suhubdy
  • 2,877
  • 3
  • 19
  • 20
85
votes
4 answers

How to set specific environment variables when activating conda environment?

Does anyone know how to automatically set environment variables when activating an env in conda? I have tried editing */bin/activate, but that adds the new environment variables for every new env that is created. I want to set env variables that are…
PythonRunner
  • 1,531
  • 2
  • 12
  • 11
83
votes
7 answers

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'

I'm trying to create a virtual environment using conda on Google Colaboratory. However, I can't activate with the following error. CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your…
Leo.H
  • 1,013
  • 2
  • 8
  • 6
81
votes
14 answers

Python - Activate conda env through shell script

I am hoping to run a simple shell script to ease the management around some conda environments. Activating conda environments via conda activate in a linux os works fine in the shell but is problematic within a shell script. Could someone point me…
user9074332
  • 2,336
  • 2
  • 23
  • 39
80
votes
24 answers

conda update CondaHTTPError: HTTP None

Midway through running Conda Update --all, the update stalled. Multiple packages had been updated. Now, when I run conda update --all or conda update conda, I get this response: (C:\Users\*****\AppData\Local\Continuum\Anaconda3) C:\Users\*****>conda…
user3730972
  • 901
  • 1
  • 7
  • 6
80
votes
5 answers

Using (Ana)conda within PyCharm

I've got Pycharm 4 running on my Linux (Ubuntu 14.04) machine. In addition to the system python, I've also got Anaconda installed. Getting the two to play nicely together seems to be a bit of a problem... PyCharm provides some interesting…
memilanuk
  • 3,522
  • 6
  • 33
  • 39
79
votes
6 answers

What does conda do when "solving environment"

Whenever I run conda install/remove/update , 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 , but why…
dkv
  • 6,602
  • 10
  • 34
  • 54
79
votes
11 answers

PackageNotInstalledError: Package is not installed in prefix

conda update conda >> successful conda update anaconda >> gives me error saying package is not installed in prefix. I have single installation of Python distribution on my system. How do I solve this issue? (base) C:\Users\asukumari>conda info …
Rene Duchamp
  • 2,429
  • 2
  • 21
  • 29
77
votes
7 answers

jupyter notebook running kernel in different env

I've gotten myself into some kind of horrible virtualenv mess. Help?! I manage environments with conda. Until recently, I only had a python2 jupyter notebook kernel, but I decided to drag myself kicking and screaming into the 21st century and…
Paul Gowder
  • 2,409
  • 1
  • 21
  • 36
74
votes
13 answers

RemoveError: 'requests' is a dependency of conda and cannot be removed from conda's operating environment

Having trouble installing a third party library and I have not seen this error before using Windows 10 with Anaconda installed: C:\Users\XYZ>conda env create -f python3.6-environment-windows.yml Collecting package metadata: done Solving environment:…
Goose
  • 2,130
  • 10
  • 32
  • 43
74
votes
5 answers

How to add package to conda environment without pip

How can I add a package to an existing conda environment? If it is a python package I can use pip install , but what if pip does not work? Is it sufficient to activate the environment and use conda install ?
Soerendip
  • 7,684
  • 15
  • 61
  • 128
72
votes
22 answers

No module named "Torch"

I successfully installed pytorch via conda: conda install pytorch-cpu torchvision-cpu -c pytorch I also successfully installed pytorch via pip: pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp36-cp36m-win_amd64.whl pip3 install…
RedCrayon
  • 823
  • 1
  • 6
  • 5
72
votes
11 answers

How to install R packages that are not available in "R-essentials"?

I use an out-of-the-box Anaconda installation to work with Python. Now I have read that it is possible to also "include" the R world within this installation and to use the IR kernel within the Jupyter/Ipython notebook. I found the command to…
Frank
  • 1,315
  • 1
  • 10
  • 14
72
votes
3 answers

Conda environments and .BAT files

I am setting up calls to python (Anaconda distribution) via BAT files and the windows task scheduler. I've now used environments for the first time and was trying to set a .bat file up as below: activate [my_env] python…
Hans
  • 2,800
  • 3
  • 28
  • 40