Yes, I'm a little bit sick. I couldn't find an installation method that meets the following conditions, so I'll keep it as a memorandum.
Please guess
Since Python 3.6, the console encoding has changed to UTF-8, and it seems that it also supports long paths, so this is an attempt to escape from the Paleolithic command prompt.
Since virtualenvwrapper-powershell only supports Python 2.7 and virtualenvwrapper-win does not support PowerShell, I will take this opportunity to try using venv.
Install
Download and install from Official Site.
The default installation path is too long, so I changed it to C: \ Python36
.
Start PowerShell and do the following: This work only needs to be done once.
Set-ExecutionPolicy Unrestricted -Force -Scope CurrentUser
python3 -m venv <Virtual environment name>
~\<Virtual environment name>\Scripts\Activate.ps1
deactivate
Speaking of virtual environment in Python, virtualenv was the standard, but venv seems to be enough.
Python.jp > Environment Construction Guide > Python in Windows environment http://www.python.jp/install/windows/index.html
Python.jp > Environment Construction Guide > Python in Windows environment http://www.python.jp/install/windows/virtualenv.html#h_install_windows_virtualenv_2erst_5
Recommended Posts