In this video, we have explained to you that what python virtual environment is, how we can install it and create virtual environments. The main purpose of using virutal environment tool is to resolve the issues of dependencies, versions (of python packages) and indirectly permissions.
We have created a virtual environment with name linuxhint_tutorial and installed two python libraries in it i.e. numpy and pandas to demonstrate that how it actually works.
Commands that are used in this demo:
1. sudo apt-get install python-pip
2. pip install virtualenv
3. virtualenv linuxhint_tutorial
4. virtualenv -p /usr/bin/python3 linuxhint_tutorial
5. source linuxhint_tutorial/bin/activate
6. pip install numpy
7. pip install pandas
8. pip freeze
9. rm -r linuxhint_tutorial
На этой странице сайта вы можете посмотреть видео онлайн python virtualenv длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь linuxhint 10 Март 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 892 раз и оно понравилось 13 зрителям. Приятного просмотра!