1. The system configuration is: windows10 + python3.6 + anaconda3 + swig4.0.2. Swig needs to add environment variables to the system environment manually.
2. According to the official readme file, execute the command [swig – C + + – Python polyiou. I], basically no problem.
3. When executing the command [Python setup. Py build]_ The error [if self. LD] appears when “ext — inplace”_ version >= ” 2.10.90″: TypeError: ‘>=’ not supported between instances of ‘NoneType’ and ‘str’】。 In the python installation path of the virtual environment, find the file of lib distutils distutils.cfg, open it and find the following content: [build] compiler = mingw32, the content of the file is correct.
4. Solution: after exploration and research, we need to configure GCC, install mingw-w64 compiler, command is [CONDA install libpython m2w64 toolchain – C msys2], and then execute the command [Python setup. Py build]_ Ext — inplace], run successfully, and you will find that the_ polyiou.cp36-win_ Amd64.pyd file.
Read More:
- [Solved] pycocotools Install Error: ERROR: Error expected str, bytes or os.PathLike object, not NoneType while executing
- Python PIP TypeError: expected str, bytes or os.PathLike object, not int
- [Solved] Python Error: TypeError: write() argument must be str, not bytes
- [Solved] Matplotlib scatter Draw Error: TypeError: ufunc ‘sqrt‘ not supported for the input types…rule ‘‘safe‘‘
- Python TypeError: coercing to Unicode: need string or buffer, NoneType found
- [Solved] Python3.9 Pycropto RSA Error: TypeError: can’t concat str to bytes
- [Solved] TypeError: unsupported operand type(s) for /: ‘str‘ and ‘int‘
- Python scatter chart error: TypeError: object of type ‘NoneType’ has no len()
- Python TypeError: Unrecognized value type: <class ‘str‘>dateutil.parser._parser.ParserError: Unknow
- [Solved] python-sutime Error: the JSON object must be str, bytes or bytearray, not ‘java.lang.String‘
- Pyexcel Error: xlrd.biffh.XLRDError: Excel xlsx file; not supported
- [Solved] RuntimeError: cuda runtime error (801) : operation not supported at
- [Solved] AttributeError: ‘NoneType‘ object has no attribute ‘astype‘
- [Solved] Odrive gui Error: Do not use the development server in a productioun and supported version of the Socket
- VScode debug error: configured debug type ‘Python’ is not supported
- [Solved] Paramiko error: AttributeError: ‘NoneType’ object has no attribute ‘time’
- RuntimeError: Non RGB images are not supported [How to Fix]
- [Solved] This error might have occurred since this system does not have Windows Long Path support enabled.
- [Solved] AttributeError: ‘NoneType‘ object has no attribute ‘append‘
- [Solved] pandas ExcelWrite AttributeError: ‘NoneType‘ object has no attribute ‘group‘