[Memo] Construction of cygwin environment

I decided to rebuild the Cygwin environment on Windows, so I made a note of the procedure.

For those who do scientific and technological calculations using.

First, ** Let's give up matplotlib on Cygwin ** It may be possible if you do your best. But if you devote that time to development, your productivity will increase many times. You can get a sufficient environment with a little patience.

Introduced Anaconda

I don't think about anything. Download and install Python 3.6 Version 64bit-installer (32bit for 32bit). ~~https://www.continuum.io/Downloads~~ 2019/03/22 postscript The domain of Anaconda has changed, so click here. https://www.anaconda.com/distribution/

Introducing Cygwin

For the time being, download setup-x86_64.exe (setup-x86.exe for 32bit) from Official. Execute as it is and hit the next repeatedly until the package is selected. initial.png

This time C/C++

Fortran

Python I left it to Anaconda.

Common

After selecting these, go to the next. The packages required for the dependency will be automatically output, so proceed directly to the next installation.

Introduced apt-cyg

Although it deviates from the main subject, apt-cyg will be introduced for future package management. Please refer to here for this. http://qiita.com/hkuno/items/df06db4bb406a17d2494

Introduced matplotlib

The difficulty with cygwin is the introduction of matplotlib. As I wrote at the beginning, ** give up **. However, if the Python path on the Anaconda side is in the path, calling iPython with Cygwin will call Anaconda's. Both scipy and matplotlib work fine on this iPython. In this case, the Python environment will be that of Anaconda, so install the Python package with conda. (In this case, you don't have to move X windows, so it's a lot of work.)

** 2017/10/02 postscript ** Pass Anaconda through cygwin. Add the following to .bashrc in the cygwin user directory.

PATH=/cygdrive/c/Anaconda3:/cygdrive/c/Anaconda3/Scripts:/cygdrive/c/Anaconda3/Library/bin:$PATH
export PATH

.bashrc is automatically done by starting mintty (a terminal often used in cygwin) even once. If you have changed the installation location of Anaconda on the Windows side, change the PATH as appropriate. Now you can hit anaconda's python on cygwin without going through ipython.

Summary

Get a Mac or Linux.

Recommended Posts

[Memo] Construction of cygwin environment
Environment construction memo of pyenv + conda
ConoHa environment construction memo
BigGorilla environment construction memo
Anaconda environment construction memo
Django development environment construction memo
Anaconda3 × Pycharm environment construction memo
[MEMO] [Development environment construction] Python
Environment construction of python2 & 3 (OSX)
[MEMO] [Development environment construction] wine
Environment construction of python and opencv
Python environment construction memo on Windows 10
Start of self-made OS 1. Environment construction
[Django] Memorandum of environment construction procedure
Python environment construction memo on Mac
Star Cluster environment construction work memo
[MEMO] [Development environment construction] Jupyter Notebook
Environment construction of python3.8 on mac
Emacs Python development environment construction memo
Ubuntu Desktop 20.04 development environment construction memo
Operation memo of Conda virtual environment
Environment construction of "Tello_Video" on Ubuntu
Memo of python + numpy/scipy/pandas/matplotlib/jupyterlab environment construction on M1 macOS (as of 2020/12/24)
Memo of Linux environment construction using VirtualBox + Vagrant on Windows 10
Django environment construction
DeepIE3D environment construction
Emacs-based environment construction
Python environment construction
Environment construction (python)
django environment construction
CodeIgniter environment construction
python environment construction
Python --Environment construction
Python environment construction
Mac OS X development environment construction memo
Construction of development environment for Choreonoid class
OpenLDAP construction memo
A memo packed with RADEX environment construction
Golang environment construction
python environment construction
Word2vec environment construction
Installation of Python3 and Flask [Environment construction summary]
Poetry-virtualenv environment construction with python of centos-sclo-rh ~ Notes
My python environment memo
Environment construction: GCP + Docker
Django project environment construction
python windows environment construction
Go language environment construction
homebrew python environment construction
PyData related environment construction
Anaconda-4.2.0-python3 environment construction (Mac)
Python development environment construction
YOLO v4 environment construction ①
pyenv + fish environment construction
python2.7 development environment construction
grip environment construction onCentOS6.5
Golang environment construction [goenv]
Mac environment construction Python
Pyxel environment construction (Mac)
[Memo] Django development environment
Python environment construction @ Win7