Python Forum
Confused over Conda Package manager vs PIP
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Confused over Conda Package manager vs PIP
#1
Both Conda and PIP appears to be package manager. From what I can read so far, PIP Is specific to Python but Conda is more language agnostic. Is there a reason to favor one package manager over another?
Reply
#2
Conda can in cases when eg need a compiler be much easier to use as it will download what's needed.
Conda can also install Python versions.pip can not do that
As i showed in your other Thread so will conda install -c conda-forge hnswlib fix the compiler issues that pip can not do.

Basic stuff with Miniconda,as you see so dos it come with both pip and conda.
# Activate
C:\code\miniconda3\Scripts
λ activate.bat

C:\code\miniconda3\Scripts
(base) λ cd..

C:\code\miniconda3
(base) λ python -V
Python 3.10.9

C:\code\miniconda3\Scripts
(base) λ pip -V
pip 22.3.1 from C:\code\miniconda3\lib\site-packages\pip (python 3.10)

C:\code\miniconda3\Scripts
(base) λ conda -V
conda 23.1.0
Always activate a environment,and i would advice not using (base) environment,make a new one.
Then if trouble can just delete that environment and try again.
# Make a environment this will also install Python 3.10.9 and pip
conda create --name my_env -c conda-forge spyder jupyterlab pandas python=3.10.9
When finish activate (my_env) the new environment and install other stuff that needed.
Reply
#3
And, if you prefer a more graphical interface for your environment management, conda offers Anaconda. Anaconda allows you to create and manage environments and integrates well with most development packages (VS Code, Jupyter, Spyder, PyCharm, etc.)
Reply
#4
Thanks,

So I played around with Anaconda. The main difference between Conda and PIP appears to be the scope. Pip controls what packages for the python version you install. You can use pip and venv to control what packages go a project, but you can't use pip to install different version of pythion. Third party code/wheels appear to come uncompile.

Conda exists a level above python and allow you to setup different python release locally. Conda itself seems run locally, too. Packages are all pre-compile. There seems to be two variant Anaconda which includes a boatload of package so you don't have to worry about including packages and miniconda which has a minimal set of packages.

One issue so far with Conda is that the software is not free to corporations (of over 200). If I want to install it at work, I will have to do a lot of paperwork to expense a purchase. This can be both good and bad. Paid software means support which would check some support requirement boxes, but getting it install in the first place would be a super pain.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  String int confused janeik 7 1,085 Aug-02-2023, 01:26 AM
Last Post: deanhystad
  I am confused with the key and value thing james1019 3 975 Feb-22-2023, 10:43 PM
Last Post: deanhystad
  How to deactivate correctly a conda environment NoNameoN 2 1,932 Nov-04-2022, 01:43 PM
Last Post: NoNameoN
  SSL error while trying to update conda ilango 0 2,183 Nov-04-2021, 08:38 AM
Last Post: ilango
  Pandas confused DPaul 6 2,581 Sep-19-2021, 06:45 AM
Last Post: DPaul
  is and '==' i'm confused hshivaraj 6 2,728 Sep-15-2021, 09:45 AM
Last Post: snippsat
  Confused with 'flags' tester_V 10 4,941 Apr-12-2021, 03:03 AM
Last Post: tester_V
  How to create an app manager _ShevaKadu 8 3,814 Nov-01-2020, 12:47 PM
Last Post: _ShevaKadu
  Simple Tic Tac Toe but I'm confused Izith 1 2,205 Sep-26-2020, 04:42 PM
Last Post: Larz60+
  I am really confused with this error. Runar 3 3,039 Sep-14-2020, 09:27 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020