I was in the study of TensorFlow, but also in their own notebooks to complete the installation, in the Pycharm to learn. But recently, in order to use Python's scientific computing environment, I uninstalled the previous environment and reinstalled the TensorFlow with Anaconda, which describes how the CPU version is installed.Prerequisite check:
In Https
It was an incredibly simple thing to install TensorFlow, but it was on my computer for one weeks. During the encounter all kinds of trouble, all kinds of pits, in this record, convenient for everyone. Errors include:
Undefined symbol:zgelsd_
Importerror:cannot import name ' MultiArray '
WHL is not a supported wheel
1, install Anaconda: https://www.continuum.io/downloads/(i installed li
Yesterday want to run a machine learning code, in the WIN10 system to configure the day of the Python environment, is really a headache, ready to write a blog to help the next need to configure the Environment brothers.1. Download AnacondaAccording to yesterday's experience, found that Anaconda is really useful. : https://www.anaconda.com/download/I'm under the 64-bit.After the good is installed, the installation process is very simple, here will not
is recommended to install Anaconda, because this integrates many of the necessary libraries for scientific computing, can avoid many dependencies, installation tutorials can refer to here.The above conditions, then congratulations you can start to download Cuda and CuDNN installation package, note that the version number is Cuda 8.0 and CuDNN 5.1 (due to different versions of TensorFlow, 5.1 is no longer a
Download and install AnacondaDownload the anaconda first, which can be downloaded from the image website of Tsinghua University .Install Anaconda, and be careful not to remove the option to add environment variables during installation.After the installation is complete, in the installation directory cmd, enterConda ListYou can see the integration environment that Anaco
was successful.Second, installation TensorFlowOpen Anaconda Prompt1. Upgrade Pip to the latest version:2. Create an environment named TensorFlow and install the Python3.5.2Conda Create--name TensorFlow python=3.5.2Enter Y, enter. After the installation is complete:3. Activate this environment: Activate TensorFlow4. Installing TensorFlowPip Install TensorFlowNote
Win7 Installing the anaconda+tensorflow+ configuration PycharmMarch 31, 2017 10:52:17Hits: 24251First summarize oneself encounters the pit: (Look back to think actually installs very simple)
The first pit: Anaconda must install version 4.2, cannot install version 4.3; Full of blood and tears.Because we need to install our own Python must be 3.5 before we
A Installing Anaconda3Select the appropriate version of the Anaconda installation, because the website directly download the speed is too slow, we choose to download from Tsinghua University open source software image station.: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/After entering the website, drop down to the bottom and select the Windows version to download.installation process, direct clic
1, after the installation is complete, open anaconda Prompt, create tensorflow virtual environmentIn the prompt, enter:>>> Conda create-n TensorFlow python=3.52. Enter TensorFlow environment, enter>>> Activate TensorFlowBefore the command line, you can see the Add (TensorFlow
Current environment: WIN10, anaconda2,python2.7
Objective: To install TensorFlow without affecting the current software environment
Currently TensorFlow only supports the Python 3.5 version under Windows, and I only have python2.7 on my system. Installing TensorFlow requires a Python dependency pack, so I chose to install the
First to install the Anaconda.Note that to add an environment variable to the system, there is an option for this. Or you'll need to manually CD to Anaconda3\bin to execute the instructions below.
Due to the installation of TensorFlow, use
Pip Install TensorFlow
The instructions always go wrong, even with the official website.
Pip Install--upgrade HTTPS://STORAGE.GOOGLEAPIS.COM/
://conda.anaconda.org/jjhelmustensorflowIv. TestingTest procedures on the official website. Demo for training a linear dataImportTensorFlow as TFImportNumPy as NP#Create phony x, y data points in NumPy, y = x * 0.1 + 0.3X_data = Np.random.rand (100). Astype (np.float32) Y_data= X_data * 0.1 + 0.3#Try to find values for W and b that compute y_data = W * X_data + b#(We know that W should is 0.1 and B 0.3, but TensorFlow would#Figure which is out for us.
Python-dev
If the previous command doesn't work, you can use the following command to resolveUsing the Aptitude tool
sudo apt-get install aptitudesudo aptitude install Python-dev
Install the Python-dev now to install the PYTHON-PIP.
sudo apt-get install Python-pip
Type PIP in the terminal and, if shown, the installation succeeds4. Installation ResultsThe packages used for numeric calculations and drawings are now installed with Pip, respectively, NumPy scipy mat
Install TensorFlow (CPU version)Familiar with the Anaconda command, you can refer to http://www.jianshu.com/p/d2e15200ee9bThe official recommendation is that you have the GPU immediately, but you can also install a CPU version, and the command to create the environment is:conda create -n tensorflowpython=3.6(Be sure to specify the Python version, I did not write python=3.6 at first, after various failures)D
What is Anaconda
Anaconda refers to an open source Python release that contains more than 180 science packages and their dependencies, including Conda, Python. With a large number of scientific packages, the Anaconda download file is larger (approximately MB), and if you need only some packages, or you need to conserve bandwidth or storage space, you can also us
the relevant must rely on, for the space requirements of users, Miniconda is a choice.
Before you go to the next section, explain Conda's design philosophy--conda treats almost all of the tools and Third-party packages as package, including Python and Conda itself. As a result, Conda has broken the constraints of package management and environmental management, and can easily install various versions of Python, various package, and easily switch.
But we sometimes have to install the three-party
This article directory
Introduction based on Anaconda tensorflow install 1 download Linux version of Anaconda installation package 2 Install Anaconda use Anaconda installation TensorFlow 1 establish a Conda computing environment 2
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.