Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The installation of python3.6 and the method of building tensorflow environment

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "the installation of python3.6 and the method of building tensorflow environment". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Environment building:

Win10+python3.6 + tensorflow (1.13.1)

1. Python3.6 installation

Download the Python installation package for your computer and system on Python's official website.

Web site: https://www.python.org/downloads/release/python-363/

All the way down to Files, where I downloaded Windows x86-64 executable installer

(note: to install TensorFlow, you must install 64-bit Python,TensorFlow, which does not support 32-bit.)

2. After downloading, you get a python-3.6.3-amd64.exe application, and right-click to run the installation package as an administrator. You can choose to install by default, or you can customize to customize the path you want to install.

Install for all users is recommended. The path I installed here is D:\ ruanjiananzhuang\ Python.

Check add to PATH to omit the following steps to configure the system environment variables; next all the way to complete the installation.

Third, test whether the installation is successful

Open cmd and enter Python (as shown in the following figure indicates that the installation is successful)

Show that python is not a system command, indicating that the system environment variable was not configured successfully

The following describes the configuration of system environment variables:

Computer (or my computer)-right-click Properties-Environment variable-system variable-path, double-click to open the edit window of path and add the installation path of Python. Such as D:\ ruanjiananzhuang\ Python\ Python36\ Scripts\ D:\ ruanjiananzhuang\ Python\ Python36\

Determine if the re-cmd test is installed successfully after that

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

At this point, the installation of Python3.6 is over.

The installation of TensorFlow is described below

During the Python installation above, pip is usually already installed, so here are two methods

In the case of an installation package:

1. Go to the URL below to download the package you need. (TensorFlow,nltk,numpy and so on can be found) https://www.lfd.uci.edu/~gohlke/pythonlibs/

two。 Here, take tensorflow as an example, download a whl file of the corresponding version of TensorFlow

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, and type

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

Direct pip:

Pip install tensorflow==1.13.1

It would be nice to set up this environment.

This is the end of the content of "the installation of python3.6 and the method of building tensorflow environment". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report