A 32-bit python27 has already been installed, but a memory overflow error occurred when using contour coefficients to evaluate the K-means model's excellent performance. The original 32 Python compiler can use up to 4GB of memory, so I'm going to switch to 64-bit python. (I didn't know why I had a 32-bit python.)
- 1. Last officer Web download https://www.python.org/Download the latest version 2.7.
Is the following red box, in the description of this item, gee, how no Intel processor, I guess as long as it is not itanum processor, the others are supported. (Intel processors are supported)
When installing, be sure not to be in the same folder as the previous Python, otherwise you do not know what the moth will appear.
So to create a new empty folder (such as C:\Python2.7.13-64), in the presence of this 64-bit python.
- 2. Setting System Environment variables
C:\Python2.7.13-64\Scripts and C:\Python2.7.13-64 need to be added to the path. This time, you need to note that the previous 32-bit Python is not installed, this is also in the environment variable ah, when the time to run the Python command in the console, in the end is running the version of the pinch?
Don't worry, oh, the system looks up commands in order according to the values in the environment variables, that is, if the 64-bit path is in front of the 32-bit path, then 64 bits are run. (You can adjust the order by moving the Move Down button according to your actual needs) as shown in:
3. The IDE uses pycharm, so how do I switch between different versions of Python?
In "File", "Settings", "Project:python_workspace"-"Project interpreter", then drop-down to select toggle.
Note Oh, down to different Python versions, the corresponding package below will also be switched, 32-bit Python corresponds to 32-bit packets, 64-bit Python corresponds to 64-bit packages, so the installation package needs to pay attention to the number of bits.
Install Python2.7.13-64bit & pycharm Switch between two Python versions