Files
yarmarka/install_with_proxy.sh
2026-03-20 12:15:34 +03:00

37 lines
1.6 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# install_with_proxy.sh
# Настройки прокси
PROXY_USER="xzWswb"
PROXY_PASS="7BwRZg"
PROXY_HOST="72.56.142.117"
PROXY_PORT="8000"
# Установить переменные окружения
export HTTP_PROXY="http://${PROXY_USER}:${PROXY_PASS}@${PROXY_HOST}:${PROXY_PORT}"
export HTTPS_PROXY="http://${PROXY_USER}:${PROXY_PASS}@${PROXY_HOST}:${PROXY_PORT}"
export http_proxy="http://${PROXY_USER}:${PROXY_PASS}@${PROXY_HOST}:${PROXY_PORT}"
export https_proxy="http://${PROXY_USER}:${PROXY_PASS}@${PROXY_HOST}:${PROXY_PORT}"
echo "✅ Прокси настроен: $HTTP_PROXY"
# Проверить прокси
curl -I https://pypi.org --proxy $HTTP_PROXY --connect-timeout 10
# Установить пакеты
pip install fastapi --proxy $HTTP_PROXY --timeout 100
pip install uvicorn[standard] --proxy $HTTP_PROXY --timeout 100
pip install pydantic --proxy $HTTP_PROXY --timeout 100
pip install python-jose[cryptography] --proxy $HTTP_PROXY --timeout 100
pip install passlib[bcrypt] --proxy $HTTP_PROXY --timeout 100
pip install python-multipart --proxy $HTTP_PROXY --timeout 100
pip install bcrypt --proxy $HTTP_PROXY --timeout 100
pip install email-validator --proxy $HTTP_PROXY --timeout 100
pip install requests --proxy $HTTP_PROXY --timeout 100
pip install jinja2 --proxy $HTTP_PROXY --timeout 100
pip install aiofiles --proxy $HTTP_PROXY --timeout 100
pip install qrcode --proxy $HTTP_PROXY --timeout 100
pip install pillow --proxy $HTTP_PROXY --timeout 100
pip install python-dotenv --proxy $HTTP_PROXY --timeout 100
echo "✅ Все пакеты установлены!"