Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nsultova opened this issue Nov 3, 2020 · 3 comments

Comments

@nsultova
Copy link

nsultova commented Nov 3, 2020

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.

@davidrpugh
Copy link
Collaborator

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.

@nsultova
Copy link
Author

nsultova commented Nov 4, 2020

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.

@davidrpugh
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants