how to pip install 64 bit packages while having both 64 bit and 32 bit versions?

Mohsen Haddadi picture Mohsen Haddadi · Apr 16, 2017 · Viewed 25k times · Source

I have decided to learn generic algorithms recently and I needed to install Tensorflow package. Tensorflow run on python 64 bit only, so i install python 3.5.0 64 bit without uninstalling python 32 bit. because i was afraid to lose my packages on python 32 bit by uninstalling it. The problem is how can i force pip install to install a package on my python 64 bit version instead of 32 bit version.

Answer

shad0w_wa1k3r picture shad0w_wa1k3r · Apr 16, 2017

If you have actually managed to install both x64 & x32 packages, you could simply do

C:\path\to\corresponding\python.exe -m pip install <package>

This will ensure you use the correct pip and install the package for the specific python instance.