Windows Install: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:


== Installing ==
== Installing ==
=== Binary ===
To install PyMOL from the binaries, just run the executable you've [http://pymol.sf.net/ downloaded].
=== Source ===
To get the latest features, you should download the [http://sourceforge.net/svn/?group_id=4546 PyMOL source] from the [http://sourceforge.net/projects/pymol/ project page].
==== Directions using CygWin ====
* Install [http://www.cygwin.com/ CygWin].  Make sure you install the following modules:
You should have similar packages installed as described [http://www.pymolwiki.org/index.php/Linux_Install#Mint11_Linux_.28Ubuntu.29_-_Tested_for_PyMOL_1.4.1 here]. Note, that you might need gcc-4.4 instead of  gcc-4.5.
** C++ (gcc or g++ package name)
** Python
** OpenGL
** PNG
* run '''python setup.py install''' in the source directory
* run '''python setup2.py install''' in the source directory
* install Pmw
== Pre-compiled PyMOL ==
== Pre-compiled PyMOL ==
Pre-compiled PyMOL is also available free from Christoph Gohlke of the Laboratory for Fluorescence Dynamics, University of California, Irvine [http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymol here].
Pre-compiled PyMOL is also available free from Christoph Gohlke of the Laboratory for Fluorescence Dynamics, University of California, Irvine [http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymol here].
Line 28: Line 11:
# PyMOL is now installed in: C:\Python27\PyMOL
# PyMOL is now installed in: C:\Python27\PyMOL
<br/>
<br/>
# Edit '''C:\Python2X\PyMOL\PDB_file.reg ''' so it matches your python version. That makes sure that .pdb files has the right icon and is opened with pymol.
<source lang="bash">
REGEDIT4


[-HKEY_CLASSES_ROOT\.pdb]
[HKEY_CLASSES_ROOT\.pdb]
@="PDB.File"
"Content Type"="chemical/x-pdb"
[-HKEY_CLASSES_ROOT\PDB.File]
[HKEY_CLASSES_ROOT\PDB.File]
@="PDB File"
[HKEY_CLASSES_ROOT\PDB.File\DefaultIcon]
@="C:\\Python27\\PyMOL\\PyMOL.exe"
[HKEY_CLASSES_ROOT\PDB.File\Shell]
@=""
[HKEY_CLASSES_ROOT\PDB.File\Shell\open]
[HKEY_CLASSES_ROOT\PDB.File\Shell\open\command]
@="\"C:\\Python27\\PyMOL\\PyMOL.cmd\" %*"


[-HKEY_CLASSES_ROOT\.pml]
[HKEY_CLASSES_ROOT\.pml]
@="PML.File"
"Content Type"="script/x-pymol"
[-HKEY_CLASSES_ROOT\PML.File]
[HKEY_CLASSES_ROOT\PML.File]
@="PML File"
[HKEY_CLASSES_ROOT\PML.File\DefaultIcon]
@="C:\\Python27\\PyMOL\\PyMOL.exe"
[HKEY_CLASSES_ROOT\PML.File\Shell]
@=""
[HKEY_CLASSES_ROOT\PML.File\Shell\open]
[HKEY_CLASSES_ROOT\PML.File\Shell\open\command]
@="\"C:\\Python27\\PyMOL\\PyMOL.cmd\" %*"
</source>
Run it with regedit and restart so changes take effect. After restart, you should see the PyMOL icon for .pdb files and be able to double click it to launch PyMOL.
Run it with regedit and restart so changes take effect. After restart, you should see the PyMOL icon for .pdb files and be able to double click it to launch PyMOL.
Pymol can also started by clicking C:\Python27\PyMOL\pymol.cmd  which executes python on C:\Python27\PyMOL\pymol-launch.py. Make a link to pymol.cmd.
Pymol can also started by clicking C:\Python27\PyMOL\pymol.cmd  which executes python on C:\Python27\PyMOL\pymol-launch.py. Make a link to pymol.cmd.
Line 70: Line 21:
sys.path.append("C:/Python27/PyMOL/scripts")
sys.path.append("C:/Python27/PyMOL/scripts")
</source>
</source>
=== Binary ===
To install PyMOL from the binaries, just run the executable you've [http://pymol.sf.net/ downloaded].
=== Source ===
To get the latest features, you should download the [http://sourceforge.net/svn/?group_id=4546 PyMOL source] from the [http://sourceforge.net/projects/pymol/ project page].
==== Directions using CygWin ====
* Install [http://www.cygwin.com/ CygWin].  Make sure you install the following modules:
You should have similar packages installed as described [http://www.pymolwiki.org/index.php/Linux_Install#Mint11_Linux_.28Ubuntu.29_-_Tested_for_PyMOL_1.4.1 here]. Note, that you might need gcc-4.4 instead of  gcc-4.5.
** C++ (gcc or g++ package name)
** Python
** OpenGL
** PNG
* run '''python setup.py install''' in the source directory
* run '''python setup2.py install''' in the source directory
* install Pmw


== Problems &amp; Solutions ==
== Problems &amp; Solutions ==

Revision as of 06:01, 2 June 2012


Installing

Pre-compiled PyMOL

Pre-compiled PyMOL is also available free from Christoph Gohlke of the Laboratory for Fluorescence Dynamics, University of California, Irvine here.

For example install python 2.7 on windows, and then compile the open source pymol 1.4.1 for free.

  1. Install python, (2.5, or 2.6) 2.7 for windows.
  2. Download [ http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymol appropriate installer] and select according to your python version and system.
  3. Run the downloaded installer
  4. PyMOL is now installed in: C:\Python27\PyMOL



Run it with regedit and restart so changes take effect. After restart, you should see the PyMOL icon for .pdb files and be able to double click it to launch PyMOL. Pymol can also started by clicking C:\Python27\PyMOL\pymol.cmd which executes python on C:\Python27\PyMOL\pymol-launch.py. Make a link to pymol.cmd.

You can make a "pymolrc.pym" file, and put it under "C:\Users\YOU". In the file you can write the following listed. This folder is now in your PyMOL search path, so you can put pymol wiki scripts here. Note the forward slashes "/".

import sys
sys.path.append("C:/Python27/PyMOL/scripts")

Binary

To install PyMOL from the binaries, just run the executable you've downloaded.

Source

To get the latest features, you should download the PyMOL source from the project page.

Directions using CygWin

  • Install CygWin. Make sure you install the following modules:

You should have similar packages installed as described here. Note, that you might need gcc-4.4 instead of gcc-4.5.

    • C++ (gcc or g++ package name)
    • Python
    • OpenGL
    • PNG
  • run python setup.py install in the source directory
  • run python setup2.py install in the source directory
  • install Pmw


Problems & Solutions

Problem: Installing PyMol 0.98 on WinXP Pro SP2

If you get the following error while installing

 "16-bit Windows Subsystem.":
 "C:\WINDOWS\SYSTEM32\AUTOEXEC.NT. The system file is not
 suitable for running MS-DOS and Microsoft Windows applications.
 Choose 'Close' to terminate the application.

Fix: Sounds like the AUTOEXEC.NT file is corrupt. You can fix this problem by replacing

c:\WINDOWS\SYSTEM32\AUTOEXEC.NT

with the one in

c:\windows\repair

However if this doesn't work (or if the file is absent from this repair folder), use the file on the installation CDROM, it is

autoexec.nt_ 

in the i386 folder. Just type in a command window:

expand X:\i386\autoexec.nt_ c:\windows\system32\autoexec.nt

where X is the drive letter of your CDROM.

If this does not resolve your issue, visit this link: MS Support For This Issue where you may also find the answer to your question.


Problem: PyMol Binary Crashes

Video Driver

Fix: Try updating your video card's driver software. This is a common problem on laptops.

msvcr71.dll

Fix: find the file msvcr71.dll on your computer and copy it to the directory that PyMol was installed to.


Problem: Path Does Not Exist Error

Install Shield Problem with some Dell Laptops

With this problem irrespective of where you place the binaries for installing PyMol you receive an error claiming that the path\setup.exe does not exist.

Fix: Install the windows binary through 16-bit MS-DOS console.

First place the PyMol setup binaries in an easy to find folder, e.g. C:\PyMol

Use the RUN command via Windows Start.

In the CLI type COMMAND.COM (note CMD will not work as it is a native interface and not true DOS).

In the DOS CLI that opens go back to the root directory C:\ using the cd.. command.

Then go to the folder into which you placed PyMol, e.g. cd PyMol.

Then type in setup.exe.

PyMol should now install, simply type exit to close the DOS CLI

Using

Debugging

On Windows, you need to launch PyMOLWin.exe from a Windows command line with the "+2" option to prevent PyMOL from hiding the console window: (start menu -> run -> cmd [return])

cd c:\program files\delano scientific\pymol

pymolwin + 2