$ (my_project_venv) prefix indicates that the Python virtual environment my_project_venv is currently active. Once the virtual environment is activated, your shell prompt should be prefixed with the title of the virtual environment. Now, run the command below from within the new Project root to fashion a new environment called my_project_venv: $ python -m venv my_project_venvĮxecute the command below to enable the new virtual environment: $source my_project_venv/bin/activate Next, run the command below to enable Python: $ scl enable rh-python36 bash It ensures that every project has its own dependencies and that it will not interfere with other projects.įirst, fashion a new project directory, then switch to the directory: $ mkdir ~/my_new_project The environment offers unprecedented control over your system for Python projects. The Python virtual environment permits you to configure Python packages in a secure location.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |