aka
2025年1月15日星期三
python 环境变量
what-exactly-should-be-set-in-pythonpath
- PYTHONHOME
Change the location of the standard Python libraries. By default, the libraries are searched in prefix/lib/pythonversion and exec_prefix/lib/pythonversion, where prefix and exec_prefix are installation-dependent directories, both defaulting to /usr/local.
When PYTHONHOME is set to a single directory, its value replaces both prefix and exec_prefix. To specify different values for these, set PYTHONHOME to prefix:exec_prefix.
- PYTHONPATH
Augment the default search path for module files. The format is the same as the shell’s PATH: one or more directory pathnames separated by os.pathsep (e.g. colons on Unix or semicolons on Windows). Non-existent directories are silently ignored.
In addition to normal directories, individual PYTHONPATH entries may refer to zipfiles containing pure Python modules (in either source or compiled form). Extension modules cannot be imported from zipfiles.
The default search path is installation dependent, but generally begins with prefix/lib/pythonversion (see PYTHONHOME above). It is always appended to PYTHONPATH.
An additional directory will be inserted in the search path in front of PYTHONPATH as described above under Interface options. The search path can be manipulated from within a Python program as the variable sys.path.
pyqgis
1 开发环境配置
- quick-guide-to-getting-started-with-pyqgis-3-on-windows 经测试,可用
- setting-up-pyqgis3-with-vscode-python3-on-windows 经测试,不可用
2 教程
- OSGeo4W Shell -----> C:\OSGeo4W\OSGeo4W.bat
- GRASS GIS 8.3.2------> C:\OSGeo4W\bin\grass83.bat --gui
- QGIS Desktop 3.36.3 ------> C:\OSGeo4W\bin\qgis-bin.exe
- Qt Designer with QGIS 3.36.3 custom widgets ----> C:\OSGeo4W\bin\bgspawn.exe "C:\OSGeo4W\bin\qgis-designer.bat"
- Setup ----> C:\OSGeo4W\bin\bgspawn.exe "C:\OSGeo4W\bin\setup.bat"
- SAGA GIS 9.3.1 ----> C:\OSGeo4W\bin\bgspawn.exe "C:\OSGeo4W\bin\saga_gui.bat"
2025年1月14日星期二
2025年1月13日星期一
2025年1月12日星期日
youtube
- https://github.com/yt-dlp/yt-dlp
- yt-dlp: how-do-i-pass-cookies-to-yt-dlp
- https://github.com/yt-dlp/yt-dlp/issues/7271
- https://github.com/ytdl-org/youtube-dl/issues/33006
- https://github.com/yt-dlp/yt-dlp/issues/10927
- https://github.com/yt-dlp/yt-dlp#network-options
- Get cookies.txt LOCALLY
- C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\Network
- yt-dlp.exe --proxy socks5://127.0.0.1:10808/ --cookies www.youtube.com_cookies.txt https://youtu.be/xxxxxxxxxxxxx