Anaconda equivalent of “setup.py develop”

二次信任 提交于 2020-01-03 11:01:31

问题


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

回答1:


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.




回答2:


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 .




回答3:


This is the equivalent to pip install -e .

conda install conda-build
conda develop .


来源:https://stackoverflow.com/questions/26556865/anaconda-equivalent-of-setup-py-develop

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!