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
152
votes
11 answers

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
  • 2,069
  • 3
  • 14
  • 21
150
votes
28 answers

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 echo $ZSH_VERSION 5.0.5 I have added to my…
Architek1
  • 2,051
  • 3
  • 15
  • 17
146
votes
3 answers

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 environment via conda activate myenv python has version 2.7.15…
AKG
  • 1,799
  • 4
  • 13
  • 23
144
votes
4 answers

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
  • 5,947
  • 5
  • 25
  • 32
138
votes
4 answers

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. Is this possible or do I need to recreate the…
elixirtrip
  • 1,483
  • 2
  • 6
  • 5
138
votes
2 answers

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 use the command conda env export >…
Make42
  • 12,236
  • 24
  • 79
  • 155
134
votes
2 answers

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 different purposes but are largely…
Seub
  • 2,451
  • 4
  • 25
  • 34
128
votes
12 answers

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 config --set changeps1 False To remove it. But that…
Homero Esmeraldo
  • 1,864
  • 2
  • 18
  • 34
127
votes
15 answers

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\username\Anaconda\Lib\site-packages
nivniv
  • 3,421
  • 5
  • 33
  • 40
127
votes
11 answers

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 Anaconda Python 2.7 base distribution, but I do…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
126
votes
26 answers

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  ~/a/packages  conda activate ppo_latest …
Abhishek Bhatia
  • 9,404
  • 26
  • 87
  • 142
119
votes
3 answers

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 environments, what is the best way to run a Jupyter…
lumbric
  • 7,644
  • 7
  • 42
  • 53
119
votes
3 answers

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 package as follows, I noticed that there was a prompt…
activelearner
  • 7,055
  • 20
  • 53
  • 94
116
votes
4 answers

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 the base environment exists: (base)…
matthiash
  • 3,105
  • 3
  • 23
  • 34
113
votes
26 answers

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 environment". I understand creating a new environment…
Johnson Sam
  • 1,139
  • 2
  • 6
  • 5