2014-02-05 16 views
2

我想在pycharm中使用PyQt5。嘗試從可用軟件包安裝軟件包後,出現錯誤提示:'安裝軟件包失敗:安裝軟件包PyQt5時發生錯誤。'
完整的日誌是在這裏:爲什麼我不能從pypi安裝PyQt5?

------------------------------------------------------------ 
C:\Program Files (x86)\JetBrains\PyCharm 3.0.1\helpers\packaging_tool.py run on 02/05/14 16:13:23 
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:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\basecommand.py", line 139, in main 
    status = self.run(options, args) 
    File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\commands\install.py", line 266, in run 
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
    File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\req.py", line 1026, in prepare_files 
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade) 
    File "C:\Python27\lib\site-packages\pip-1.3.1-py2.7.egg\pip\index.py", line 171, in find_requirement 
    raise DistributionNotFound('No distributions at all found for %s' % req) 
DistributionNotFound: No distributions at all found for PyQt5 

我該怎麼辦?

這就是我所做的是這樣的:

  • 安裝了Python 3.3,並添加到PATH
  • 安裝PyQt5-5.2-gpl-Py3.3-Qt5.2.0-x64.exe

我不知道如何在pycharm使用PyQt
你能提供更多的信息嗎?

回答

4

AFAIK,你不能從PyPI安裝PyQt4/PyQt5。你將不得不單獨安裝它。

如果您看到this鏈接,您可以看到PyPI上沒有針對PyQt5(對於PyQt4同樣)列出的軟件包。因此,您需要單獨從here下載安裝程序並進行安裝。

這正是

DistributionNotFound:完全沒有分佈發現PyQt5

指。

[更新]:你也很可能需要安裝品嚐同樣的方式,方法如下:https://askubuntu.com/a/666336/12214

+0

問題更新。請幫幫我。 –

+0

對不起,我以前沒有用過PyCharm,所以不能就此提供任何建議。 – gravetii

+0

您更喜歡哪種IDE?告訴我這個名字,如果可以,告訴我如何在該IDE中安裝pyqt。我只想使用pyqt。 IDE不重要。 –

相關問題