add install.py for package pysocks

main
butaixianran 2024-08-25 12:04:31 +08:00
parent 6aafbdad32
commit bcbb4b72a7
3 changed files with 8 additions and 1 deletions

View File

@ -245,6 +245,9 @@ Since v1.5.5, we've already optimized the SHA256 function to the top. So the onl
# Change Log
## v1.11.2
* Add "install.py" to install package "pysocks" for using socks for proxy.
## v1.11.1
* Merged PR #299 to work with latest sd v1.10.1

4
install.py Normal file
View File

@ -0,0 +1,4 @@
import launch
if not launch.is_installed("pysocks"):
launch.run_pip("install pysocks", "pysocks")

View File

@ -6,7 +6,7 @@ import requests
import shutil
version = "1.11.1"
version = "1.11.2"
def_headers = {'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148',
"Authorization": ""}