Robot Framework Installation with Virtual Environment
Nov 6, 2024
Some library like robotframework
it needs you to mange it under ‘virtual environment’
This work like install to submachine
First of all you need virtual environment library. Then create one. This work by mounting to specific folder you name in this case it is ./foo
$ pip3 install virtualenv
$ python3 -m venv foo
Then you can activate this virtual environment with activate
binary inside bin
subfolder.
$ source ./foo/bin/activate
Then you install anything just like it is the clean new machine
(foo) $ pip3 install robotframework
To exit this virtual world you can do that by running
deactivate
Issue: This environment is externally managed
This is error when you forget to activate next time you use the machine. You can do it by:
source /path/to/venv/bin/activate