I have Python installed twice in my computer. The
python.exe file is located once under
C:\Python34 and again under
The first was installed through the standard Python installation, while the second through the Anaconda package which has the same standard Python plus some extra extensions. Both Python versions are 3.4.4.
Now, I was trying to install a Python library/extension (e.g. facebook library). This can be done by typing this in the command line:
pip install facebook
pip keyword is a Python module that simplifies the installation of external libraries. In my case this installs the facebook library only for the standard Python, not for the Anaconda Python.
What I would like instead is to install the library for the Anaconda Python. I can tell because the facebook library is being created under
C:\Python34\Lib\site-packages, but not under
So, why is the library choosing the first Python, and ignoring the second? And, how can I control this behavior?
EDIT: Maybe it's worth mentioning that both
C:\Anaconda3 are included in the Path environment variables.
C:\Python34 comes first, and then
C:\Anaconda3, but I also tried to put
C:\Anaconda3 first, and then
C:\Python34 and tried the installation again. However, the library was again installed in the standard Python.
pip is installed in both Pythons.