1. pip install in proxy environment (pip_install.bat)
1 2 3 4 | python -m pip install --proxy=192.168.0.1:8080 \ --trusted-host pypi.org \ --trusted-host pypi.python.org \ --trusted-host files.pythonhosted.org %1 |
2. environment variables (env.bat)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | rem PROMPT=$P$G rem @set PATH=%~dp0bin; @echo. @echo Setting up environment for using MinGW with GCC from %~dp0. @set BUILD_HOME=C:\Dev @set PYTHONHOME=%BUILD_HOME%\Anaconda3 @set PYTHONPATH=%PYTHONHOME%\Lib @set MINGW_HOME=%BUILD_HOME%\mingw32 @set JAVA_HOME=%BUILD_HOME%\jdk1.8.0_152 @set GROOVY_HOME=%BUILD_HOME%\groovy-3.0.0 @set GRAPHVIZ_HOME=%BUILD_HOME%\graphviz-2.38 @set PATH=%MINGW_HOME%/bin;%PATH% @set PATH=%PYTHONHOME%;%PYTHONHOME%\Scripts;%PATH% @set PATH=%JAVA_HOME%/bin;%PATH% @set PATH=%GROOVY_HOME%/bin;%PATH% @set PATH=%GRAPHVIZ_HOME%/bin;%PATH% cmd.exe |
3. spyder
runspyder.py
from spyder.app import start start.main() |
runspyder.bat
@echo off @set BUILD_HOME=C:\ProgramData @set PYTHONHOME=%BUILD_HOME%\Anaconda3 @set PYTHONPATH=%PYTHONHOME%\Lib @set PATH=%PYTHONHOME%;%PYTHONHOME%\Scripts;%PATH% @start python runspyder.py |
댓글 없음:
댓글 쓰기