setup
This commit is contained in:
20
setup.sh
Normal file
20
setup.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Create virtual environment
|
||||||
|
python3 -m venv venv
|
||||||
|
|
||||||
|
# Activate virtual environment
|
||||||
|
source venv/bin/activate
|
||||||
|
|
||||||
|
# Upgrade pip in the virtual environment
|
||||||
|
pip install --upgrade pip
|
||||||
|
|
||||||
|
# Install your packages
|
||||||
|
|
||||||
|
pip install websockets aiohttp python-binance pandas pandas-ta python-dotenv asyncpg fastapi uvicorn[standard] psycopg2
|
||||||
|
|
||||||
|
# Create a requirements.txt file for future use
|
||||||
|
pip freeze > requirements.txt
|
||||||
|
|
||||||
|
echo "Virtual environment created and packages installed!"
|
||||||
|
echo "To activate this environment in the future, run: source ~/market_data/venv/bin/activate"
|
Reference in New Issue
Block a user