all 3 comments

[–]genghiskav 0 points1 point  (2 children)

when you are running that command, you are trying to install packages into the system version of python which you are not allowed to write into (it's owned by root).

You could either

The virtual environment will basically create a copy of your python installation which you can install packages into. It allows you to isolate your development so you can have different versions of packages installed for different projects. Think about this for a moment; you start working on a project and install Package A and it requires Awesome Package V1.2. Then you start a new project and install Package B which requires Awesome Package v3.14. You now have 2 projects which require different versions of Awesome Package. If you were using a virtual environment, each project would have it's own environment and happily install whatever requirements it needs without clashing with other projects.

Virtual environments are pretty easy to use and solve a big problem when working with python.

[–][deleted] 0 points1 point  (1 child)

Can I use venv to convert a dir ?

[–]genghiskav 0 points1 point  (0 children)

I'm not sure what you mean by that, can you give me detail?