Reputation: 1122
I installed Python 3.7.1 using home-brew, and on the command line typing python
returns the default python 2.7.10 and python3
gives the home-brew installed version. Then using
python3 -m pip install --user numpy scipy matplotlib
I installed the required packages.
Now what I understand is that to use the home-brew version python I have to always use python3
and the required packages are installed inside python 3's lib folder.
I want to install virtual env correctly. I want to know what command should I use if I want it to be usable with python3?
Upvotes: 0
Views: 81
Reputation: 11
From my understanding you want to create python3 environments. First install virtualenv using pip.
pip install virtualenv
Then you can create a python3 environment like this:
virtualenv -p python3 env_name
Upvotes: 1