Use Anaconda to install tensorflow,opencv3 so that it can run on Jupyter python __python

Source: Internet
Author: User
Tags jupyter install matplotlib jupyter python
Reproduced in: http://blog.csdn.net/chenweiqian_zy/article/details/59109596


Installation of the 1.anaconda installation reference https://www.continuum.io/downloads/.

For example, my installation command is: Bash anaconda2-4.3.0-linux-x86_64.sh


2. Install Jupyter

Update: Conda Update Anaconda

Installation: Conda Install Jupyter


3. Install TensorFlow

Create TensorFlow Environment: Conda create-n TensorFlow python=2.7

Activation environment: Source Activate TensorFlow

Install Tensorflow:pip install--ignore-installed--upgrade https://storage.googleapis.com/tensorflow/linux/gpu/ Tensorflow_gpu-1.0.0-cp27-none-linux_x86_64.whl


4. Install OpenCV

Starting with the activation environment, the commands in these steps are in the TensorFlow environment until the last exit environment.

Before this also added Tsinghua source, do not know if there is no use: Conda config--add channels ' https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'

Install Opencv3:conda install-c Menpo opencv3=3.2.0


5 ran the source of the problem in the process, or no tensorflow and Cv2 use the following sentences.

Install Ipython:conda Install Ipython

Install Jupyter:conda Install Jupyter

The reason for reinstalling the jupyter is that in the TensorFlow environment and not in the TensorFlow environment, the two are not the same installation path and have an impact on usage.


6 other questions

Install Matplotlib:conda Install Matplotlib

Install Pillow:conda Install Pillow


7 Shutdown Environment: Source Deactivate TensorFlow

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.