我们要学习强化学习相关知识,仅仅通过看书肯定是远远不够的,必须要自己动手写一些代码,这样对相关内容的了解才能更全面,我们的知识也能够真正落地。因此,本篇主要是让大家了解一下基础环境的搭建。
Python、Anaconda、PyCharm
- Python
我们要进行强化学习实践,首推还是使用Python来搭建基础编程环境。如果对Python还不熟,推荐这个Python基础教程。
- Anaconda
在开发环境配置方面,推荐大家使用Anaconda,通过它可以搭建虚拟环境。你可以把它构建的虚拟环境视为一个封闭的独立空间,里面可以按照你的需求配置不同的Python开发包。同时,你也可以使用Anaconda配置多个虚拟环境,这些环境之间互不影响。具体,推荐大家看这个Anaconda入门简介。
- PyCharm
要进行具体的代码调试和编辑,还需要一个较好的IDE。我们这里还是推荐PyCharm。在PyCharm中,可以在其setting中设置具体由Anaconda配置的虚拟环境作为解释器,如下图:
PyCharm的相关安装等,可参见