Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6

On February 1, 2017, Python 3.6 is available in Anaconda, so compile GVim again. 1st article will be reprinted.

Build a GVim-based Python development environment on a Windows 10, 64-bit PC. The Windows account name is daizu, and each program is mainly placed under C: \ Users \ daizu \ AppData \ Local.

Python

Anyway, Python. On Windows, it is convenient to build a Python environment with Anaconda.

To select the installation target, select Just for me and change the Destination folder from the default setting C: \ Users \ daizu \ Anaconda3 to C: \ Users \ daizu \ AppData \ Local \ Anaconda3. Check both Advanced Options. In addition to the default settings, the directory where the executable file is located is added to PATH.

Others

For the following programs, refer to 1st article.

GVim

Get the source from GitHub. Open a command prompt

$ cd AppData\Local
$ git clone https://github.com/vim/vim.git

will do.

Download the batch file makevim64.bat for compiling from the reference URL below and copy it to C: \ Users \ daizu \ AppData \ Local \ vim. Edit makevim64.bat as follows to match the Lua and Python versions.

makevim64.bat


setlocal
:: path to MinGw64
set USERNAME=daizu
set USERDOMAIN=

set PYTHON3=C:/Users/daizu/AppData/Local/Anaconda3
set PYTHON3_VER=36
set DYNAMIC_PYTHON3=yes

set LUA=C:/Users/daizu/AppData/Local/lua-5.3.2
set LUA_VER=53
set DYNAMIC_LUA=yes

md bin
cd src

:: Clean
mingw32-make -f Make_ming.mak GUI=yes clean ARCH=x86-64

:: GUI x64
mingw32-make -f Make_ming.mak GUI=yes OLE=no FEATURES=HUGE ARCH=x86-64

set OUTDIR=../bin
copy *.exe "%OUTDIR%"
copy .\GvimExt\*.dll "%OUTDIR%"
copy *.dll "%OUTDIR%"
copy .\xxd\*.exe "%OUTDIR%"

cd ..
endlocal

At the command prompt, go to C: \ Users \ daizu \ AppData \ Local \ vim and go to

$ makevim64.bat

Compile as.

If the compilation is successful, create a vim80-daizu folder in C: \ Users \ daizu \ AppData \ Local, and create a vim80 directory under it. Copy the directory and set of files in runtime under the directory where you compiled vim (C: \ Users \ daizu \ AppData \ Local \ vim) under vim80. Then compile the compiled executables gvim.exe and vimrun.exe from C: \ Users \ daizu \ AppData \ Local \ vim \ bin toC: \ Users \ daizu \ AppData \ Local \ vim80-daizu Copy to. Then, get ʻiconv.dllandlibintl.dll for 64-bit from the reference URL, and copy them under the vim80-daizu` directory as well.

Create the GVim configuration files _vimrc and _gvimrc under C: \ Users \ daizu \ vimfiles \ dotfiles. The following is an example only for checking the operation.

_vimrc


 set enc=utf-8

_gvimrc


 colorscheme desert

Link these to your home directory. Open a command prompt with administrator privileges

$ mklink c:\Users\daizu\_vimrc C:\Users\daizu\vimfiles\dotfiles\_vimrc
$ mklink c:\Users\daizu\_gvimrc C:\Users\daizu\vimfiles\dotfiles\_gvimrc

will do.

Reference URL

https://sites.google.com/site/fudist/Home/vim-nihongo-ban/mingwvim

Postscript

When I try to use Matplotlib

This application failed to start because it could not find or load
the Qt platform plugin "windows" in "".

Reinstalling the application may fix this problem.

And an error occurred.

$ conda uninstall pyqt
$ conda install pyqt

It can now be executed with.

Recommended Posts

Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Build a GVim-based Python development environment on Windows 10 (1) Installation
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
Build Python environment on Windows
Build python environment on windows
Simply build a Python 3 execution environment on Windows
Build a Python development environment on your Mac
Create a Python virtual development environment on Windows
Build a Python development environment on Raspberry Pi
Create a comfortable Python 3 (Anaconda) development environment on windows
Build a Python development environment on Mac OS X
Build a Python development environment using pyenv on MacOS
Install Python development environment on Windows 10
Build a python3 environment on CentOS7
Python 2.7, 3.4, 3.5 extension module build environment on Windows
Build a python environment on MacOS (Catallina)
Creating a python virtual environment on Windows
Build a Python + OpenCV environment on Cloud9
Windows + gVim + Poetry python development environment construction
Build a 64-bit Python 2.7 environment with TDM-GCC and MinGW-w64 on Windows 7
Build a python environment with ansible on centos6
Build a Python environment on Mac (Mountain Lion)
[Python] Build a Django development environment with Docker
Build a Kubernetes environment for development on Ubuntu
Set up a Python development environment on Marvericks
Python + Kivy development on Windows
Create a Python development environment on Windows (Visual Studio Code remote WSL).
Django environment development on Windows 10
[ev3dev × Python] Build ev3dev development environment
Build a Python environment offline
Build a Django development environment using pyenv-virtualenv on Mac
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Build a local development environment for Laravel6.X on Mac
Build a machine learning Python environment on Mac OS
Build a Python extension for E-Cell 4 on Windows 7 (64bit)
Notes on creating a python development environment on macOS Catalina
How to build a Django (python) environment on docker
Build a Python environment on your Mac using pyenv
Build a machine learning application development environment with Python
Procedure for building a CDK environment on Windows (Python)
Create a decent shell and python environment on Windows
How to build a Python environment on amazon linux 2
Create a Python development environment on OS X Lion
Build a machine learning environment natively on Windows 10 (x64)
Build a local development environment with WSL + Docker Desktop for Windows + docker-lambda + Python
Building a Python environment on Mac
Python environment construction memo on Windows 10
Prepare Python development environment on Ubuntu
Anaconda python environment construction on Windows 10
Building a Python environment on Ubuntu
Install python2.7 on windows 32bit environment
Create a Python environment on Mac (2017/4)
[Python3] Development environment construction << Windows edition >>
Create a Linux environment on Windows 10
Python development environment construction on macOS
Create a python environment on centos
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Build a python machine learning study environment on macOS sierra
Create a Python (pyenv / virtualenv) development environment on Mac (Homebrew)
How to build a new python virtual environment on Ubuntu
Build an Ubuntu python development environment on Google Cloud Platform