Installing a new package using pip in conda environment - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Installing a new package using pip in conda environment (/thread-22575.html) |
Installing a new package using pip in conda environment - firebolt7 - Nov-18-2019 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. RE: Installing a new package using pip in conda environment - snippsat - Nov-18-2019 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.12So 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. |