[PyQt] PyQt4 and PyCharm IDE
Donald E Limbaugh
delimbaugh21 at students.tntech.edu
Tue Jun 2 21:59:01 BST 2015
Not seeing it... I removed the Python 2.7 interpreter & rescanned the system, but still no PyQt.
Could it be the file path for my install of PyQt? Here's what I see available for Project Interpreters:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/bin????/python2.7
/Users/myMac/anaconda/bin/python
I'm not sure how this happened... I guess my skills at installing things on my Mac are not very keen.
I can ???see that my PyQt4 is installed in the directory /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/PyQt4
But when I have the select that directory in the Preferences -> Project Interpreter dialog, I only see a few Packages installed. When I choose the anaconda interpreter, I see dozens of packages installed, but no PyQt...
I'm very confused! Maybe I should delete all things Python & start again!
________________________________
From: PyQt <pyqt-bounces at riverbankcomputing.com> on behalf of Zachary Quinn Scheuren <angryjaga at gmail.com>
Sent: Monday, June 1, 2015 12:45 PM
To: pyqt at riverbankcomputing.com
Subject: Re: [PyQt] PyQt4 and PyCharm IDE
It should see PyQt with the correct Python selected. It can be a little finicky sometimes, though. You could try to add a new interpreter from the settings wheel that's above the '+' button (that whole area of settings isn't as clear as it could be). There is the option to add local or remote Python versions or create a virtual Python. If it's already pointing at your installed Python then just delete that interpreter and add it again. That should force a rescan of the selected Python's packages.
2015/06/02 1:32?Donald E Limbaugh <delimbaugh21 at students.tntech.edu<mailto:delimbaugh21 at students.tntech.edu>> ??????:
Thanks, Zachary, for the quick response!!
I am using Python 2.7.
>From the Preferences -> Project -> Project Interpreter settings, I see:
pip
setuptools
wsgrief
wxPython
wxPython-common
I don't see PyQt there. I click on the '+' sign at the bottom to add it, but that just brings up the Available Packages dialog box where I can install PyQt. I don't need to install it; it's already on my machine. I don't see how to "direct" PyCharm to use the PyQt already available...
Suggestions?
________________________________
From: PyQt <pyqt-bounces at riverbankcomputing.com<mailto:pyqt-bounces at riverbankcomputing.com>> on behalf of Zachary Quinn Scheuren <angryjaga at gmail.com<mailto:angryjaga at gmail.com>>
Sent: Monday, June 1, 2015 9:07 AM
To: pyqt at riverbankcomputing.com<mailto:pyqt at riverbankcomputing.com>
Subject: Re: [PyQt] PyQt4 and PyCharm IDE
I use PyCharm on Mac, Linux and Windows with PyQt4 all day every day. You need to make sure your project interpreter is setup with the Python version you have PyQt installed for. You don't need it to be the same Python, though. You can also set the project interpreter to be virtual and make sure the virtual Python has the correct packages installed. In my case we load PyQt from the server (3 different locations depending on platform) so it's not even locally installed, but I have the project interpreter setup so PyCharm builds skeletons and I can happily use code completion.
Zachary
2015/06/01 23:52?Donald E Limbaugh <delimbaugh21 at students.tntech.edu<mailto:delimbaugh21 at students.tntech.edu>> ??????:
Has anyone used PyQt4 with the PyCharm IDE?
I recently installed PyCharm on my Mac & like the IDE, but I can't seem to get it to recognize my install of PyQt4. I was curious to hear if anyone else in the community is/has been using these two items together successfully...
I'm running Mac OS X Mavericks v10.9.5??, PyQt4 v4.11.3, and PyCharm v4.5.
Thanks in advance for any help or suggestions!!
--Don
_______________________________________________
PyQt mailing list PyQt at riverbankcomputing.com<mailto:PyQt at riverbankcomputing.com>
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150602/b74e6984/attachment-0001.html>
More information about the PyQt
mailing list