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
243
votes
21 answers

The environment is inconsistent, please check the package plan carefully

I tried to update or install new packages from anaconda and lately, this message has appeared: The environment is inconsistent, please check the package plan carefully The following package are causing the inconsistency: -…
Angel Salazar
  • 2,564
  • 2
  • 10
  • 16
232
votes
6 answers

Conda version pip install -r requirements.txt --target ./lib

What is the conda version of this? pip install -r requirements.txt --target ./lib I've found these commands: while read requirement; do conda install --yes $requirement done < requirements.txt But it doesn't tell how to specify --target ./lib
vineeth kanaparthi
  • 2,355
  • 2
  • 10
  • 6
232
votes
4 answers

Combining conda environment.yml with pip requirements.txt

I work with conda environments and need some pip packages as well, e.g. pre-compiled wheels from ~gohlke. At the moment I have two files: environment.yml for conda with: # run: conda env create --file environment.yml name: test-env dependencies: -…
bastelflp
  • 9,362
  • 7
  • 32
  • 67
230
votes
18 answers

How to change default Anaconda python environment

I've installed Anaconda and created two extra environments: py3k (which holds Python 3.3) and py34 (which holds Python 3.4). Besides those, I have a default environment named 'root' which the Anaconda installer created by default and which holds…
user2734434
  • 2,661
  • 2
  • 14
  • 16
228
votes
5 answers

Should conda, or conda-forge be used for Python environments?

Conda and conda-forge are both Python package managers. What is the appropriate choice when a package exists in both repositories? Django, for example, can be installed with either, but the difference between the two is several dependencies…
user6536435
221
votes
15 answers

How to activate an Anaconda environment

I'm on Windows 8, using Anaconda 1.7.5 64bit. I created a new Anaconda environment with conda create -p ./test python=2.7 pip from C:\Pr\TEMP\venv\. This worked well (there is a folder with a new python distribution). conda tells me to type…
pandita
  • 4,739
  • 6
  • 29
  • 51
216
votes
4 answers

Bulk package updates using Conda

Is there a way (using conda update) that I can list outdated packages and select or bulk update (compatible) packages in Anaconda? It doesn't make much sense updating the packages individually as there are hundreds of them.
Afloz
  • 3,625
  • 3
  • 25
  • 31
209
votes
8 answers

how to specify new environment location for conda create

the default location for packages is .conda folder in my home directory. however, on the server I am using, there is a very strict limit of how much space I can use, which basically avoids me from putting anything under my home directory. how can I…
linX
  • 2,199
  • 2
  • 13
  • 4
208
votes
7 answers

From conda create requirements.txt for pip3

I usually use conda to manage my environments, but now I am on a project that needs a little more horsepower than my laptop. So I am trying to use my university's workstations which have new Intel Xeons. But I don't have admin rights and the…
ITA
  • 3,200
  • 3
  • 18
  • 32
198
votes
15 answers

ModuleNotFoundError: No module named 'sklearn'

I want to import sklearn but there is no module apparently: ModuleNotFoundError: No module named 'sklearn' I am using Anaconda and Python 3.6.1; I have checked everywhere but still can't find answers. When I use the command: conda install…
Hareez Rana
  • 1,993
  • 2
  • 7
  • 3
192
votes
3 answers

What are the differences between Conda and Anaconda?

Post-question update: See Introduction to Conda for more details. The problem: I first installed Anaconda on my ubuntu at ~/anaconda, when I was trying to update my anaconda, according to the documentation from Continuum Analytics, I should use the…
Jiang Xiang
  • 3,166
  • 5
  • 21
  • 31
189
votes
14 answers

Conda command is not recognized on Windows 10

I installed Anaconda 4.4.0 (Python 3.6 version) on Windows 10 by following the instructions here: https://www.continuum.io/downloads. However, when I open the Command prompt window and try to write conda list I get the 'conda' command is not…
alex
  • 1,893
  • 2
  • 9
  • 6
181
votes
4 answers

Conda: Installing / upgrading directly from github

Can I install/upgrade packages from GitHub using conda? For example, with pip I can do: pip install git+git://github.com/scrappy/scrappy@master to install scrappy directly from the master branch in GitHub. Can I do something equivalent with…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
180
votes
3 answers

How do I revert to a previous package in Anaconda?

If I do conda info pandas I can see all of the packages available. I updated my pandas to the latest this morning, but I need to revert to a prior version now. I tried conda update pandas 0.13.1 but that didn't work. How do I specify which…
chrisaycock
  • 36,470
  • 14
  • 88
  • 125
165
votes
11 answers

How do I keep track of pip-installed packages in an Anaconda (Conda) environment?

I've installed and have been using the Anaconda Python distribution, and I have started using the Anaconda (Conda) environment. I can use the standard conda install... command to put packages from the distribution into my environments, but to use…
gromiczek
  • 2,970
  • 5
  • 28
  • 49