Use 'conda install' instead of 'pip install' for setup.py packages

半城伤御伤魂 提交于 2021-02-11 09:10:15

问题


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

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