Photo by Caspar Camille Rubin on Unsplash

How to Install SqlAlchemy on Visual Studio Code for Mac

Ayça Erbaşı

--

In this paper, I will explain how I install SqlAlchemy on VS Code Mac pc. Hope it will help you.

  1. Install the Python extension on your VS Code.

2. Create a file on your desktop. And add this file on VS Code.

File — > Open —> Select the file that you created.

3. Create a .py file and insert the file that you have created in the 2nd step. You can click on the symbol that has orange dotted lines around it. Then give a name for the file but the name should include .py at the end.

4. Click the .py file and write and run these codes on the terminal.

Create a virtual environment: python3 -m venv env

Activate your environment: source ./env/bin/activate

Install the pipeline: pip install sqlalchemy

Upgrade it: pip install — upgrade pip

Install psycopg2-binary pipeline: pip install psycopg2-binary

Install SQLAlchemy: pip freeze > requirements.txt

Clear the terminal: clear

Call python: python3

Import sqlalchemy: import sqlalchemy

Congratulations you did it!

If it still did not work. Open the Terminal on your Mac (command + space). Write and run these codes one by one:

If you have any problem during installation, do not hesitate to contact me.

Subscribe to DDIntel Here.

Visit our website here: https://www.datadriveninvestor.com

Join our network here: https://datadriveninvestor.com/collaborate

--

--

Ayça Erbaşı
Ayça Erbaşı

Written by Ayça Erbaşı

Interested in MachineLearning | DataScience. Industrial Engineer. www.linkedin.com/in/ayca-erbasi

No responses yet