更新时间:2022-01-31 22:19:10
docker-compose exec web pipenv install psycopg2-binary==2.8.3
如果您愿意,您也可以提及自己的特定版本.
you can also mention your own specific version if you like.
如果仍然出现错误,则表示容器未正确停止.使用以下命令将其停止
if you still get an error it means the container is not stopped properly. Use below command to stop it
docker-compose down
然后在安装psycopg2之后启动它
and then start it after installing psycopg2
docker-compose up