[PYTHON] Anaconda 4.4.0 Initial Settings for Windows

Anaconda 4.4.0 (Python 3.6 version) Write down the initial settings of Windows instead of a memo.

Execution environment

Windows 10 (64bit) Anaconda 4.4.0 (64bit)

Preparation

Take the Anaconda pass. Added C: \ Users \ xxx \ Anaconda3 \ Scripts to the environment variable Path. (xxx sets your installation folder)

First, create a configuration file. It took me quite a while to get here.

> jupyter notebook --generate-config

.Jupyter / jupyter_notebook_config.py will be generated in the location where you installed Anaconda.

Change home directory

Change the folder where Jupyter starts first to any location you like.

c.NotebookApp.notebook_dir = 'D:\Sukina\basyo' #Describe the path of your favorite folder
c.NotebookApp.open_browser = False #Don't let the browser start up without permission

When I started Jupyter, the browser started up without permission and it was troublesome, so I set it to False. After launching Jupyter, access http: // localhost: 8888 and it's ok.

For those who launch Jupyter from shortcuts *** Important: Remove the% USERPROFILE% character at the end of the shortcut "Link to:". *** *** Otherwise, the config file doesn't seem to load. (I got stuck ...)

OpenCV installation

Anaconda 4.4.0 (2017/06/02 latest) There doesn't seem to be a Python 3.6 OpenCV package that can be installed with conda.

> conda install -c https://conda.binstar.org/menpo opencv3
Fetching package metadata .............
Solving package specifications: .

UnsatisfiableError: The following specifications were found to be in conflict:
  - opencv3 -> python 2.7*
  - python 3.6*
Use "conda info <package>" to see the dependencies for each package.

If you search on the net, you will find a combination of Python3.5 and OpenCV3.1. I'm going to build a 3.5 virtual environment and install OpenCV. I don't have any code that I want to run, so I'll try installing OpenCV3.

Building a virtual environment for Python 3.5

Build a Python 3.5 virtual environment with Anaconda. With create, you can easily install 3.5 and build a virtual environment. The environment name is py35. If you activate and change the environment, the prompt will change.

If you don't include anaconda in conda create, you just include Python 3.5 I changed it because it becomes.

~~> conda create --name=py35 python=3.5~~

> conda create --name=py35 python=3.5 anaconda
Fetching package metadata ...........
> activate py35
(py35) 
(py35) conda install -c https://conda.binstar.org/menpo opencv3

When I installed it via conda again, I was able to install OpenCV safely. For the time being, confirm.

(py35) python
>>> import cv2
>>> cv2.__version__
'3.1.0'

You have successfully installed OpenCV 3.1.

[Addition] Add the kernel so that you can select it in Jupyter. Jupyter:[Kernel]->[Change Kernel]->[py35]

(py35) ipython kernel install --user --name=py35 --display-name=py35

For Jupyter kernel selection, I referred to Settings for easily selecting multiple kernels with Jupyter. Or rather, it is as it is.

Recommended Posts

Anaconda 4.4.0 Initial Settings for Windows
Various Anaconda settings in Windows 10 environment
Initial settings for Mac (for data analysts)
Flask initial settings
[Linux] [Initial Settings] System Settings
Spacemacs settings (for beginners)
Windows: JupyterLab settings memorandum
Linux, Windows proxy settings
Anaconda on Windows Terminal
Install Anaconda on Windows 10
Install Python (for Windows)
Proxy settings for urllib.request
Initial settings for using Python3.8 and pip on CentOS8
Installation notes for TensorFlow for Windows
[Linux] [Initial Settings] Getting Started
Install cvxpy on windows, Anaconda
F2py on Miniconda for Windows
[Linux] [Initial Settings] Install & Uninstall
Initial settings from Kubuntu installation
[Linux] [Initial Settings] [Flutter] Summary
Raspbian initial settings (Raspberry Pi 4)
Notes on installing Anaconda 3 on Windows
[Linux] [Initial Settings] Backup & Recovery
[Linux] [Initial Settings] Table of Contents for Development Environment Setup
Install dlib for Python (Windows)
Snippet settings for python jupyter notebook
Anaconda python environment construction on Windows 10
Raspberry pi initial setting (for myself)
JupyterLab3.0 Debugger Installation Method for Windows
About pyenv's support for Anaconda / Miniconda
Emacs settings for Python development environment
Use Tensorflow 2.1.0 with Anaconda on Windows 10!
Proxy settings for apt-get are lowercase! !! !! !! !!
Created an environment for Anaconda & Jupyter
Install PyStan on Windows without Anaconda
Initial setup with windows PC provisioning
pykintone on Windows Subsystem for Linux
Initial settings for using GrovePi + starter kit and camera on Raspberry Pi