The default PyThon environment in my linux is: Python 3.6.2 :: Anaconda custom (64-bit)
, I created the virtual environment: Python 2.7.14 :: Anaconda custom (64-bit)
First, I enter the Aanconda virtual envirenment: source activate python27
Then, I installed caffe2, there is an error: ImportError:No module named google.protobuf.internal
so, I use conda to install protobuf: conda install protobuf
, but the error still exists。
when I use pip install protobuf
, the error disappeared.
What's the difference:
conda install package_name
pip install package_name
/opt/anaconda3/envs/python27/bin/pip install package_name
apt install package_name
Is pip install package_name
the same as /opt/anaconda3/envs/python27/bin/pip install package_name
? When I which pip
, it shows: /opt/anaconda3/envs/python27/bin/pip
Thank you!