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
pip install virtualenv
pip3 install virtualenv
Use pip install virtualenvto create pythonenv and pip3 install virtualenvto install python3env
python
python3
The difference is required, because if you use packages pip install virtualenvand are needed python3, you will get all kinds of errors!
Your second question: "How can I find out if this virtualenv is the one created by pip or pip3?"
- > / ( - ). , , "python -version". , python , " python". , .
Source: https://habr.com/ru/post/1526055/More articles:Android interstitial ads add test device? - androidfavicon.ico not showing up in Azure - faviconPython Threading - threads do not start - pythonHow to save pcl :: histogram file in png or jpg? - c ++Video game does not load - javascriptNested dojo widgets do not work - dojoJquery selector cannot find elements when loading ajax - javascriptΠΡΠΈΠ±ΠΊΠ° "Parser return unfilled prom" Π² Dojo - javascriptThe sequence of sending a call in a method causes many simultaneous sendings when the method is called again - iosWhat is a reasonably safe way to store credentials at rest for use in a screen cleaning application? - securityAll Articles