Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anaconda equivalent of "setup.py develop"

Tags:

How can I install a package under development to an Anaconda environment?

With pip:

pip install -e /path/to/mypackage 

or with regular setuptools:

python /path/to/mypackage/setup.py develop 
like image 789
Jasper van den Bosch Avatar asked Oct 24 '14 21:10

Jasper van den Bosch


People also ask

Does conda use setup py?

You can use conda-build to build packages for Python to install rather than conda by using setup.py bdist_conda . This is a quick way to build packages without using a recipe, but it has limitations. The script is limited to the Python version used in the build and it is not as reproducible as using a recipe.

How do I use setup py in Anaconda?

Open Anaconda Command prompt as administrator. Use cd C:\Users\… to locate downloaded site. Then run pip install setup.py.

Is setup py deprecated?

You may still find advice all over the place that involves invoking setup.py directly, but unfortunately this is no longer good advice because as of the last few years all direct invocations of setup.py are effectively deprecated in favor of invocations via purpose-built and/or standards-based CLI tools like pip, build ...

What is python setup py develop?

For your own stuff, you want to first install your package and then be able to frequently edit the code without having to re-install the package every time — and that is exactly what python setup.py develop does: it installs the package (typically just a source folder) in a way that allows you to conveniently edit your ...


2 Answers

There is also conda develop available now.

http://conda.pydata.org/docs/commands/build/conda-develop.html

Update in 2019: conda develop hasn't been maintained and is not recommended. See https://github.com/conda/conda-build/issues/1992

Recommendation is to use python setup.py develop or pip install -e .

like image 112
jkitchen Avatar answered Oct 19 '22 23:10

jkitchen


Using either of those will work with Anaconda. Make sure that you have pip or setuptools installed into the conda environment you want to install into, and that you have it activated.

like image 42
asmeurer Avatar answered Oct 19 '22 23:10

asmeurer