Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Build Python3.4 + PyQt5.5.1 + Eric6.1.1 development platform under Mac OS X 10.11.1     - Text editing and viewing text Linux command (Linux)

- Python 3.5 await / async (Programming)

- Elixir: the future of programming languages (Programming)

- Linux System shutdown procedures (Linux)

- Performance Diagnosis of 60,000 milliseconds for Linux (Linux)

- ORA-12545: Connection failed because the target host or object does not exist (Database)

- Oracle 11g to create a second instance on Linux (Database)

- MySQL Study of --Percona Server 5.5 Upgrade 5.6 (Database)

- Java gets the current system time System.currentTimeMillis () (Programming)

- Using Ruby to build a simple HTTP service and sass environment (Server)

- Python implementation restart the router (Programming)

- MySQL in order by inaccurate results in problems and solutions (Database)

- To configure linux transparent firewall (Linux)

- Nginx concerning the location and rewrite applications proxy_pass (Server)

- 32-bit and 64-bit integer in PHP and MySQL range (Database)

- Ubuntu Backup and Recovery (Linux)

- Export error: ORA-04063: package body dmsys dbms dm model exp has error (Database)

- Based AutoYaST automated installation of SUSE practice (Linux)

- Ubuntu users install the video driver Nvidia Driver 334.21 (Linux)

- Repair Raspbian Encountered a section with no Package (Linux)

 
         
  Build Python3.4 + PyQt5.5.1 + Eric6.1.1 development platform under Mac OS X 10.11.1
     
  Add Date : 2018-11-21      
         
         
         
  Due to learn Python, open source, object-oriented, high portability, rich library of features, recently started learning Python. Baidu understand sections Python IDE after, still I think Eric is more suitable for me, so I embarked on a bumpy road to install Eric, from the selected tool to install successfully spent a total of eight days, from Windows to Linux and then to Mac, one by one toss again, Windows is relatively simple to build, download the appropriate version of a good run exe directly on the line, under Linux and Mac I always use the source package is installed, it encountered many problems finally, finally understand the research on the Mac. The entire build process to write down and share with me the same white.

PS: Mac and Linux to build no difference, under Linux can refer to this article, because I installed xcode gcc so I did not go alone installation, not install yourself as prompted.

First, the preparatory documents

Python3.4
Qt5.5.1
SIP4.17
QScintilla2.9.1
PyQt5.5.1
Second, the installation process

1. Install Python3.4

            From the official website version (https://www.python.org/download) to download the appropriate platform installation

        note! !

If you're an iOS developer, do not delete python2.7, because the script used in Xcode 2.7 does not support 3 or later !!!
2. Install Qt5.5.1

            Version can be installed from the official website (http://qt-project.org/downloads) download the appropriate platform, the path set to the default (/Users/*/Qt5.5.1) to

            The installation is complete you need to add Qt5 environment variable to ~ / .bash_profile

1 vim ~ / .bash_profile
Add the following two lines into

1 PATH = "/ Users / * / Qt5.5.1 / 5.5 / clang_64 / bin: $ {PATH}"
2 export PATH
3. Install SIP4.14

            Download: http: //www.riverbankcomputing.com/software/sip/download

1 tar -zxvf sip-4.17.tar.gz
2 cd sip-4.17
3 python3 configure.py
4 make && date # && date plus personal habits, make success will show time
5 sudo make install && date # sure to add sudo
4. Install QScintilla / Qt4Qt5

Download: http: //www.riverbankcomputing.com/software/qscintilla/download

             QScintilla2 file contents have three folders to be installed separately: Qt4Qt5, designer-Qt4Qt5 and Python.

             Qt4Qt5 folder you want before you install PyQt, designer-Qt4Qt5 and Python to be installed after PyQt, the order must pay attention! !

1 cd ./QScintilla-gpl-2.9.1/Qt4Qt5
2 qmake qscintilla.pro
3 make && date
4 sudo make install && date
5. Install PyQt5.5.1

            Download: https: //www.riverbankcomputing.com/software/pyqt/download5

            Because it is installed in Python's site-packages in, so first determine the location of the package

1 python3
2 Python3.4.4 (v3.4.4: 737efcadf5a6, Dec192015,20: 38: 52)
3 [GCC 4.2.1 (AppleInc. Build 5666) (dot 3)] on darwin
4 Type "help", "copyright", "credits" or "license" for more information.
5 >>> import site
6 >>> site.getsitepackages ()
7 [ '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages','/Library/Frameworks/Python.framework/Versions/3.4/lib/site-python','/ Library / Python / 3.4 / site-packages']
        I know where they started to compile

1 cd PyQt-gpl-5.5.1
2 $ python3 configure.py -q /Users/**/Qt5.5.1/5.5/clang_64/bin/qmake -d /Library/Python/3.4/site-packages/ # -q behind the qmake location, -d followed by the location of Python packages
3 make && date
note! !

I make in the implementation of one such error

1 / Users / Kallan / Documents / Python developers /PyQt-gpl-5.5.1/sip/QtPositioning/qgeolocation.sip:28:10: fatal error:
2 'qgeolocation.h' file not found
3 #include
4 ^
5 1 error generated.
6 make [1]: *** [sipQtPositioningcmodule.o] Error1
7 make: *** [sub-QtPositioning-make_first-ordered] Error2
Solution:

Create a header file in the folder /PyQt-gpl-5.5.1/QtPositioning qgeolocation.h, copy the contents into the following

 1 /************************************************ ****************************
 2 **
 3 ** Copyright (C) 2015TheQtCompanyLtd.
 4 ** Contact: http://www.qt.io/licensing/
 5 **
 6 ** This file is part of the QtPositioning module of the QtToolkit.
 7 **
 8 ** $ QT_BEGIN_LICENSE: LGPL21 $
 9 ** CommercialLicenseUsage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Softwareor, alternatively, in accordance with the terms contained in
13 ** a written agreement between you andTheQtCompany.For licensing terms
14 ** and conditions see http://www.qt.io/terms-conditions.For further
15 ** information use the contact form at http://www.qt.io/contact-us.
16 **
17 ** GNU LesserGeneralPublicLicenseUsage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** GeneralPublicLicense version 2.1or version 3as published by the Free
20 ** SoftwareFoundationand appearing in the file LICENSE.LGPLv21and
21 ** LICENSE.LGPLv3 included in the packaging of this file.Please review the
22 ** following information to ensure the GNU LesserGeneralPublicLicense
23 ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
24 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
25 **
26 ** As a special exception, TheQtCompany gives you certain additional
27 ** rights.These rights are described inTheQtCompany LGPL Exception
28 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
29 **
30 ** $ QT_END_LICENSE $
31 **
32 ************************************************* *************************** /
33 #ifndef QGEOLOCATION_H
34 #define QGEOLOCATION_H
35 #include < QtCore / QSharedDataPointer >
36 #include < QtCore / QMetaType >
37 #include < QtPositioning / qpositioningglobal.h >
38 QT_BEGIN_NAMESPACE
39 classQGeoAddress;
40 classQGeoCoordinate;
41 classQGeoRectangle;
42 classQGeoLocationPrivate;
43 class Q_POSITIONING_EXPORT QGeoLocation
44 {
45 public:
46 QGeoLocation ();
47 QGeoLocation (const QGeoLocation & other);
48 ~ QGeoLocation ();
49 QGeoLocation & operator = (const QGeoLocation & other);
50 bool operator == (const QGeoLocation & other) const;
51 bool operator! = (Const QGeoLocation & other) const {
52 return (other == * this)!;
53}
54 QGeoAddress address () const;
55 void setAddress (const QGeoAddress & address);
56 QGeoCoordinate coordinate () const;
57 void setCoordinate (const QGeoCoordinate & position);
58 QGeoRectangle boundingBox () const;
59 void setBoundingBox (const QGeoRectangle & box);
60 bool isEmpty () const;
61 private:
62 QSharedDataPointer d;
63};
64 Q_DECLARE_TYPEINFO (QGeoLocation, Q_MOVABLE_TYPE);
65 QT_END_NAMESPACE
66 Q_DECLARE_METATYPE (QGeoLocation)
67 #endif
carry on!
1 make && date
2 sudo make install && date
6. Install QScintilla / Python

1 cd /QScintilla-gpl-2.9.1/Python
2 python3 configure.py --pyqt = PyQt5-d /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt5--pyqt-sipdir=/Library/Frameworks/Python.framework /Versions/3.4/share/sip/PyQt5-v /Library/Frameworks/Python.framework/Versions/3.4/share/sip/PyQt5
3 make && date
4 sudo make install && date
If the import without error in Python, it means that the installation was successful, continue to be down

1 python3
2 Python3.4.4 (v3.4.4: 737efcadf5a6, Dec192015,20: 38: 52)
3 [GCC 4.2.1 (AppleInc. Build 5666) (dot 3)] on darwin
4 Type "help", "copyright", "credits" or "license" for more information.
5 >>> import PyQt5.Qsci
6 >>> exit ()
7. Install QScintilla / designer-Qt4Qt5

1 cd /QScintilla-gpl-2.9.1/designer-Qt4Qt5
2 qmake designer.pro
3 make && date
4 sudo make install && date
8. Install Eric6

Download: http: //sourceforge.net/projects/eric-ide/files/eric6/stable/

Download one of the primary documents and eric6-6.1.1.tar eric6-i18n-zh_CN.GB2312-6.1.1.tar Chinese language pack.

The two extracted files, copy eric Chinese voice packets into the main file merge

1 cd eric6-6.1.1
2 sudo python3 install.py
Configuration Eric6

1. Select Eric6-> preference -> Editor -> Autocompation. Check all the boxes;



2.Editor -> QScintilla. Hook on both left and right box, and then in the following source, select from Document and API files;



3.Editor -> APIs. Check Complie APIs Autocompation, in Language, select python3. Point face Add from installed APIs button below, choose File .api need to live. Finally, click Compile APIs;



4, Interface -> Interface. Language selection Chinese, restart to take effect.



We're done!

Third, the problem has been encountered
Error 1. Install QScintilla designer-Qt4Qt5!

1 root @ kallan: / media / kallan / D disk / Programming Learning /python/QScintilla-gpl-2.9.1/designer-Qt4Qt5# qmake -qt5 designer.pro Project ERROR: Unknown module (s) in QT: designer
Reason: Qt is not installed

2. Install error QScintilla Python!

1 python3 configure.py --pyqt = PyQt5-d /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt5--pyqt-sipdir=/Library/Frameworks/Python.framework /Versions/3.4/share/sip/PyQt5--qsci-sipdir=/Library/Frameworks/Python.framework/Versions/3.4/share/sip/PyQt5
2 Error: Make sure you have a working sip on your PATH or use the --sip argument
3 to explicitly specify a working sip.
Cause: The SIP is not installed

3. Install error QScintilla Python!

 1 python3 configure.py --pyqt = PyQt5
 2 ConfiguringQScintilla2.9.1 ...
 3 QScintilla2.9.1 is being used.
 4 TheQScintilla.sip files will be installed in / usr / share / sip / PyQt5.
 5 TheQScintilla module will be installed in
 6 / usr / lib / python3 / dist-packages / PyQt5.
 7 PyQt5.3.1 is being used.
 8 Qt5.3.1 is being used.
 9 sip 4.16.2 is being used.
10 The sip executable is / usr / bin / sip.
11 TheQScintilla module is being built with 'protected' redefined as 'public'.
12 TheQScintilla API file will be installed in / usr / share / qt5 / qsci / api / python.
13 Generating the C ++ source for the Qsci module ...
14 Error: Unable to create the C ++ code.
Cause: The installation sequence error - first installed PyQt5, then install QScintilla Qt4Qt5

4.QScintilla Python installation is completed but when given import in Python!

1 >>> import PyQt5.Qsci
2 Traceback (most recent call last):
3 File "", line 1, in
4 ImportError: dlopen (/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt5/Qsci.so,2): Library not loaded: @ rpath / QtPrintSupport.framework / Versions / 5 / QtPrintSupport
5 Referenced from: /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt5/Qsci.so
6 Reason: image not found
5. Install Eric error!

1 python3 install.py
2 Checking dependencies
3 PythonVersion: 3.4.4
4 FoundPyQt5
5 Sorry, please install QScintilla2 and
6 its PyQt5 / PyQt4 wrapper.
7 Error: dlopen (/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt5/Qsci.so,2): Library not loaded: @ rpath / QtPrintSupport.framework / Versions / 5 / QtPrintSupport
8 Referenced from: /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt5/Qsci.so
9 Reason: image not found
Reason 4 and 5 is the same problem, QScintilla of Python did not install successfully
     
         
         
         
  More:      
 
- Oracle11g CRS-0184 Problem Solving (Database)
- Kali Linux virtualbox rc = Error 1908 workaround (Linux)
- Wireshark basic introduction and learning TCP three-way handshake (Linux)
- Improve WordPress performance (Server)
- Android Application Development: Genymotion can not start solving (Linux)
- Let CentOS perform PPPoE dial-up, ADSL can be used in a network environment! (Linux)
- Deepin Tutorial: Depth Description Installer expert mode (Linux)
- Linux Command Tutorial: cat command to view the contents of the file (Linux)
- Linux System Getting Started Learning: rename multiple files in Linux (Linux)
- CentOS7 installation performance monitoring system (Server)
- Unix average load average load calculation method (Server)
- Linux how to view the graphics models notebook (Linux)
- Use NTFS-3G to mount NTFS partitions under Linux U disk and removable hard disk (Linux)
- MySQL database to open a remote connection method (Database)
- Tsunami-udp accelerated network transmission (Linux)
- Python2.7.7 source code analysis (Programming)
- Golang use Oracle database on Ubuntu 14.04 (Linux)
- RedHat Linux 6.4 install Oracle 10g error (Database)
- C language - Traverse pci device (Programming)
- How to Install Foreman under Ubuntu (Server)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.