问题
I want to install fastai using setup.py in a project. The nicest way, if I have a conda environment, is to use the conda install command conda install -c pytorch -c fastai fastai
. Unfortunately, if I just add fastai as a requirement, it gets installed using pip, which I have experienced issues with.
Simply, is there a way to install fastai using conda a setup.py file (using the conda install
command)?
回答1:
As far as I know, conda
package manager does not understand setup.py
. As a result, one cannot install packages from setup.py
with conda
.
However, we can install libraries using conda with a .yml
file. Typically, this is used to copy a conda environment
across machines. More information about creating environment file and using it.
来源:https://stackoverflow.com/questions/59330925/use-conda-install-instead-of-pip-install-for-setup-py-packages