自用策略初始提交
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
@echo off
|
||||
|
||||
echo Installing Python packages for Xueqiu Trading System...
|
||||
echo.
|
||||
|
||||
python --version >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo Python not found. Please install Python first.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Python found.
|
||||
echo.
|
||||
|
||||
echo Installing packages...
|
||||
pip install pandas requests pyyaml pyjwt pyqmt==1.0.4
|
||||
|
||||
if errorlevel 1 (
|
||||
echo Installation failed. Trying with Aliyun mirror...
|
||||
pip install pandas requests pyyaml pyjwt pyqmt==1.0.4 -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
|
||||
)
|
||||
|
||||
if errorlevel 1 (
|
||||
echo Installation failed. Trying with Douban mirror...
|
||||
pip install pandas requests pyyaml pyjwt pyqmt==1.0.4 -i https://pypi.douban.com/simple/ --trusted-host pypi.douban.com
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Verifying installation...
|
||||
python -c "import pandas, requests, yaml, jwt; from pyqmt import pyqmt; print('All packages installed successfully!')"
|
||||
|
||||
if errorlevel 1 (
|
||||
echo Some packages may not be installed correctly.
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Installation complete.
|
||||
pause
|
||||
Reference in New Issue
Block a user