![]() OPTION: if the project is to be hosted on GitHub, the following files can be created, or done automatically when creating a repository. These will be needed for the project, e.g.: mkdir data, docs, tests, sources, scripts, figures NOTE: (base) represents an ' alias' and is inside parentheses This is important later on. It should now show (base) BEFORE the directory path, e.g. Hence, the default shell MUST be changed to ' Command Prompt' ( cmd). ![]() However, Conda does not work with PowerShell in VS Code. NOTE: the directory path to the project folder may be preceded by PS, which means the default shell is ' PowerShell'. The Python version should be listed with conda in parentheses, e.g. py file BEFORE creating and activating the venv, as it helps with venv activationĬhoose the Python instance from the list of environments (bottom left). NOTE: it is important to create AND open a. py python file into project_name and cd into it echo > python_script.pyĪlternatively, create the. Open the project folder project_name from the menu in VS CodeĬreate a virtual environment for the projectĬreate a. Hence, for the relative path, type: cd /python_projectsĬreate a folder for the project called project_name and check if it was created in the working folder mkdir project_name
0 Comments
Leave a Reply. |