Python Forum
Installing a new package using pip in conda environment
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing a new package using pip in conda environment
#1
Does a package also gets installed in conda environment if I use pip to install packages not included in Anaconda?

I am currently working on a Django project and want to install an additional Django (app) package called "tinymce". I've installed Anaconda just recently and I'm not used to commands related to conda. I often used to pip install packages from the command prompt. But now I'm really confused if I really should just use the same pip install or use other conda commands (if there are any) to install that package. Also, does that affect anything, if I am to frequently use that packages?

FYI: I'm on Windows & using Python 3.7 using the recent Anaconda release.
Reply
#2
No they are separate python.org(Python version) or Anaconda(standalone disruption)
Do pip -V from command line cmd or cmder(as i use).
C:\
λ pip -V
pip 19.3.1 from c:\python37\lib\site-packages\pip (python 3.7)
Python 3.7 my main version in Windows Path.
So if i now do eg pip install requests will install to version shown over.

If i want to the same in Anaconda,i could do it from Scripts folder(where pip and conda placed).
G:\Anaconda3\Scripts
λ pip -V
pip 19.3.1 from g:\anaconda3\lib\site-packages\pip (python 3.7)

G:\Anaconda3\Scripts
λ conda -V
conda 4.7.12
So if do this now pip install requests or conda install requests will install to Anaconda.

Or if i activate base,it will always install to Anaconda.
This is what Anaconda prompt(cmd shell) dos,it's comes with Anaconda.
G:\Anaconda3\Scripts
λ activate base

(base) G:\Anaconda3\Scripts
λ c:

(base) C:\Users\Tom
λ cd ..

(base) C:\Users
λ cd ..

# Now in C:\,but now will install to Anaconda
(base) C:\
λ pip -V
pip 19.3.1 from g:\anaconda3\lib\site-packages\pip (python 3.7)
Some link to look at:
Python 3.6/3.7 and pip installation under Windows
Anaconda and other ways to run Python.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  MPEG DASH Package implementation similar to M3U8 package anantha_narayanan 0 584 Feb-06-2025, 03:55 AM
Last Post: anantha_narayanan
  will using conda fix my frustration? snakes 4 1,364 Jul-24-2024, 06:32 AM
Last Post: buran
  Installing python packages in a virtual environment Led_Zeppelin 1 1,614 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Confused over Conda Package manager vs PIP JanOlvegg 3 4,706 Mar-09-2023, 02:09 PM
Last Post: JanOlvegg
  Is it possible to see dependencies before installing a package? quazirfan 4 2,577 Dec-06-2022, 02:50 PM
Last Post: snippsat
  How to deactivate correctly a conda environment NoNameoN 2 5,283 Nov-04-2022, 01:43 PM
Last Post: NoNameoN
  SSL error while trying to update conda ilango 0 2,776 Nov-04-2021, 08:38 AM
Last Post: ilango
  Unable to import sklearn after installing any package ilango 0 1,668 Oct-25-2021, 07:03 AM
Last Post: ilango
  Installing keras in Python 2.7 environment ErnestTBass 3 6,784 Nov-01-2020, 08:36 PM
Last Post: jefsummers
  Installing a python package using pip anthonymoss78 0 2,361 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78

Forum Jump:

User Panel Messages

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