Anaconda equivalent of “setup.py develop”

前端 未结 3 1353
既然无缘
既然无缘 2021-02-07 15:36

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

With pip:

pip install -e /path/to/mypackage

or with regular s

相关标签:
3条回答
  • 2021-02-07 16:12

    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.

    0 讨论(0)
  • 2021-02-07 16:12

    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 .

    0 讨论(0)
  • 2021-02-07 16:15

    This is the equivalent to pip install -e .

    conda install conda-build
    conda develop .
    
    0 讨论(0)
提交回复
热议问题