Ml-agents: Why was the Conda installation readme removed?

Created on 5 Nov 2019  路  13Comments  路  Source: Unity-Technologies/ml-agents

I saw that the windows installation readme was removed:
https://github.com/Unity-Technologies/ml-agents/pull/2833/commits/426a2dda02f7c8b020dc99a480885d5dc0b19187#diff-74908b38dd56d6ffc4669038c7ef9339

It was really handy to have this readme in place as a lot of windows users are using Conda to work with Python.

Is there any specific reason why we should use Virtualenv instead of conda?

discussion stale

Most helpful comment

@harperj Okay. So, have you tried setting up ML-Agents on a clean Windows installation according to the instructions? I'm regularly supervising projects that use ML-Agents at university and it was really easy to set up thank to the step-by-step Anaconda instructions. For the newest project I've had so many questions from students that don't have any experience with Python and I wondered why - until I noticed that the Conda readme was gone.

Think about this from the point of view of someone coming directly from Unity, with no Python experience whatsoever. There is a lot of missing information, or things that are just glanced over that threw my students off.

There are also some things that flat out didn't work when I tried following the readme, e.g.:

  • > In order to use ML-Agents toolkit, you need Python 3.6.1 or higher. Download and install the latest version of Python if you do not already have it.

Yet the newest version (3.8) does not work. I'm getting version mismatches for Tensorflow which prevent installation entirely. 3.7.3 works for some reason.

  • > To create a new environment named sample-env execute $ python3 -m venv python-envs\sample-env

Doesn't work. It only works with "python' instead of "python3", otherwise absolutely nothing happens.

  • When following with Python 3.6.8 (the newest one I've found an .exe installer for) I get this error, which makes tensorboard unusable:
    tensorboard 1.15.0 has requirement setuptools>=41.0.0, but you'll have setuptools 40.6.2 which is incompatible.

I agree that a universal way of installation is the way to go, but I definitely don't think this is the way to do it.

All 13 comments

I would like to know this as well. Am I not supposed to use Anaconda anymore? I find the installation instructions for virtual environments under Windows to be pretty confusing as they assume that you already know how to get a working Python installation and Tensorflow on your machine.

The Anaconda step-by-step instructions were just right - what happened to them?

Hi @devedse / @DVonk -- we decided it would be simpler to help people through the setup process if we only had a single recommended path in our docs. You're welcome to continue using Anaconda, and we aren't trying to discourage anyone from using the tools that work best for them.

@harperj Okay. So, have you tried setting up ML-Agents on a clean Windows installation according to the instructions? I'm regularly supervising projects that use ML-Agents at university and it was really easy to set up thank to the step-by-step Anaconda instructions. For the newest project I've had so many questions from students that don't have any experience with Python and I wondered why - until I noticed that the Conda readme was gone.

Think about this from the point of view of someone coming directly from Unity, with no Python experience whatsoever. There is a lot of missing information, or things that are just glanced over that threw my students off.

There are also some things that flat out didn't work when I tried following the readme, e.g.:

  • > In order to use ML-Agents toolkit, you need Python 3.6.1 or higher. Download and install the latest version of Python if you do not already have it.

Yet the newest version (3.8) does not work. I'm getting version mismatches for Tensorflow which prevent installation entirely. 3.7.3 works for some reason.

  • > To create a new environment named sample-env execute $ python3 -m venv python-envs\sample-env

Doesn't work. It only works with "python' instead of "python3", otherwise absolutely nothing happens.

  • When following with Python 3.6.8 (the newest one I've found an .exe installer for) I get this error, which makes tensorboard unusable:
    tensorboard 1.15.0 has requirement setuptools>=41.0.0, but you'll have setuptools 40.6.2 which is incompatible.

I agree that a universal way of installation is the way to go, but I definitely don't think this is the way to do it.

I think this was a bad decision to remove the Anaconda install instructions.
I just started working with the ML kit and have been scratching my head as to why there were not any instructions for Anaconda, which is a pretty standard way of managing Python environments on Win.

hi @sonicviz, @DVonk, @devedse - thank you for your feedback, very helpful for us to understand the needs for conda in Windows. For now, please refer to the previous instructions (it should be the same steps). https://github.com/Unity-Technologies/ml-agents/blob/0.10.1/docs/Installation-Windows.md

Will keep you posted on next steps on Anaconda instructuions for Windows.

@unityjeffrey Thank you. Is it still correct to install Python 3.6 and Tensorflow 1.7.1 or should I use a newer version? Because with Tensorflow 1.14 and 1.15 I get a lot of warnings for deprecated TF functions when training.

@DVonk either Python 3.6 or 3.7 will work, and Tensorflow 1.7.x - 1.15.x.

The warnings are (mostly) related to the transition to Tensorflow 2.0. We're currently working on migrating to the new APIs.

@unityjeffrey ty!

hi @sonicviz, @DVonk, @devedse - thank you for your feedback, very helpful for us to understand the needs for conda in Windows. For now, please refer to the previous instructions (it should be the same steps). https://github.com/Unity-Technologies/ml-agents/blob/0.10.1/docs/Installation-Windows.md

Will keep you posted on next steps on Anaconda instructuions for Windows.

Hi, I found this on the third day of trying to set up ML Agents on my setup. First try worked with this guide.
Note: I installed tensorflow-gpu and got it working using the guide, except for one issue that was solved by changing a line in "setup.py" according to this thread: https://github.com/Unity-Technologies/ml-agents/issues/1534

I couldn't get things set up without this guide, because some of the info was not available anywhere else.

This issue has been automatically marked as stale because it has not had activity in the last 14 days. It will be closed in the next 14 days if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed because it has not had activity in the last 28 days. If this issue is still valid, please ping a maintainer. Thank you for your contributions.

I think it's good to keep this issue open since @unityjeffrey said he'll keep us posted. Let's wait until a final decision has been made in regards to the Conda documentation.

hi @devedse - we put the Conda instructions back in since the last release. https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Installation-Windows.md

Was this page helpful?
0 / 5 - 0 ratings