Update 2016/8/5 Rewritten to python installation @Windows in 2 lines.
y__sama If you add anaconda, you can enter all of this area. All are available in 64-bit version
Python environment construction for those who aim to become data scientists 2016 If you look around ↑, it's perfect
~~ Using Numpy and Matplotlib with Python (Windows) --Gobble up pudding says that 32bit is better Is it improving now? ~~
~~ Apparently, the official side is tired of rebuilding to the 64-bit version, and officially there is only the 32-bit version. Volunteers have made it a 64-bit version, including the package. ~~
Install from the command line with chocolatey (https://chocolatey.org/) in a modern way
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
It seems that there is something called anaconda that includes not only python itself but also frequently used convenient modules. Thank you to y__sama for teaching me. You can save the trouble of building an environment at once.
~~ When installing with chocolatey, only miniconda can be found ... ~~ It seems that Anaconda was also delivered from June 2016! Install Anaconda with chocolatey
~~ ** I dropped the exe that installs the full version. This is the easiest ** ~~ The state of python got messed up, so I uninstalled it and reinstalled it with chocolatey → Install python in 2 lines @Windows
choco install miniconda3
What is miniconda ... If you don't have time or disk space for the entire distribution, try Miniconda. which contains only conda and Python. Then install just the individual packages you want through the conda command.
Unlike anaconda, it seems that you drop the package yourself. It seems that the size of anaconda after deployment will eventually be 2 to 3 GByte on CentOS and 3 to 4 GByte on Windows, so if you suddenly say that such capacity, miniconda may be fine.
To install additional packages on Anaconda, either (1) use the "conda install" command, or (2) use "setup.py" included in the files of the package you want to install to "python setup.py". There are three ways to do this: run the "install" command or (3) use the pip command.
Please refer to the reference page in the "Reference" section at the bottom of this page. If you have anaconda, the following steps are completely useless! (゜ ω ゜)
If windows 64bit, it will be automatically recognized and 64bit python will be installed (it seems)
choco install python
(There is also an installer for those who do not want to use chocolatey) (python 3.5.1 64bit install(http://www.filehorse.com/download-python-64/))
python package management tool First, make sure it is not installed with python. I think it's in a folder called Script in the directory where python.exe is. Imadoki, package installation is usually from the command line
choco install pip
pip -V
or pip --version
and upgrade if it is 8.1.0 or earlier (how to do it is described in 4)pip install -U pip
or pip install --upgrade pip
Needless to say, use two hyphens when connecting two or more characters as an option. If you want to take the acronym and abbreviate it to one letter, upgrade => U and "-U" is enough.
ipython seems to be an enhanced shell of interactive python. If you want to use interactive python in your favorite terminal without using IDLE, you should put it in. pyreadline is required when using ipython
pip install ipython
pip install pyreadline
I want to install numpy, scipy, matplotlib as well, but I get stuck from pip.
libraries lapack not found in ['C:\\Users\\U1and0\\AppData\\Local\\Programs\\Python\\Python35\\lib', 'C:\\', 'C:\\Users\\U1and0\\AppData\\Local\\Programs\\Python\\Python35\\libs']
NOT AVAILABLE
There were a lot of things like that, but I didn't really understand. I arrived at .whl, download it, and pip it. Before that, you need to install something called wheel. (Wheel is a distribution format of python package. I don't know if the 64-bit version isn't official because it can't be simply installed with pip like ipython, or if I've skipped steps without knowing anything. )
pip install wheel
Now you can create a whl format file or unzip and install it.
Download the .whl file of your favorite package from Unofficial Package Storage For example, download numpy-1.10.4 + mkl-cp35-cp35m-win_amd64.whl (unlike the other three, this one is only 123MB)
cd <2 file download directory>
pip install numpy-1.10.4+mkl-cp35-cp35m-win_amd64.whl
Quick to ask package manager pip
pip list
or pip freeze
If you are still uneasy, import each package and ask for version information.
import numpy
numpy.version.version
Since matplotlib does not have a version, if you type in python as follows and Gauss distribution appears, it is installed
gaussian.py
import numpy as np
from matplotlib import pyplot as plt
mean = 0
var = 1
x = np.arange(-5., 5., 0.001)
y = (1./np.sqrt(2 * np.pi * var) * np.exp(-(x - mean)**2 / 2 / var))
plt.plot(x, y)
plt.show()
Installing numpy, scipy, matlib with pip http://hennohito.cocolog-nifty.com/blog/2014/04/python34-64-b-1.html Unofficial package collection http://www.lfd.uci.edu/~gohlke/pythonlibs/ When installing python, 32bit or 64bit is better ... http://fa11enprince.hatenablog.com/entry/2014/12/07/135713 The python package you want to include http://rinor.hatenablog.com/entry/2015/07/11/105210 Installation of anaconda full version https://www.continuum.io/downloads anaconda installation instructions) Japanese http://morimori2008.web.fc2.com/contents/PCprograming/python/pythonAnaconda.html List of packages included in anaconda http://docs.continuum.io/anaconda/pkg-docs
Recommended Posts