Skip to main content

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.

Filter by
Sorted by
Tagged with
1120 votes
15 answers
559k 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 ...
lazywei's user avatar
  • 12.4k
871 votes
20 answers
2.3m 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 ...
renatodamas's user avatar
  • 18.4k
844 votes
8 answers
529k 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 ...
DryLabRebel's user avatar
  • 9,743
611 votes
10 answers
424k 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?
pkowalczyk's user avatar
  • 17.8k
585 votes
26 answers
606k 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 ...
user31039's user avatar
  • 6,439
378 votes
17 answers
763k 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 ...
IanSR's user avatar
  • 10.2k
377 votes
4 answers
351k 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, ...
user avatar
318 votes
45 answers
1.0m 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 ...
Chet's user avatar
  • 19.4k
315 votes
10 answers
170k 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. ...
Kritz's user avatar
  • 7,281
306 votes
11 answers
737k 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?
Aryaman's user avatar
  • 3,356
298 votes
17 answers
924k 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 ...
Kshitiz 's user avatar
  • 3,723
291 votes
11 answers
427k 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....
Lau's user avatar
  • 3,510
287 votes
9 answers
690k 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 ...
Sunafegon's user avatar
  • 2,971
270 votes
7 answers
557k 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 ...
Wang's user avatar
  • 7,878
264 votes
33 answers
760k 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 ...
Ginger's user avatar
  • 8,550
256 votes
22 answers
275k 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 ...
Angel Salazar's user avatar
253 votes
4 answers
217k 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 --...
bastelflp's user avatar
  • 9,880
242 votes
18 answers
518k 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 ...
user2734434's user avatar
  • 2,781
241 votes
10 answers
350k 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 ...
ITA's user avatar
  • 3,630
237 votes
5 answers
153k 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 ...
user avatar
236 votes
6 answers
336k 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 ...
vineeth kanaparthi's user avatar
232 votes
15 answers
890k 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 ...
pandita's user avatar
  • 4,889
227 votes
8 answers
374k 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 ...
linX's user avatar
  • 2,379
227 votes
16 answers
949k 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 ...
Hareez Rana's user avatar
  • 2,283
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 ...
Afloz's user avatar
  • 3,655
207 votes
15 answers
572k 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 ...
alex's user avatar
  • 2,073
199 votes
3 answers
135k 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 ...
Jiang Xiang's user avatar
  • 3,236
193 votes
3 answers
417k 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 ...
AKG's user avatar
  • 2,289
192 votes
4 answers
216k 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 ...
Amelio Vazquez-Reina's user avatar
185 votes
4 answers
244k 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 ...
chrisaycock's user avatar
  • 37.4k
178 votes
4 answers
86k 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 ...
Seub's user avatar
  • 2,982
170 votes
6 answers
262k 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. ...
elixirtrip's user avatar
  • 1,803
165 votes
11 answers
140k 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 ...
gromiczek's user avatar
  • 2,970
163 votes
12 answers
313k 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?
pkumar0's user avatar
  • 2,179
156 votes
30 answers
277k 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 ...
Architek1's user avatar
  • 2,131
154 votes
12 answers
165k 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 ...
Homero Esmeraldo's user avatar
152 votes
2 answers
163k 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 ...
Make42's user avatar
  • 12.8k
151 votes
5 answers
252k 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 ...
lumbric's user avatar
  • 8,553
148 votes
4 answers
306k 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?
mcguip's user avatar
  • 6,177
141 votes
28 answers
536k 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 ...
Abhishek Bhatia's user avatar
141 votes
28 answers
318k 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 ...
Johnson Sam's user avatar
  • 1,429
132 votes
12 answers
307k 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 ...
Nyxynyx's user avatar
  • 62.8k
131 votes
7 answers
386k 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 ...
alvas's user avatar
  • 120k
130 votes
15 answers
154k 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\...
nivniv's user avatar
  • 3,613
127 votes
4 answers
267k 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?
mikal94305's user avatar
  • 4,983
127 votes
3 answers
96k 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 ...
activelearner's user avatar
123 votes
8 answers
226k 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 ...
Tom Hale's user avatar
  • 45k
121 votes
5 answers
113k 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 ...
matthiash's user avatar
  • 3,195
120 votes
25 answers
270k 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 ...
BernardL's user avatar
  • 5,384
113 votes
17 answers
147k 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 ...
Alvaro Morales's user avatar

1
2 3 4 5
166