Posts

Deploy wheel build environment with MSVC v141 2017 on Python (Anaconda)

Download visual C++ build tools 2019 from Microsoft Install vs_buildtools__*.exe Select additional components in "individual components" Tab: Visual C++ Build Tools core features Windows 10 SDK (any verison) MSVC v141 - VS 2017 C++ x64/x86  Build Tools (v14.16) Install miniconda from conda website Select and download  Miniconda3 Windows 64-bit Install Miniconda3-latest-Windows-x86_64.exe with all default settings. Create conda environment Open Start Menu\Anaconda3 (64-bit)\Anaconda Prompt (miniconda3) cmd> conda create -n YOUR_ENV_NAME python vs2017_win-64 Modify file with notepad %HOMEPATH%\miniconda3\envs\YOUR_ENV_NAME\etc\conda\activate.d\vs2017_compiler_vars.bat Line 60:   CALL "VC\Auxiliary\Build\vcvars %BITS% .bat" -vcvars_ver=14.16 %WindowsSDKVer% To:   CALL "VC\Auxiliary\Build\vcvars all .bat" %target_platform% -vcvars_ver=14.16 %WindowsSDKVer% Activate your environment: conda activate YOUR_ENV_NAME If the output like these, that means...

How to make samba server visible in Windows 10 network.

Since Windows 10 Fall Creators Update, 1709 RS3, Microsoft no longer install SMBv1 by default because of the security reason. reference This article introduces a method to make samba server visible in Windows 10 network without enable SMBv1protocol. # wget https://raw.githubusercontent.com/christgau/wsdd/master/src/wsdd.py # opkg install python3-light python3-codecs python3-ctypes python3-logging python3-email nohup Create a init script. reference # vi /etc/init.d/wsdd Add following text to wsdd:  #!/bin/sh /etc/rc.common # wsdd script # Copyright (C) 2007 OpenWrt.org START=64 STOP=64 start() {         echo start         nohup python3 /root/wsdd.py -i br-lan >/dev/null 2>&1 &         # commands to launch application } stop() {         echo stop         pid=`pgrep -f "python3 /root/wsdd.py -i br-lan"`         kill $pid       ...