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.
8,211
questions
1113
votes
15
answers
548k
views
What is the difference between pip and conda?
I know pip is a package manager for python packages. However, I saw the installation on IPython's website use conda to install IPython.
Can I use pip to install IPython? Why should I use conda as ...
847
votes
20
answers
2.2m
views
Removing Conda environment
I want to remove a certain environment created with conda. How can I achieve that? Let's say I have an active testenv environment. I tried, by following documentation, with:
$ conda env remove
...
826
votes
8
answers
502k
views
How do I prevent Conda from activating the base environment by default?
I recently installed anaconda2 on my Mac. By default Conda is configured to activate the base environment when I open a fresh terminal session.
I want access to the Conda commands (i.e. I want the ...
599
votes
10
answers
406k
views
How can I rename a conda environment?
I have a conda environment named old_name, how can I change its name to new_name without breaking references?
578
votes
26
answers
584k
views
Conda environments not showing up in Jupyter Notebook
I installed Anaconda (with Python 2.7), and installed Tensorflow in an environment called tensorflow. I can import Tensorflow successfully in that environment.
The problem is that Jupyter Notebook ...
376
votes
16
answers
748k
views
How do I update Anaconda?
I have Anaconda installed on my computer and I'd like to update it. In Navigator I can see that there are several individual packages that can be updated, but also an anaconda package that sometimes ...
372
votes
4
answers
333k
views
How to update an existing Conda environment with a .yml file
How can a pre-existing conda environment be updated with another .yml file. This is extremely helpful when working on projects that have multiple requirement files, i.e. base.yml, local.yml, ...
314
votes
44
answers
998k
views
How do I install Python OpenCV through Conda?
I'm trying to install OpenCV for Python through Anaconda, but I can't seem to figure this out.
I tried
conda install opencv
conda install cv2
I also tried searching
conda search cv
No cigar. I ...
312
votes
10
answers
165k
views
Does Conda replace the need for virtualenv?
I recently discovered Conda after I was having trouble installing SciPy, specifically on a Heroku app that I am developing.
With Conda you create environments, very similar to what virtualenv does. ...
302
votes
11
answers
712k
views
How do I upgrade to Python 3.6 with Conda?
I want to get the latest version of Python to use f-strings in my code. Currently my version is (python -V):
Python 3.5.2 :: Anaconda 4.2.0 (x86_64)
How would I upgrade to Python 3.6?
293
votes
17
answers
888k
views
'Conda' is not recognized as internal or external command
I installed Anaconda3 4.4.0 (32 bit) on my Windows 7 Professional machine and imported NumPy and Pandas on Jupyter notebook so I assume Python was installed correctly. But when I type conda list and ...
288
votes
11
answers
399k
views
Anaconda export Environment file
How can I make anaconda environment file which could be use on other computers?
I exported my anaconda python environment to YML using conda env export > environment.yml. The exported environment....
277
votes
9
answers
660k
views
PackagesNotFoundError: The following packages are not available from current channels:
I'm somewhat new to Python. I've used it in a bunch of projects, but haven't really needed to stray from its standard setup. I'm trying to install some new packages to get access to functions ...
265
votes
7
answers
544k
views
anaconda update all possible packages?
I tried the conda search --outdated, there are lots of outdated packages, for example the scipy is 0.17.1 but the latest is 0.18.0. However, when I do the conda update --all. It will not update any ...
263
votes
33
answers
754k
views
How can I run Conda?
I installed Anaconda and can run Python, so I assume that I installed it correctly. Following this introductory documentation, I am trying to install Python v3.3, so I am copying and pasting the ...
252
votes
22
answers
268k
views
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 ...
251
votes
4
answers
209k
views
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 --...
240
votes
18
answers
507k
views
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 ...
236
votes
6
answers
335k
views
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
...
236
votes
5
answers
149k
views
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 ...
235
votes
10
answers
329k
views
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 ...
231
votes
15
answers
846k
views
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 ...
225
votes
8
answers
353k
views
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 ...
222
votes
16
answers
912k
views
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 ...
216
votes
4
answers
120k
views
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 ...
203
votes
15
answers
551k
views
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
...
197
votes
3
answers
131k
views
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 ...
189
votes
4
answers
211k
views
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 ...
185
votes
4
answers
238k
views
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
...
180
votes
3
answers
354k
views
How to create conda environment with specific python version?
I have miniconda3 installed and since I would like to have an environment with python version 3.3.0, I create it via
conda create -n "myenv" python=3.3.0
However when I activate the ...
168
votes
4
answers
77k
views
Does it make sense to use Conda + Poetry?
Does it make sense to use Conda + Poetry for a Machine Learning project? Allow me to share my (novice) understanding and please correct or enlighten me:
As far as I understand, Conda and Poetry have ...
165
votes
6
answers
241k
views
How to change Python version of existing conda virtual environment?
I created a conda environment with Python version 3.8, but it doesn't support matplotlib... So I am looking for something like this to change the Python version: conda env my_env update to python=3.6. ...
165
votes
11
answers
137k
views
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 ...
161
votes
11
answers
295k
views
How to list package versions available with conda
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?
156
votes
29
answers
268k
views
Zsh: Conda/Pip installs command not found
So I installed Anaconda and everything is working. After I installed it I decided to switch to oh-my-zsh. I am now getting:
zsh: command not found: conda
when trying to use pip or conda installs
...
151
votes
2
answers
156k
views
How to free disk space taken up by (ana)conda?
I am using the conda package manager - a lot. By now I have quite a few environments and a lot of downloaded packages taking a lot of space on my SSD. An obvious path to free some of that space is to ...
147
votes
5
answers
224k
views
How to use Jupyter notebooks in a conda environment?
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 ...
147
votes
4
answers
298k
views
Upgrade to python 3.8 using conda
Python 3.8.0 is out, but I haven't been able to find any post on how to update to python 3.8 using conda - maybe they will wait for the official release? Any suggestions?
145
votes
12
answers
158k
views
How to remove (base) from terminal prompt after updating conda
After updating miniconda3, whenever I open a terminal it shows "(base)" in front of my username and host.
In this answer post https://askubuntu.com/a/1113206/315699 it was suggested to use
conda ...
139
votes
28
answers
521k
views
Conda activate not working?
gonzo ~/a/packages conda env list
# conda environments:
#
ppo_latest /nohome/jaan/abhishek/anaconda3/envs/ppo_latest
root * /nohome/jaan/abhishek/anaconda3
gonzo ...
135
votes
27
answers
304k
views
Stuck at Solving Environment on Anaconda
I am running OSX Catalina. After downloading Anaconda, I'm having trouble downloading external packages. I tried in both the GUI and the terminal, but the process keeps getting stuck at "Solving ...
131
votes
12
answers
294k
views
Where is site-packages located in a Conda environment?
After installing a package in an Conda environment, I'd like to make some changes to the code in that package.
Where can I find the site-packages directory containing the installed packages?
I have an ...
130
votes
15
answers
152k
views
anaconda - graphviz - can't import after installation
Just installed a package through anaconda (conda install graphviz), but ipython wouldn't find it.
I can see a graphviz folder in C:\Users\username\Anaconda\pkgs
But there's nothing in: C:\Users\...
129
votes
7
answers
368k
views
How to uninstall mini conda? python
I've install the conda package as such:
$ wget http://bit.ly/miniconda
$ bash miniconda
$ conda install numpy pandas scipy matplotlib scikit-learn nltk ipython-notebook seaborn
I want to uninstall ...
125
votes
3
answers
93k
views
Conda - Silently/non-interactively installing a package
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 ...
123
votes
8
answers
215k
views
conda: remove all installed packages from base/root environment
TL:DR: How can I remove all installed packages from base?
I installed a bunch of machine learning packages in my base conda environment.
I've now created a ml environment for machine learning, and ...
119
votes
4
answers
248k
views
How can you "clone" a conda environment into the root environment?
I'd like the root environment of conda to copy all of the packages in another environment. How can this be done?
119
votes
4
answers
112k
views
CondaValueError: The target prefix is the base prefix. Aborting
I have the following conda environment file environment.yml:
name: testproject
channels:
- defaults
dependencies:
- python=3.7
prefix: /opt/projects/testproject
Before creating the environment, only ...
118
votes
24
answers
259k
views
Working with Anaconda in Visual Studio Code
I am getting a bit confused here, the latest Anaconda Distribution, 2018.12 at time of writing comes with an option to install Microsoft Visual Studio Code, which is great.
When launching VSC and ...
113
votes
17
answers
145k
views
Error installing geopandas:" A GDAL API version must be specified " in Anaconda
This error raised while installing geopandas. I've looking for its solution on the web, but none of them really explain what happened and how to solve it..
This is the full error:
Collecting ...