Install virtualenv using pip or pip3?

I used brew to install both python2 and python3

brew install python
brew install python3

I noticed that there are pip and pip3, so I have to use pip to create virtualenv

pip install virtualenv or pip3 install virtualenv

+4
source share
2 answers

Use pip install virtualenvto create pythonenv and pip3 install virtualenvto install python3env

The difference is required, because if you use packages pip install virtualenvand are needed python3, you will get all kinds of errors!

+2
source

Your second question: "How can I find out if this virtualenv is the one created by pip or pip3?"

- > / ( - ). , , "python -version". , python , " python". , .

+2

Source: https://habr.com/ru/post/1526055/


All Articles