Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 346
Mohsen Haddadi Avatar asked Apr 16 '17 05:04

Mohsen Haddadi


People also ask

Can I install both 32-bit and 64-bit Python?

You can generally install multiple Python Version side by side.

How does pip decide which version to install?

Once pip has a list of compatible distributions, it sorts them by version, chooses the most recent version, and then chooses the "best" distribution for that version. It prefers binary wheels if there are any, and if they are multiple it chooses the one most specific to the install environment.

How do I install multiple packages using pip?

To pip install more than one Python package, the packages can be listed in line with the same pip install command as long as they are separated with spaces.


1 Answers

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.

like image 168
shad0w_wa1k3r Avatar answered Oct 25 '22 16:10

shad0w_wa1k3r