I want to create a virtual environment using conda and yml file.
Command:
conda env create -n ex3 -f env.yml
Type ENTER it gives fo
I had a similar issue and was able to work around it. My issue wasn't related to pip but rather because the export platform wasn't the same as the import platform (Ref: nehaljwani's November 2018 answer on https://github.com/conda/conda/issues/7311).
@Shixiang Wang's answer point towards a part of the solution. The no-build argument allows for more flexibility but there are some components which are specific to the platform or OS.
Using the no-build export, I was able to identify (from the error message at import time) which libraries were problematic and simply removed them from the YML file. This may not be flawless, but saves a lot of time compared to starting from scratch.
NOTE: I got a Pip subprocess error which interrupted the installation at a given library, which could be simply overcome via a conda install . From there I could relaunch the import from the YML file.