Simple verification code recognition (1)---------------------(python + tensorflow + Rnn) (environment construction)

 Environment setup:

win10+python3.6 + tensorflow(1.13.1)

One, python3.6 installation

Python official website to download the Python installation package corresponding to your computer and system

       Website: https://www.python.org/downloads/release/python-363/

       Scroll down to Files, here I downloaded Windows x86-64 executable installer

(Note: 64-bit Python must be installed to install TensorFlow, TensorFlow does not support 32-bit)

2. After the download is complete, you will get a python-3.6.3-amd64.exe application, right-click to run the installation package as an administrator; you can choose to install all the way by default, or customize to customize the path you want to install;

       It is recommended to install for all users, the path I installed here is D:\ruanjiananzhuang\Python;

       Check add to PATH, you can save the following steps to configure the system environment variables; all the way next to complete the installation.

Three, test whether the installation is successful

       Open cmd and enter Python; (the following figure shows that the installation is successful)

        If it shows that python is not a system command, it means that the system environment variable has not been configured successfully;

The following describes the configuration of system environment variables:

       Computer (or My Computer)-right click properties-environment variables-system variables-path, double-click to open the edit window of path, and add the Python installation path. Such as D:\ruanjiananzhuang\Python\Python36\Scripts\ D:\ruanjiananzhuang\Python\Python36\ 

       After confirming, re-cmd test whether the installation is successful

4. After installation, you can find the Python3.6 folder in all applications of the system;

       For convenience, you can send the IDLE right button to the desktop shortcut.

At this point, the installation of Python 3.6 is over.

The following describes the installation of TensorFlow

In the above Python installation process, pip is usually installed, here are two methods

When there is an installation package:

1. Go to the URL below to download the package you need. (TensorFlow, nltk, numpy, etc. can all be found)

https://www.lfd.uci.edu/~gohlke/pythonlibs/

2. Take tensorflow as an example, download a corresponding version of TensorFlow whl file

3. Put the file in the Scripts folder under the Python installation path, such as D:\ruanjiananzhuang\Python\Python36\Scripts

4. Open cmd, enter the path, enter

pip install tensorflow-1.4.0-cp36-cp36m-win_amd64.whl

pip install tensorflow-1.4.0-cp36-cp36m-win_amd64.whl

Direct pip:

pip install tensorflow==1.13.1

Just set up the environment here,,,,

     You can pay attention to the official account of my friend and me~~~ Here are some python technical information that my friend and I update from time to time! ! I hope you can support me and pay attention to it. Thank you everyone~~

Guess you like

Origin blog.csdn.net/weixin_39121325/article/details/88603087