- install Python 2.7 for amd64
Note: if you have Python 2.7 32-bit and 64-bit both installed. Please change the environment %PATH% to make sure that the python.exe (64-bit) and pip is used.
where python
- install pip
Download get_pip.py from https://bootstrap.pypa.io/get-pip.py Note: please use the python 2.7 64-bit version to install pip: e.g.
c:\Python27_amd64\python.exe get-pip.py
- pip install numpy-1.9.1-cp27-none-win_amd64.whl
Note: you can find the file numpy-1.9.1-cp27-none-win_amd64.whl under requirements/ directory
- pip install scipy-0.15.1-cp27-none-win_amd64.whl
Note: you can find the file scipy-0.15.1-cp27-none-win_amd64.whl under requirements/ directory
-
pip install PySAL==1.7.0
-
install wxPython3.0-win64-3.0.2.0-py27
Note: you can find the wxPython3.0-win64-3.0.2.0-py27.exe installation file under requirements/ directory. When installing wxPython, please choose the directory of python (64bit).
- install py2exe
Note: you can find the py2exe-0.6.9.win64-py2.7.amd64.exe installation file under requirement/ directory.
If py2exe complains python is not found in registry, or it prompts a wrong installation directory. Open Registry Editor
, goto HKEY_LOCAL_MACHINE -> SOFTWARE -> Python -> PythonCore -> 2.7 ->InstallPath
and change the value of "Default" string-value to "C:\Python27amd64"
-
copy libopenblaspy.dll to c:\windows\system32
-
run python setup.py.win py2exe
-
run inno setup with build/64bit.iss
- install Python 2.7 for x86
Note: if you have Python 2.7 32-bit and 64-bit both installed. Please change the environment %PATH% to make sure that the python.exe (32-bit) and pip is used.
where python
- install pip
Download get_pip.py from https://bootstrap.pypa.io/get-pip.py Note: please use the python 2.7 32-bit version to install pip: e.g.
c:\Python27\python.exe get-pip.py
- Install numpy-1.8.2
Note: you can find the file numpy-1.8.2-win32-python2.7.exe under requirements/ directory
- Install scipy-0.16.0
Note: you can find the file scipy-0.16.0-win32-python2.7.exe under requirements/ directory
-
pip install PySAL==1.7.0
-
install wxPython3.0-win32-3.0.2.0-py27
Note: you can find the wxPython3.0-win32-3.0.2.0-py27.exe installation file under requirements/ directory. When installing wxPython, please choose the directory of python (32bit).
- install py2exe
Note: you can find the py2exe-0.6.9.win32-py2.7.exe installation file under requirement/ directory.
If py2exe complains python is not found in registry, or it prompts a wrong installation directory. Open Registry Editor
, goto HKEY_LOCAL_MACHINE -> SOFTWARE -> Python -> PythonCore -> 2.7 ->InstallPath
and change the value of "Default" string-value to "C:\Python27"
-
copy libopenblaspy.dll to c:\windows\system32
-
run python setup.py.win py2exe
-
run inno setup with build/32bit.iss
-
numpy 1.5.1
-
scipy 0.14.0
-
pysal 1.7.0
-
py2app 0.18
-
wx 2.9.5.0
-
run python setup.osx py2app
There is a incompatible issue that pysal 1.5.0/1.7.0 doesn't compatible with scipy 0.14.0, specifically on the KNN weights creation feature.
One way to fix is modify the pysal/weights/Distance.py and remove the call: scipy.stats._helper.unique()