Building a python environment under Windows

Source: Internet
Author: User
Tags jupyter jupyter notebook

I just started to touch python not long, of course, this is also for beginners to better get started Python, my computer running on both Windows and Red Hat Linux, compared to the development I still prefer the Linux system, many development tools Red Hat company has provided.

So here we first talk about the Linux under the Python,linux Red Hat in the CD-ROM integration of a lot of development tools, when we install Linux before installing the system type of choice when we choose the GUI, and then the corresponding development tools to tick on the good, I checked the development tools, and now I have the JDK on my computer, and also because of GCC, Python.

Of course, if we have not checked this at first, we can also use Yum to install the Python development tool, directly yum install Python, so Linux under the Python environment we have completed, if you want to enter Python directly click

This will enter the Python environment under Linux.

Next, let's look at the Python environment under Windows, under Windows I'm using Anaconda, Do not use python.org provide pycharm, then we come to install anaconda,391m anaconda or to download for a while, we now install

We'll just have to order next when we get there.

Be sure to pay attention to the first hook, the first is to add anaconda to the environment variables inside the system, so we can directly use the command prompt for Python development. Then the install waits to be finished.

Of course, anaconda installation is still relatively time-consuming, here I directly put Anaconda installed in the solid state, so that a little faster.

After the installation is complete, we open the cmd command prompt directly, enter Python and return to the development of Python

What if we're going to write a web crawler? We also need to install some other development tools, and after installing Anaconda, we can install the development tools via PIP. We enter in turn:

PIP Install requests

Pip Install BeautifulSoup4

Pip Install Jupyter

In this way, we not only installed the Python development environment, but also installed the web crawler tools.

So next, if we're going to write a web crawler, we have two ways to go into development tools:

Method One:

(Open the Anaconda, then select the Jupyter notebook, the direct point launch just fine)

Method Two:

(Enter Jupyter notebook from the command prompt, wait a minute to open the development tool, of course, do not close the command prompt)

This is the open jupyter.

So jupyter we open, to write the crawler, we will directly click on the upper right corner of the new

Select [Conda root] to enter the following interface.

You can enjoy the development of the new (^_^) ~ ~

Building a python environment under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.