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.
Related
I am looking for a way to download a wheel from a conda environment. Here is what I mean and what I would like to do.
I have this conda environment that I download using this command:
conda install -c bioconda mageck
I would like to have a wheel like mageck.whl in order to reinstall the conda environment offline in a next installation using pip install mageck.whl or any other extension that can let me install all the packages for future installation. The aim is to have a dockerfile that can be 100% reproducible at least from the library version and dependencies, installing the environment only using the package downloaded.
Here are some potential solutions if I understand your problem correctly.
Have you tried to create an isolated software environment?
conda create -c bioconda -n mageckenv mageck
after that, you can activate the environment:
source activate mageckenv
Here you have the link to install using Docker
https://bioconda.github.io/recipes/mageck/README.html
I'm very new to python and just downloaded Anaconda and installed Pycharm. Now that all this is installed I'm stuck with Flask_cors and Pillow, which are needed for a project.
You can see the error in the screenshot below.
I've tried to install via pip command in terminal, and also specifying the target folder (like described in another post) or updating Flask and Pillow via Anaconda, nothing seems to work.
FYI I'm running Mac OS 10.12.6
Thanks for your help!
Looks like you're using anaconda. So, I'd suggest you start from scratch, make a new environment and follow this route:
Deactive your old conda environment
conda deactivate
Make a new conda environment
conda create -n myenv python=3.7
Activate your new environment
conda activate myenv
Install your dependencies. Since it's a conda environment, you should use conda commands to install the dependencies. See here why.
conda install -c anaconda flask
conda install -c conda-forge flask-cors
conda install -c anaconda pillow
Now try again.
I am stuck on this installation of scikit-image (aka skimage). I tried multiple ways:
Installation from a git hub folder (using the requirements.txt)
Installation from a whl file
Installation with pip install scikit-image
All three trials failed during the import: import skimage
ImportError: cannot import name 'geometry'
It seems that scikit-image has not been built correctly.
Your install of scikit-image appears to be broken.
Try re-installing the package following the instructions at:
https://scikit-image.org/docs/stable/install.html
I went through internet but did not find solutions besides the ones above.
Does anyone went through that before?
One possibility seems to be to pip install with -egg, but I found that for Mac rather than Windows.
EDIT:
Hi everyone, so I found a solution but this is kind of very hard and I still don't understand why it did not work before.
I just:
uninstall anaconda
uninstall python
install python (3.8)
install Anaconda (I have trouble with Spyder now^^)
If you want to code for computer vision/Image processing/machine learning tasks, then it can be done in pycharm with conda environment very easily. There is no need to install python separately to run Anaconda.
First, download and install pycharm. Next, If you use windows then download Anaconda 64 bit python 3.7 version from here,
https://www.anaconda.com/distribution/#windows
You can find some details about managing environment and helpful links here,
How to create some environments for tensorflow in anaconda?
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
Create a conda environment first using Anaconda Prompt command line,
conda create -n cvenv python=3.7
Now activate that environment using. By default base is activated.
conda activate cvenv
Next, install the packages you want,
conda install -c conda-forge scikit-learn
conda install -c conda-forge scikit-image
conda install -c conda-forge pillow
conda install -c conda-forge opencv
I use conda-forge packages as they are more recent. Finally, open pycharm and create a new project by selecting existing python interpreter in conda environment. If none exists then select,
Browse > Add Python Interpreter > Conda Environment > Interpreter > Browse > Anaconda3 installation folder > envs folder > cvenv folder > Python.exe
You can test by creating a python file and writing import skimage.
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
My question is like: (only for linux)
How to install ipdb with Anaconda on Windows?
On a linux miniconda2 system, I did the following:
cd ~/miniconda2/bin
easy_install ipdb
This installed:
~/miniconda2/lib/python2.7/site-packages/ipdb-0.9.0-py2.7.egg
ipdb was then present in the miniconda2/bin dir and I was able to use ipdb from the cmd line with no problems
I would guess anaconda will be very similar to miniconda and this approach should work for both
This approach was based on the answer given to your link to the similar windows based question. I had previously tried to install through conda with no luck, i.e.
$ conda install ipdb
Fetching package metadata: ....
Error: No packages found in current linux-64 channels matching: ipdb
You can search for this package on anaconda.org with
anaconda search -t conda ipdb
You may need to install the anaconda-client command line client with
conda install anaconda-client