Micrograd: A learning repo based on Andrej Karpathy's lecture
-
Open the terminal through PyCharm, this will automatically open at the root for the current project.
-
Create a virtual environment called
.venvThe.denotes a hidden folder.The command below will create a new folder called
.venvpython3 -m venv .venvIn my system the Python3 installation was not pointed to by the system
pythonso I have usedpython3for the above command. Alternatively use the following:python -m venv .venv
In the PyCharm terminal type in the following command to activate the virtual environment .venv :
source .venv/bin/activate
Go to (Cmd + ",") to open Python Interpreter and add a new interpreter from existing (under virtual environments).