introduction-to-conda-for-data-scientists icon indicating copy to clipboard operation
introduction-to-conda-for-data-scientists copied to clipboard

Fix for example "Creating a new environment as a sub-directory within a project directory" needed?

Open nsultova opened this issue 5 years ago • 3 comments

Testing the example "Creating a new environment as a sub-directory within a project directory":

project-dir $ conda create --prefix ./env
python=3.6
matplotlib=3.1
tensorflow=2.1
pip=20.0

does not work with the specified tensorflow version on Mac OS X 10.15.7:

PackagesNotFoundError: The following packages are not available from current channels:

When running without specification, tensorflow 1.14.0 gets installed instead.

nsultova avatar Nov 03 '20 09:11 nsultova

Interesting. For the past six months I have been teaching these materials online using Binder which runs on Linux. I quickly ran conda search tensorflow on my Mac and the most recent available version for TF is 2.0. Looks like those interested in more recent support for TF on Mac would need to use Pip to install TF. Since TF is not necessary at all for this example it is probably best to just use a different example here.

Any discussion that we might want to add about TF version differences across Mac, Windows, Linux should probably be added in the GPU episode where TF, PyTorch et al are central to the examples.

davidrpugh avatar Nov 04 '20 06:11 davidrpugh

Thank you for looking into this, I recreated the environment as you proposed (everything as in the original example except tensorflow, which I installed via pip) and - tensorflow==2.3.1 got installed.

nsultova avatar Nov 04 '20 13:11 nsultova

I propose that we remove TF as a dependency for this exercise and then defer all discussion of TF envs to the episode on GPUs when we will have already covered pip and Conda channels. Thoughts?

davidrpugh avatar Jan 04 '21 11:01 davidrpugh