Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can conda install source distributions?

Can conda install be used to install source-distributions (i.e. non-archived import packages that have a setup.py)?

like image 308
conner.xyz Avatar asked Nov 23 '16 05:11

conner.xyz


People also ask

Can conda install all pip packages?

Conda will work with any version of Python, however it is limited to Anaconda and Conda environments. Pip installs all package dependencies, regardless of whether they conflict with other packages already installed.

Does conda install dependencies?

Conda analyzes each package for compatible dependencies, and how to install them without conflict. If there is a conflict, Conda will let you know that the installation cannot be completed. By comparison, Pip installs all package dependencies regardless of whether they conflict with other packages already installed.

Can conda install wheel files?

Building a conda package from the wheel file also has the advantage that any clobbering is more likely to happen at build time and not runtime. The third way is to use pip to install a wheel file into a conda environment. Some conda users have used this option safely.

Can conda install from PyPI?

If you want to build conda packages for PyPI packages, the recommended way is to use conda skeleton pypi package and use conda build package on the recipe that it creates. To install the package, use conda install --use-local package (here and elsewhere, package is the name of the PyPI package you wish to install).


1 Answers

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.

like image 161
vaiski Avatar answered Sep 22 '22 05:09

vaiski