Search code examples
pythontensorflowpip32bit-64bitpython-module

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


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.


Solution

  • 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.