conda
Cross-platform, Python-agnostic binary package manager
<no title> — Conda
Can I install/upgrade packages from GitHub using conda?
For example, with pip
I can do:
pip install git+git://github.com/scrappy/scrappy@master
to install scrappy
directly from the master
branch in GitHub. Can I do something equivalent with conda?
If this is not possible, would it make any sense to install pip with conda and manage such local installations with pip?
Source: (StackOverflow)
Is there a way to force conda to use the system version of python (along with all of the system libraries) in a given env?
I have conda enabled by default in my shell, which can get a bit annoying, because if I try to run a system python app, it gets a different version of python to what it is expecting (python still defaults to 2.7 on *buntu), and often won't run. I would like the root env of conda to just be a redirect to the system python install.
Source: (StackOverflow)
I know pip
is a package manager for python packages. However, I saw the installation on iPython's website use conda
to install iPython.
Can I use pip
to install iPython? Why should I use conda
as another python package manager when I already have pip
?
What is the difference between pip
and conda
?
Source: (StackOverflow)
I'm trying to get Tox and Conda to play together well. Mainly because I have a lot of non-python dependencies that need to be installed and it was easy to create Conda distributions. Then I can install everything with a simple conda install
.
However, I'm having trouble with activating the conda environment.
[tox]
envlist = py27
[testenv]
whitelist_externals =
conda
source
py.test
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/damlarces
install_command =
python build_env.py --conda-env {toxworkdir}/conda {packages}
commands =
source activate {toxworkdir}/conda
py.test --basetemp={envtmpdir}
The python build_env.py --conda-env {toxworkdir}/conda {packages}
takes care of creating the environment (if needed), installing the packages, etc. The problem comes at the source activate {toxworkdir}/conda
line. I get an ERROR: InvocationError: could not find executable 'source'
error. Typing the command directly into the command-line works fine.
For those who are interested. The build_env.py
is in this Gist: https://gist.github.com/JudoWill/70450979353fa2d12823 ... Currently its just installing Python dependencies but in its intended environment it will be installing Conda repo's that are not necessarily python libraries.
Any thoughts?
Source: (StackOverflow)
I have an issue with updating anaconda's packages with conda. when I make a conda update --all there is an issue which says to me:
Error: Unable to remove files for package: cryptography
Please close all processes running code from cryptography and try again.
however, none process are running, I have just the cmd window open.
Same story when I want update dateutile for instance.
It is like if conda uses some package and then I cannot update them?
Somebody knows a method to close or remove those packages in order to reinstall them?
For information:
C:\Anaconda3\Scripts>conda info -a
Current conda install:
platform : win-64
conda version : 3.11.0
conda-build version : 1.11.0
python version : 3.4.3.final.0
requests version : 2.6.2
root environment : C:\Anaconda3 (writable)
default environment : C:\Anaconda3
envs directories : C:\Anaconda3\envs
package cache : C:\Anaconda3\pkgs
channel URLs : https://conda.binstar.org/juanlu001/win-64/
https://conda.binstar.org/juanlu001/noarch/
https://repo.continuum.io/pkgs/free/win-64/
https://repo.continuum.io/pkgs/free/noarch/
https://repo.continuum.io/pkgs/pro/win-64/
https://repo.continuum.io/pkgs/pro/noarch/
config file : C:\Users\maxime.condarc
is foreign system : False
Source: (StackOverflow)
I've installed Anaconda (on ubuntu 12.04.03) and am trying to install pymongo
so that conda recognizes it. I know there are similar questions floating around; but being new to Python, I would really appreciate an explicit answer to help me 'get going' - I'm failing currently :(
Cheers for any help
EDIT:
Seeing the question has been put on hold, I continued to persevere. When I run:
sudo pip install pymongo
it is installed to /usr/local/lib/python2.7/dist-packages/
and Anaconda doesn't seem to import modules from this location (does anyone know how I can change this?). So instead, I ran:
sudo pip install -d anaconda/pkgs/ pymongo
tar -zxvf pymongo-2.6.3.tar.gz
cd pymongo-2.6.3/
python setup.py install
and now I am able to import pymongo
. Is this the canonical way? I'm guessing not... like I said, I'm new to this, so any advice or input much appreciated.
Source: (StackOverflow)
If I do
conda info pandas
I can see all of the packages available.
I updated my pandas
to the latest this morning, but I need to revert to a prior version now. I tried
conda update pandas 0.13.1
but that didn't work. How do I specify which version to use?
Source: (StackOverflow)
I am running Mac 10.9 Mavericks and have installed Anaconda. However, despite that, when I access python via terminal, I still get the default Apple version:
Python 2.7.5 (default, Sep 2 2013, 05:24:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
My .bash_profile is this:
export PATH="$HOME/anaconda/bin:$PATH"
MONGO_PATH=/usr/local/mongodb/bin
SQL_PATH=/usr/local/mysql
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH"
Is there anything I can do to use the Anaconda version of Python? At a loss at the moment.
Thank you
Source: (StackOverflow)
I would like to solve LP and ILP with Pyomo (Coopr) but unfortunately I am so newbie and I cannot run it properly.
I have already installed Pyomo (Coopr) by following its instructions
pip install Coopr
I can import the module without problems:
$ python
Python 2.7.5 |Anaconda 1.8.0 (64-bit)| ...
Type "help", "copyright", "credits" or "license" for more information.
>>> import coopr.pyomo
>>>
At this point is where I get lost since I can't find the path where in theory I have installed the package
(/coopr.pyomo/examples/pyomo/diet).
I think I have to create an enviroment but I have recently read that there is a better integration now with conda v. 2.1 (link)
There is a branch of conda (new-pypi-install) that adds better integration with pip and PyPI. In particular conda list will also show pip installed packages and conda install will first try to find a conda package and failing that will use pip to install the package.
My final goal is to implement this into an IPython notebook and be able obtain the results as output.
Note: I am trying to run the demo file
pyomo diet1.py diet.dat
Source: (StackOverflow)
I know that I can tell conda to build from github as:
source:
fn: v1.6.0.tar.gz
url: https://github.com/SciTools/iris/archive/v1.6.0.tar.gz
md5: 24c2d55758325a8f05aadf99748c0d2a
or
source:
git_url: git@github.com:SciTools/iris.git
git_tag: v1.6.0
but how would one tell conda to build from a github branch?
update:
I tried the solution of @asmeurer below, and after I got the branch name right (grrr...) it worked:
package:
name: iris
version: 1.6.0
source:
git_url: https://github.com/esc24/iris.git
git_tag: udunits_xml_path
Source: (StackOverflow)
I need to run jenkins build using a specific conda environment on our jenkins server (running on Windows). I thought it would be as easy as running:
activate myenv
python test_env.py
but this seems to cause the build to exit instead, before the script even starts. Here is the jenkins console log:
activate myenv
Activating environment "myenv"...
Finished: SUCCESS
If I remove the activate line, the python script executes fine.
FYI, the script I am running:
import os
f = open('env.txt','w')
for k, v in os.environ.iteritems():
print k, v
f.write('%s\t%s\n' % (k,v))
f.close()
Does anybody know what is going on? Should I directly call the relevant python executable instead?
Source: (StackOverflow)
I tried to install menpo like in this tutorial. After that I installed menpofit, menpo3d and menpodetect:
conda install -c menpo menpofit
conda install -c menpo menpo3d
conda install -c menpo menpodetect
Next I ran this python script from CMD(python testPy.py):
import menpo.io as mio
from menpo.visualize import visualize_images
images = list(mio.import_images('A:/img/*.png'))
visualize_images(images)
And got this output:
What am I doing wrong and how I can fix it?
Source: (StackOverflow)
Is it possible to add to a conda recipe a build requirement that comes from a specific binstar channel?
For instance I want to create a recipe for ffmpeg-devel, which requires 7zip. But it seems only 7za from the trent
channel works. I tried to put trent/7za
or trent 7za
but neither of them work.
package:
name: ffmpeg-dev
version: 2.3.3
source:
fn: ffmpeg-20140827-git-8c1b942-win64-dev.7z
url: http://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-20140827-git-8c1b942-win64-dev.7z [win]
sha1: 1aaf45274229cba7fe723a4118ca243e77cb4587
requirements:
build:
- trent/7za
- ffmpeg-dev
run:
- ffmpeg-dev
about:
home: https://www.ffmpeg.org/
license: "Various (see Copyright file from the aspell6-en source)"
summary: "A complete, cross-platform solution to record, convert and stream au
Source: (StackOverflow)
I tried installing the latest version of GData using the latest version of conda and Anaconda:
conda install gdata
It seems to have worked.
The following packages will be downloaded:
package | build
---------------------------|-----------------
gdata-2.0.18 | py27_0 765 KB
python-2.7.7 | 0 10.0 MB
------------------------------------------------------------
Total: 10.7 MB
However, when I try doing:
import gdata.spreadsheet.service
I get:
---> 33 import atom.http_interface
34 import atom.url
35 import atom.http
ImportError: No module named http_interface
Why? How can I use it?
Source: (StackOverflow)
For m, on OS X, conda update --all
often downgrades libraries - along with updating many.
Is this usual? Or something possibly in my setup?
Earlier this year, it was pillow for many months.
Surprisingly, today it was several of the HDF5 related libraries, numba and llvmlite.
So conda update numba
brings numba back to the most recent version, and so on with the other 8 libraries, but why doesn't conda update --all
do this anyway?
Source: (StackOverflow)