Installing pyqt5, under windows may cause the execution to fail due to a compilation error.

my environment is windows. With py2.7, installed, I installed the virtual environment of py3.6 with virtualenv. The installation of PyQt5, in this virtual environment was successful, but many of the related modules could not be found. Run the code (or import the package) and report an error as follows

D:\pythonVirtual\py36\Scripts\python.exe D:/Py36Projects/Am_test/test/test1.py
Fatal Python error: PyThreadState_Get: no current thread

Process finished with exit code -1073740791 (0xC0000409)

I can find some related problems, which probably means that when installing PyQt5, the compilation uses the system default (that is, the py2.7 configured by environment variables), which leads to compilation problems. However, the solutions are all windows, so I would like to ask if you have encountered this kind of situation? How to solve it under windows?

Mar.25,2021

Windows installs Python and related modules. It is recommended to use Anaconda .


Windows is still not easy to deal with this problem, there is no starting point (mainly there is no reference, there are more linux references)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38937-41166.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38937-41166.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?