Python Forum
Running Python via Anaconda?
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running Python via Anaconda?
#7
(Oct-11-2017, 12:10 AM)Larz60+ Wrote: If you plan on running virtual environment, you don't want to be running anaconda, or your application is going to carry the baggage of all the packages.
No Anaconda has own installer equal to pip,which is conda.
conda is really good.
Create a virtual environment with specific packages of choice scipy,pandas,requests.
conda create -n myenv scipy pandas requests
In that environment can use both conda and pip to install into it.
Environment can also be shared with with someone else bye exported a .yml file.
conda env export > environment.yml
Example of .yml file:
name: myenv
dependencies:
  - python=3.6 #or eg 2.7
  - scipy
  - pandas
  - requests
There also miniconda that comes without all packages.
So there can choose what to install with both conda or pip.
 
Athenaeum Wrote:I can find to use these packages is through Anaconda since I can't install them via OS Python.
You can install to OS Python,if you know how.
I did write something about it in your other post,but we had security trouble so some post where gone.
To take it again,example for scipy you need to use wheel from Gohlke.
Here for 32-bit Python and 3.6.
Doing this will scipy work on OS Python
pip install numpy‑1.13.3+mkl‑cp36‑cp36m‑win32.whl
pip install scipy‑1.0.0rc1‑cp36‑cp36m‑win32.whl

Your other question was that you had trouble to installing a package into Anaconda.
conda install some_package 
If conda can not find that package,you can use pip(which also comes with Anaconda).
pip install some_package 
Remember that this pip has nothing to do about OS Python,all is totally separated.
Start Anaconda Prompt:
(g:\Anaconda3) C:\>pip -V
pip 9.0.1 from g:\Anaconda3\lib\site-packages (python 3.6)

(g:\Anaconda3) C:\>conda -V
conda 4.3.24
Remember there is a navigator,for easy access to Notebook and Editor(Spyder) all use Anaconda and not OS Python.
[Image: ieRhfa.jpg]
Reply


Messages In This Thread
Running Python via Anaconda? - by Athenaeum - Oct-10-2017, 07:13 PM
RE: Running Python via Anaconda? - by sparkz_alot - Oct-10-2017, 09:04 PM
RE: Running Python via Anaconda? - by wavic - Oct-10-2017, 09:11 PM
RE: Running Python via Anaconda? - by sparkz_alot - Oct-10-2017, 10:13 PM
RE: Running Python via Anaconda? - by Athenaeum - Oct-10-2017, 11:51 PM
RE: Running Python via Anaconda? - by Larz60+ - Oct-11-2017, 12:10 AM
RE: Running Python via Anaconda? - by Athenaeum - Oct-12-2017, 01:30 AM
RE: Running Python via Anaconda? - by snippsat - Oct-11-2017, 06:24 AM
RE: Running Python via Anaconda? - by Larz60+ - Oct-11-2017, 08:44 AM
RE: Running Python via Anaconda? - by gruntfutuk - Oct-11-2017, 12:09 PM
RE: Running Python via Anaconda? - by buran - Oct-11-2017, 12:18 PM
RE: Running Python via Anaconda? - by gruntfutuk - Oct-11-2017, 12:22 PM
RE: Running Python via Anaconda? - by sparkz_alot - Oct-11-2017, 12:18 PM
RE: Running Python via Anaconda? - by snippsat - Oct-11-2017, 01:37 PM
RE: Running Python via Anaconda? - by gruntfutuk - Oct-11-2017, 02:37 PM

Forum Jump:

User Panel Messages

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