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
  Installing python packages in a virtual environment Led_Zeppelin 1 712 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Confused over Conda Package manager vs PIP JanOlvegg 3 1,161 Mar-09-2023, 02:09 PM
Last Post: JanOlvegg
  Is it possible to see dependencies before installing a package? quazirfan 4 1,030 Dec-06-2022, 02:50 PM
Last Post: snippsat
  How to deactivate correctly a conda environment NoNameoN 2 1,809 Nov-04-2022, 01:43 PM
Last Post: NoNameoN
  SSL error while trying to update conda ilango 0 2,121 Nov-04-2021, 08:38 AM
Last Post: ilango
  Unable to import sklearn after installing any package ilango 0 1,161 Oct-25-2021, 07:03 AM
Last Post: ilango
  Installing keras in Python 2.7 environment ErnestTBass 3 5,359 Nov-01-2020, 08:36 PM
Last Post: jefsummers
  Installing a python package using pip anthonymoss78 0 1,776 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78
  Error: How to to close and restart your shell after running 'conda init' angelica 3 10,177 May-27-2020, 10:00 AM
Last Post: snippsat
  Creating Conda env from requirments.txt file ErnestTBass 7 15,300 Apr-23-2020, 06:57 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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