我已經安裝了Python 3.3.2(x86和x64版本)和PyQt5.1安裝在它們之上。PyCharm 3.0無法找到PyQt5
最近我安裝了PyCharm 3.0社區版,並配置爲使用這些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)
pip.exceptions.DistributionNotFound:完全沒有分佈發現PyQt5
但似乎這是不相關的問題。
PyQt5與二進制安裝程序一起安裝。系統是Win 7 x64。
更新: 我發現從以前的索引無效日誌我試圖讓事情工作。該日誌不包含有關PyQt的錯誤或警告。具體內容如下:
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
也許有的問題出在包裝工具:
INFO - packaging.PyPackageManagerImpl - Running packaging tool: C:/Python/332_x64/python.exe C:\Program Files (x86)\PyCharm3.0\helpers\packaging_tool.py list
但沒有報道仍然錯誤。
嘗試將其卸載,並從源代碼編譯(這需要時間,可能40分鐘左右視你的電腦規格)我認爲從源代碼建設將工作。我不是100%確定,但我認爲是因爲QT是C++ pycharm將使用自動完成等文件。 –
我從源建立現在我會讓它運行一夜之間,如果它的工作後明天發佈。 –
您是否嘗試將PyQt路徑添加到Pycharm中的解釋器路徑? –