Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. Here are some issues that I met.
  2.  
  3. ### MinGW installation
  4. * Install things in default (gcc and dev-tools are required)
  5. * Go to mingw's bin directory, rename `mingw32-make.exe` with `make.exe`
  6. * In path configuration, add mingw's binary path to PATH
  7.  
  8. ### 7Z installation
  9. 7Z is used as extractor for rpm files.
  10. * Download command line tool from website and install it
  11. * Put the directory where you installed in PATH environment
  12.  
  13. ### Undefined reference to `_imp__PyArg_ParseTuple' when compiling C extensions
  14. That's probably your mingw and python version are not consistant. For example, your python is 64-bit while mingw is 32-bit.
  15. * Reinstall mingw with correct version with correct setup
  16. * Copy your_python_directory/libs/pythonxx.dll (xx is your python version) to any other place (Desktop is fine).
  17. * Open cmd and go to that place, input (replace 36 with your python version)
  18. ```
  19. gendef python36.dll
  20. dlltool -D python36.dll -d python36.def -l libpython36.a
  21. ```
  22. * After that you'll find a libpython36.a lib file, put that into your_python_directory/libs/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement