我想在我的电脑上安装PyMOL。我昨天卸载它因为我之前通过Python(x,y)安装了python 2.7.9,而我的PyMOL安装(我几个月前安装所以我担心我忘了我是怎么做的)使用的是python 2.7.8和结果是PyMOL不再正常工作,例如,看看我拍摄的截图,GUI分子查看器不可见,只是控制台。
我试过使用轮子文件(即 http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymol amd64版本)但我遇到了pip问题。请参阅我的64位Python 2.7.9安装附带的pip,pip的exe文件名为pip2.exe。所以我改变了系统环境变量 PYTHONPATH
至 C:\Python27
(python安装的地方)和 PATH
至 C:\Python27\Scripts
这是哪里 pip2.exe
是(以及pip2.7.exe,easy_install.exe和easy_install-2.7.exe,如果相关)。然后我跑了:
pip2 install pymol-1.7.2.1-cp27-none-win_amd64.whl
从命令提示符,但这给出了错误:
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\Scripts\pip2.exe\__main__.py", line 5, in <module>
ImportError: No module named pip
编辑:#1
我卸载了python并重新安装了它(64位再次)因为我怀疑在我之前的安装中发生了一些错误(这次它附带的pip包含一个名为pip.exe的文件在Scripts文件夹中),然后我运行了pymol安装再次命令(运行后 pip install wheel-0.24.0-py2.py3-none-any.whl
,从这个下载的文件下载 https://pypi.python.org/packages/py2.py3/w/wheel/wheel-0.24.0-py2.py3-none-any.whl#md5=4c24453cda2177fd42c5d62d6434679a )并收到一个不同的错误,pip.log文件可以在这里找到: http://goo.gl/ORVNPB 。
进一步的尝试
然后我下载了 https://codeload.github.com/evonove/pymol/zip/1.7.4 ,提取其内容并运行
python setup.py构建安装
这给出了输出:
running build
running build_py
running build_ext
building 'pymol._cmd' extension
Traceback (most recent call last):
File "setup.py", line 349, in <module>
data_files = data_files
File "C:\Python27\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "C:\Python27\lib\distutils\command\build_ext.py", line 446, in build_exte
nsions
self.build_extension(ext)
File "C:\Python27\lib\distutils\command\build_ext.py", line 496, in build_exte
nsion
depends=ext.depends)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsal
l
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
pip2.7.exe
至 pip2.exe