I am attempting to switch over my default python.exe from 32bit to 64bit. the first time i downloaded and installed python i downloaded the 32bit version. I later found in the project i am currently working on, that I need a 64bit version of python in order for everything to be compatible. I have uninstalled the 32bit version but and installed the 64bit version.
prior to uninstalling the 32bit version i could check my version by typing:
python --version
into the command prompt, however now that the 32bit version is uninstalled and the 64bit version is installed this command no longer works. I have noticed that some files pretaining to the 32bit version are still there (looks like packages that were previously installed using pip)
i have verified the the environment variables (PATH) are properly set for the 64bit python version yet it is still not registering.
when i type
python --version
now it yields:
'python' is not recognized as an internal or external command,
operable program or batch file.
but i am able to run a pythonApp.py with this as its body:
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import sys
import struct
print( 8 * struct.calcsize("P"))
print(sys.maxsize)
which yields:
64
9223372036854775807
So i know i am able to run the 64bit python but i am unable to use it from cmd prompt as expected, including when attempting to use the pip.
update -- I found a quick fix for this: this solution will not work if you want to keep both versions and interchange them. but if you only need one, simply uninstall both (Start clean) and then install the version you want to be defaulted first.
simple answer:
make sure you install the bit version you want first.
If you have already installed the 32bit version and want to switch to 64bit version then simply uninstall the 32bit version first then install the 64bit version. Not sure if it was required but i also restarted the pc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With