官术网_书友最值得收藏!

Installing Enthought Canopy

This book uses Python as its programming language, so the first thing you need is a Python development environment installed on your PC. If you don't have one already, just open up a web browser and head on to https://www.enthought.com/, and we'll install Enthought Canopy:

Enthought Canopy is just my development environment of choice; if you have a different one already that's probably okay. As long as it's Python 3 or a newer environment, you should be covered, but if you need to install a new Python environment or you just want to minimize confusion, I'd recommend that you install Canopy. So, head up to the big friendly download Canopy button here and select your operating system and architecture:

      

For me, the operating system is going to be Windows (64-bit). Make sure you choose Python 3.5 or a newer version of the package. I can't guarantee the scripts in this book will work with Python 2.7; they are built for Python 3, so select Python 3.5 for your OS and download the installer:

There's nothing special about it; it's just your standard Windows Installer, or whatever platform you're on. We'll just accept the defaults, go through it, and allow it to become our default Python environment. Then, when we launch it for the first time, it will spend a couple of minutes setting itself up and all the Python packages that we need. You might want to read the license agreement before you accept it; that's up to you. We'll go ahead, start the installation, and let it run.

Once Canopy installer has finished installing, we should have a nice little Enthought Canopy icon sitting on our desktop. Now, if you're on Windows, I want you to right-click on the Enthought Canopy icon, go to Properties and then to Compatibility (this is on Windows 10), and make sure Run this program as an administrator is checked:

This will make sure that we have all the permissions we need to run our scripts successfully. You can now double-click on the file to open it up:

The next thing we need is a Java Development Kit because Spark runs on top of Scala and Scala runs on top of the Java Runtime environment.

主站蜘蛛池模板: 濉溪县| 芒康县| 乐亭县| 若尔盖县| 阳曲县| 浙江省| 福安市| 鄂州市| 湘潭县| 洪雅县| 高台县| 河津市| 根河市| 新和县| 鹤峰县| 土默特左旗| 宾阳县| 和林格尔县| 新野县| 蒲城县| 华安县| 洱源县| 北安市| 财经| 德令哈市| 蓝山县| 克什克腾旗| 榕江县| 玛曲县| 高碑店市| 临朐县| 崇州市| 隆德县| 民丰县| 香港| 剑川县| 依安县| 柳州市| 察哈| 绥阳县| 清水县|