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
112
votes
16 answers

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 geopandas Using cached…
Alvaro Morales
  • 1,845
  • 3
  • 12
  • 21
112
votes
5 answers

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 it because it's messing up my pips and…
alvas
  • 115,346
  • 109
  • 446
  • 738
107
votes
1 answer

Difference between pip freeze and conda list

I am using both "pip freeze" and "conda list" to list the packages installed in my environment, but what are their differences?
DiveIntoML
  • 2,347
  • 2
  • 20
  • 36
105
votes
21 answers

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 after Python: Select Interpreter and with a fresh…
BernardL
  • 5,162
  • 7
  • 28
  • 47
104
votes
4 answers

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
  • 4,663
  • 8
  • 31
  • 40
103
votes
1 answer

Conda uninstall one package and one package only

When I try to uninstall pandas from my conda virtual env, I see that it tries to uninstall more packages as well: $ conda uninstall pandas Using Anaconda Cloud api site https://api.anaconda.org Fetching package metadata: .... Solving package…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
102
votes
11 answers

Conda install and update do not work also solving environment get errors

I am using anaconda as below: (base) C:\Users\xxx>conda info active environment : base active env location : C:\Users\xxx\Documents\ANACONDA shell level : 1 user config file : C:\Users\xxx\.condarc populated config…
J.D
  • 1,885
  • 4
  • 11
  • 19
102
votes
8 answers

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 wish to reset my base environment by removing all…
Tom Hale
  • 40,825
  • 36
  • 187
  • 242
101
votes
1 answer

WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages) How do I fix this and what does it mean?

I keep getting this error: WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages) How do I fix this and what does it mean? I have anaconda and Python installed. I use Jupyter Notebook and Python in VS Code. This is in Git Bash…
ralphiecodes
  • 2,301
  • 3
  • 5
  • 7
98
votes
11 answers

Use Conda environment in pycharm

Conda env is activated using source activate env_name. How can I activate the environment in pycharm ?
Abhinav Rai
  • 1,027
  • 1
  • 9
  • 9
98
votes
6 answers

How to share conda environments across platforms

The conda docs at http://conda.pydata.org/docs/using/envs.html explain how to share environments with other people. However, the docs tell us this is not cross platform: NOTE: These explicit spec files are not usually cross platform, and …
user3731622
  • 4,844
  • 8
  • 45
  • 84
95
votes
10 answers

How do I find the name of the conda environment in which my code is running?

I'm looking for a good way to figure out the name of the conda environment I'm in from within running code or an interactive python instance. The use-case is that I am running Jupyter notebooks with both Python 2 and Python 3 kernels from a…
Alnilam
  • 3,121
  • 2
  • 21
  • 22
93
votes
3 answers

How to install python with conda?

I'm trying to install python 3.9 in a conda enviroment. I tried creating a new conda env using the following command, conda create --name myenv python=3.9 But I got an error saying package not found because python 3.9 is not yet released So, I…
bigbounty
  • 16,526
  • 5
  • 37
  • 65
90
votes
21 answers

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory \\METADATA

I relatively new to coding so I am not (yet) running virtual environments. Rather, I am just downloading packages with pip straight to my pc to run python 3.7 in atom. When I tried to use pip the other day to install the scrapy package like so -m…
Adrian Nesta
  • 1,001
  • 1
  • 6
  • 4
89
votes
5 answers

calling conda source activate from bash script

I'm trying to activate my conda env via a bash script. Even though the script runs fine and my PATH appears to be changed within the script, it's getting reset somehow after the script terminates. I can call source activate test from the cmd line…
matt_k
  • 4,139
  • 4
  • 27
  • 33