I'm working with python 3.4. I use anaconda to install my data-science's packages and I need the statsmodels 0.8 :
https://pypi.python.org/pypi/statsmodels/
but on anaconda there is only the statsmodels 0.6 :
https://docs.continuum.io/anaconda/pkg-docs
And I really need to work with conda for the deployment.
Any idea of how can I have the 0.8 ?
IF a package is available on PyPi, you can use
conda skeleton pypi package
to create a condo-recipe for that package, then
conda build package
conda install --use-local package
to build and install the package
Related
I need to install a python package from pypi
Which are the differences between installing it directly in the conda enviroment using conda pip install, and using conda skeleton to build a conda package from the pypi package, and then add install it to the conda enviroment.
The difference is similar to using Software installer to install packages and apt-get install to install packages in Ubuntu. conda pip transfers whole control to pip for installing the required package whereas, conda skeleton uses functionality of conda itself to do all the necessary work step by step.
Can conda install be used to install source-distributions (i.e. non-archived import packages that have a setup.py)?
Yes and no. You can not conda install per se. However, as the Conda documentation says, Conda ships with pip, so you should be able to pip install -e . your package. You can also install with traditional python setup.py [install|develop].
Remember to activate your Conda environment before installation if you're using one instead of site packages.
As mentioned by vaiski, you can use pip and/or setup.py to build and install the package, but this method is not ideal because packages installed with pip and conda do not respect each other's dependencies.
Thus, if the source distribution includes a conda build recipe (meta.yaml), then you can created the anaconda archive on your own machine by using the conda-build tool:
$ conda build meta.yaml
Afterwards, you will have a local tar.gz of the build package with meta-data that conda can understand. This is what you download from the internet whenever you install a package using conda.
Finally, you can install the package you built locally using:
$ conda install --use-local
I'm trying to install a package not build in conda on Python 3.5 but founded on PyPi: "Seasonal"
https://pypi.python.org/pypi/seasonal
So I think I just have to do that :
conda skeleton pypi seasonal
conda build seasonal
conda install --use-local seasonal
It worked for an other one, but here I have this error :
((env-smart-data)) smartdata#smartdata-VirtualBox:~/PycharmProjects/TimeSerie$ conda skeleton pypi seasonal
Warning, the following versions were found for seasonal
0.3.1
0.3.0
0.2.0
0.1.0
0.0.0
Using 0.3.1
Use --version to specify a different version.
Error: Could not parse url for seasonal: UNKNOWN
So conda can find it, but there is a problem .. Any ideas ?
I've seen that seasonal is build on a Python 2.7, so I've tested it on a virtual env with Python 2.7, but it's exactly the same
If you can find it on PyPi, then you can simply do this:
pip install seasonal
Since you have conda installed, pip called here is actually calling anaconda's pip. Thus it will automatically handle install path etc.
In general I've transitioned to using anaconda (instead of macports) for managing my python packages -- this has been working great. There are a couple of packages that I want to build directly from source, however (in particular scipy). Are there any special considerations / procedures to take into account so that they'll play nicely together? Do I need to uninstall the anaconda scipy first?
The best would be to build your own conda package. It is pretty simple:
conda install conda-build
conda skeleton pypi mypackage assuming there is a package mypackage on pypi
conda build mypackage
conda install --use-local mypackage
Now, you will get all the benefits of conda.
I am trying to install celery using conda in my Miniconda python distribution. I am using PyCharm to manage my project and packages. I have set up the project to use python installed with miniconda as distribution. Trying to install celery from pycharm package manager gives me no results. As well as trying to install conda from command line. Is there a way to install celerey using conda? Is there a way to use both pip and conda in parallerl? Can this be done through PyCharm?I also have python 2.7.10 installed in my windows pc. So I have two python installments in my system one in
C:\Python27
and one in
C:\Miniconda2
conda install celery return the following
Fetching package metadata: ....
Error: No packages found in current win-64 channels matching: celery
You can search for this package on anaconda.org with
anaconda search -t conda celery
You may need to install the anaconda-client command line client with
conda install anaconda-client
You can check the URL.
https://anaconda.org/conda-forge/celery
conda install -c conda-forge celery=3.1.25
I don't think celery is available as a conda package. You can install with pip into a conda environment, yes. But if at all possible you want to try to stick to conda packages.