suk*_*mel 19 python ide pyqt pycharm pyqt5
我安装了Python 3.3.2(x86和x64版本),并在它们之上安装了PyQt5.1.
最近我安装了PyCharm 3.0 Community Edition并配置为使用这些Python解释器.问题是PyQt5没有显示在已安装的软件包列表中,文档也不起作用(Ctrl+Space自动完成和Ctrl+Q文档).
当PyCharm正在查询骨架生成时,它似乎处理PyQt但没有用.当我尝试使用PyCharm中的包系统安装PyQt时,我收到以下错误:
C:\Program Files (x86)\PyCharm3.0\helpers\packaging_tool.py run on 10/06/13 13:58:52
Downloading/unpacking PyQt5
Getting page https://pypi.python.org/simple/PyQt5/
URLs to search for versions for PyQt5: https://pypi.python.org/simple/PyQt5/
Analyzing links from page https://pypi.python.org/simple/PyQt5/
Could not find any downloads that satisfy the requirement PyQt5
No distributions at all found for PyQt5
Exception information:
Traceback (most recent call last):
File "C:\Python\332_x64\lib\site-packages\pip-1.4.1-py3.3.egg\pip\basecommand.py", line 134, in main
status = self.run(options, args)
File "C:\Python\332_x64\lib\site-packages\pip-1.4.1-py3.3.egg\pip\commands\install.py", line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\Python\332_x64\lib\site-packages\pip-1.4.1-py3.3.egg\pip\req.py", line 1085, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "C:\Python\332_x64\lib\site-packages\pip-1.4.1-py3.3.egg\pip\index.py", line 265, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
Run Code Online (Sandbox Code Playgroud)
pip.exceptions.DistributionNotFound:没有为PyQt5找到任何发行版
但似乎这是无关紧要的问题.
PyQt5与二进制安装程序一起安装.系统是Win 7 x64.
更新:我发现以前索引的日志无效,我试图让事情有效.该日志不包含有关PyQt的错误或警告.具体如下:
pip.exceptions.DistributionNotFound: No distributions at all found for PyQt5
Run Code Online (Sandbox Code Playgroud)
也许一些问题在于包装工具:
INFO - .skeletons.PySkeletonRefresher - Home path is C:\Program Files (x86)\PyCharm3.0
INFO - .skeletons.PySkeletonRefresher - Pregenerated skeletons root is C:\Program Files (x86)\PyCharm3.0\skeletons
INFO - .skeletons.PySkeletonRefresher - Not found pregenerated skeletons at C:\Program Files (x86)\PyCharm3.0\skeletons\skeletons-win-386-python-3.3.2.zip
INFO - .skeletons.PySkeletonGenerator - Rebuilding builtin skeletons took 10947 ms
INFO - .skeletons.PySkeletonRefresher - Skeleton for PyQt5.QAxContainer
<...>
INFO - .skeletons.PySkeletonRefresher - Skeleton for PyQt5._QOpenGLFunctions_ES2
Run Code Online (Sandbox Code Playgroud)
但是仍然没有报告错误.