Windows10home Python3.7 PostgresSQL10.12
"Control Panel"-"System"-"Detailed System Settings" + "Environment Variables"
C:\python_project\venv_python_dev\Private_Diary_project>psql --version
psql (PostgreSQL) 10.12
psql -U postgres
C:\python_project\venv_python_dev\Private_Diary_project>psql -U postgres
create database XXXXXXXXX;
postgres=# create database XXXXXXXXXXXXX_db;
CREATE DATABASE appears.
psql=# | I can't hear the vertical bar!
psql=# \q
pip install psycopg2-binary
C:\python_project\venv_python_dev\Private_Diary_project>pip install psycopg2-binary
that's all
Recommended Posts