To link your project with the Python library follow the instructions in issue #7.
Steps for using forpy with the gfortran distribution bundled with Codeblocks
To build:
In Codeblocks: Project -> Build Options -> Linker Settings add python37
(depending on version) to "Link libraries"
In the tab "Search directories" -> Linker add the path to your Python distribution For example when using Miniconda3: C:\Users\username\Miniconda3
You can now build your executable in Codeblocks, however running in Codeblocks will give an error. To run your executable outside of Codeblocks:
When using Miniconda/Anaconda: Activate Python environment: conda activate
Setup MinGW environment vars outside of Codeblocks: Run <path_to_Codeblocks>\MinGW\mingwvars.bat
Set the environment variable PYTHONHOME
to the path of your Python distribution. Setting environment variables in Windows: See Python docs
You can now run your executable outside of Codeblocks.
When using matplotlib you might get the error could not find or load the Qt platform plugin "windows"
. To fix this set the environment variable QT_PLUGIN_PATH
to <path_to_Python_distribution>\Library\plugins
(source)
pythonXY.dll
: activate your conda/virtualenv environment -> conda activate
libgcc_s_sjlj-1.dll
: the MinGW runtime library could not be found -> see point 2. abovePYTHONHOME
environment variable to the path of your Python distribution. See point 3. above.Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4